#download-modal-container {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none; /* Hidden by default, will be set to flex when opened */
    justify-content: center;
    align-items: center;
}

#download-modal-content {
    background-color: #fff;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: auto;
    position: relative;
}

#modal-header {
    padding: 10px;
    background-color: var(--wp--custom--color--primary);
    position: relative;
}

#modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    padding-right: 30px;
}

#modal-header span {
    position: absolute;
    right: 10px;
    top: 2px;
    color: #f5f5f5;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

#modal-link-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modal-link-list div {
    padding: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-link {
    color: var(--wp--custom--color--secondary);
    font-weight: 500;
    text-decoration: underline;
    font-size: 16px;
}

.download-link-wrapper {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.download-link-wrapper img {
    height: 20px;
    vertical-align: middle;
}

#modal-link-list img {
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.download-button {
    color: var(--wp--custom--color--secondary) !important;
    font-weight: 700 !important;
    cursor: pointer;
    margin: 0;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    #download-modal-content {
        width: 95%;
    }

    #modal-link-list {
        padding: 15px;
        gap: 15px;
    }
}

.bidding-information-table {
    table {
        tbody {
            td {
                a {
                    width: fit-content;
                    white-space: nowrap;
                    color: var(--wp--custom--color--primary);
                }

                a:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}