/**
 * prestaservis_giftorder — pouze styling popupu s výběrem dárku.
 * Vzhled bloku dárku v košíku řídí ~checkout.css (.cs-block, .gift-block).
 */

.gift_order_overlay {
    display: none;
    background: #000;
    position: fixed;
    inset: 0;
    z-index: 900;
    opacity: 0.5;
}

.gift_order_popup {
    display: none;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: min(600px, 92vw);
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 30px 24px 24px;
}

.gift_order_popup .close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 6px;
}

.gift_order_popup .close:hover {
    color: #000;
}

.gift_order_popup h3 {
    font-size: 18px;
    color: #000;
    text-transform: none;
    font-weight: 600;
    padding: 0 0 16px;
    text-align: center;
    margin: 0;
}

.gift_order_popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gift_order_popup ul li {
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease;
}

.gift_order_popup ul li:hover {
    background: rgba(0, 0, 0, 0.03);
}

.gift_order_popup ul li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    color: #000;
    text-decoration: none;
}

.gift_order_popup ul li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.gift_order_popup ul li h4 {
    font-size: 14px !important;
    font-weight: 500;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.35;
}

.gift_order_popup .gift_close_image_wrapper {
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift_order_popup .gift_close_icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 600px) {
    .gift_order_popup {
        padding: 26px 16px 20px;
    }
    .gift_order_popup ul li img,
    .gift_order_popup .gift_close_image_wrapper {
        width: 48px;
        height: 48px;
    }
}
