/* offers.css */
#animatedModal {
    /* Ensure the modal is scrollable */
    overflow-y: auto !important;
}

#animatedModal .purchase-modal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

#animatedModal .intro-section {
    color: #163047;
    margin-bottom: 40px;
}

#animatedModal .intro-section h3 {
    color: #163047;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
}

#animatedModal .intro-section img {
    max-width: 140px;
    max-height: 215px;
    object-fit: contain;
}

#animatedModal .intro-section p {
    font-family: 'Montserrat', sans-serif;
}

#animatedModal .intro-section .meta-data {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
}

#animatedModal .offers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    #animatedModal .offers-grid {
        flex-direction: row;
        align-items: stretch;
    }
}

#animatedModal .offer-card {
    min-width: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    position: relative;
    transition: transform 0.2s;
}

#animatedModal .offer-card:focus-within {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

#animatedModal .offer-card-highlight {
    border: 3px solid #ffbc00;
    transform: scale(1.02);
}
@media (max-width: 767px) {
    #animatedModal .offer-card-highlight {
        transform: none;
    }
}

#animatedModal .offer-card-badge {
    position: absolute;
    top: -12px;
    background-color: #ffbc00;
    color: #000;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#animatedModal .offer-img-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#animatedModal .offer-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

#animatedModal .offer-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

#animatedModal .offer-title span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 4px;
}

#animatedModal .price-original {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

#animatedModal .price-cash {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.1;
}

#animatedModal .price-installment {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

#animatedModal .price-discount {
    color: #19753f;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#animatedModal .price-unit {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

#animatedModal .offer-btn {
    width: 100%;
    background-color: #63c0ff;
    color: #163047;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

#animatedModal .offer-btn:hover, #animatedModal .offer-btn:focus {
    background-color: #005f8f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#animatedModal .digital-row {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #163047;
}

@media (min-width: 768px) {
    #animatedModal .digital-row {
        flex-direction: row;
        padding: 20px 40px;
    }
}

#animatedModal .digital-row p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25rem;
    margin: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

@media (min-width: 768px) {
    #animatedModal .digital-row p {
        margin-bottom: 0;
    }
}

#animatedModal .digital-btn {
    background-color: transparent;
    color: #163047;
    border: 2px solid #163047;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

#animatedModal .digital-btn:hover, #animatedModal .digital-btn:focus {
    background-color: #fff;
    color: #163047;
    text-decoration: none;
}

/* Close button sticky positioning and accessibility */
#animatedModal .close-animatedModal {
    position: sticky;
    top: 20px;
    z-index: 99999;
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
    display: block;
    margin-right: 20px;
}

#animatedModal .close-animatedModal:focus-within {
    outline: 2px solid #163047;
    outline-offset: 2px;
}

/* Ensure focus is visible for accessibility */
#animatedModal button:focus, #animatedModal a:focus {
    outline: 3px solid #163047;
    outline-offset: 2px;
}
