/* ==========================================================================
   Mastercard Promo & Upgrade Modal Stylesheet (S Offer Style)
   Modular, responsive & drop-in ready for any offer checkout.
   ========================================================================== */

/* 1. Checkout Banner (S Offer Yellow Box Style) */
.mastercard-checkout-banner.yellow-offer-box {
    margin: 14px 15px 12px 15px;
    background: #ffff00;
    background: linear-gradient(180deg, #ffff00 0%, #fff700 100%);
    border: 1.5px solid #d4ac00;
    border-radius: 6px;
    padding: 12px 14px;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 1b. Single Solid Dark Green Box when Promo is Active */
.mastercard-checkout-banner.yellow-offer-box.promo-applied {
    background: #15803d;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border: 1.5px solid #14532d;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
    padding: 13px 14px;
}

.mc-banner-default-view {
    display: block;
    text-align: center;
    line-height: 1.35;
}

.mc-banner-logo-wrap {
    text-align: center;
    margin: 0 0 6px 0;
    line-height: 1;
}

.mc-banner-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.mc-banner-applied-view {
    display: block;
    text-align: center;
    line-height: 1.35;
}

.mc-banner-pill-red {
    color: #e50000;
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.3px;
    display: inline;
    margin-right: 5px;
    text-transform: uppercase;
}

.mc-banner-heading-text {
    color: #111111;
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: inline;
}

.mc-banner-applied-text {
    color: #ffffff;
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* 2. We Accept Cards List */
.accept-text {
    display: block;
    text-align: center;
    padding: 10px 15px 4px !important;
}

.form__cards {
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0;
}

.form__cards li {
    display: inline-block;
    padding: 0 4px;
    margin: 0 2px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

.form__cards li img {
    height: 33px;
    width: auto;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 3. Card Type Dropdown Selector */
#card_type_select {
    background-color: #fff;
    border: 1px solid #989898;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.75);
    font-size: 1rem;
    margin: 0 0 1rem !important;
    padding: 0 0.5rem;
    height: 2.4375rem;
    line-height: 2.4375rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    vertical-align: middle;
}

/* Mobile specific styling for Card Type Dropdown Selector */
body[data-mobile-id] #card_type_select,
.checkout-page #card_type_select,
.checkout-form-wrapper #card_type_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M1.41%200L6%204.58%2010.59%200%2012%201.41l-6%206-6-6z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    border: 1px solid #000000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: none;
    color: #111111;
    display: block;
    font-size: 17px;
    font-family: inherit;
    height: 40px;
    line-height: 38px;
    margin: 0 0 10px 0 !important;
    padding: 0 32px 0 8px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 5. Product Plan 1 Promo Elements & 6th Bottle Layering */
.mc-hdr-tag {
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}

.mc-pack-sub {
    display: block;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
    font-style: normal;
}

/* 6th Bottle Styling & Second Group Layering:
   - 4th bottle on left: left: 25px, z-index: 1 (on back)
   - 5th bottle (middle bottle): z-index: 3 (on top)
   - 6th bottle on right: right: 25px, z-index: 1 (on back)
*/
.product1-image4 {
    left: 25px;
    z-index: 1;
}

.product1-image5 {
    z-index: 3;
}

.product1-image6 {
    right: 25px;
    z-index: 1;
    display: none;
}

.product1.mc-6b-active .product1-image4 {
    left: 25px;
    z-index: 1;
}

.product1.mc-6b-active .product1-image5 {
    z-index: 3;
    left: auto;
    right: auto;
}

.product1.mc-6b-active .product1-image6 {
    right: 25px;
    z-index: 1;
    display: block !important;
}

/* 6. Visa Popup Modal (S Offer Style) */
.mc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mc-modal-box.s-offer-modal {
    background: #ffffff;
    max-width: 490px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dcdcdc;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: mcPopZoom 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 30px;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    padding: 0;
    transition: all 0.2s;
    z-index: 10;
}

.mc-modal-x:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mc-modal-inner {
    padding: 24px 28px 24px;
    text-align: center;
}

.mc-modal-top-title {
    color: #1a9e3f;
    font-family: 'Poppins', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.mc-modal-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 16px 0;
}

.mc-modal-bold-headline {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.mc-modal-subtext {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.45;
    margin: 0 0 14px 0;
    padding: 0 6px;
}

.mc-modal-subtext strong {
    color: #15803d;
    font-weight: 700;
}

.mc-modal-logo-area {
    margin: 8px 0 18px 0;
    text-align: center;
}

.mc-modal-logo-img {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.mc-modal-actions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.btn-mc-confirm-yes {
    background: #22a745;
    background: linear-gradient(180deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    font-family: 'Poppins', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.38);
    transition: all 0.2s ease;
    display: block;
    box-sizing: border-box;
}

.btn-mc-confirm-yes:hover {
    background: linear-gradient(180deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.48);
}

.btn-mc-decline-no {
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border: none;
    padding: 6px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    margin-top: 6px;
}

.btn-mc-decline-no:hover {
    color: #111827;
}

.mc-modal-security-note {
    margin-top: 14px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 7. Keyframe Animations */
@keyframes mcPopZoom {
    0% { opacity: 0; transform: scale(0.92) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes mcFadeSlide {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes mcBottleFloat {
    0% { transform: translateY(0); filter: drop-shadow(0 2px 6px rgba(22, 163, 74, 0.4)); }
    100% { transform: translateY(-4px); filter: drop-shadow(0 6px 14px rgba(22, 163, 74, 0.8)); }
}

@keyframes mcPulseGlow {
    0% { box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3); }
    100% { box-shadow: 0 4px 14px rgba(22, 163, 74, 0.7); }
}
