/**
 * Swish Gateway - Gift Card Styles
 * EXACT MATCH TO DESIGN
 * 
 * הסקשנים של מימוש ההנחות מוצגים בתוך הדרופדאון של הקופון
 */

/* ============================================
   GIFT CARDS CONTAINER (inside coupon dropdown)
   ============================================ */
/* עטיפת שני הסקשנים - כבר לא נחוץ כי הסקשנים מוזרקים ישירות */
.gift-cards-container {
    display: none !important; /* מוסתר - הסקשנים מועברים לטופס הקופון */
}

/* עיצוב כותרות הסקשנים עם אייקונים */
.gift-card-title.gift-card-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px 15px;
    background: #f8f9fa !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #434867 !important;
    transition: background 0.2s ease;
}

.gift-card-title.gift-card-toggle:hover {
    background: #e9ecef !important;
}

/* אייקונים ב-header */
.gift-card-icon {
    margin-left: 10px;
    font-size: 20px;
}

/* הסתרת המקור המקורי */
#swish-gift-cards-source {
    display: none !important;
}


/* ============================================
   BASE STRUCTURE
   ============================================ */
.gift-card-section {
    padding: 15px;
    max-width: 100%;
    direction: rtl;
    position: relative;
    margin-bottom: 15px;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* סקשנים בתוך טופס הקופון - ללא גבול עליון כפול */
.checkout_coupon .gift-card-section:first-of-type,
.woocommerce-form-coupon .gift-card-section:first-of-type {
    margin-top: 20px;
    border-top: none;
}

/* .gift-card-title {
  
    text-align: center;
    cursor: pointer;
    width: fit-content !important;
    text-decoration: underline;
    color: #434867;
 
    font-weight: 400;
    font-size: 10px;
    font-family: almoni;
  
} */

/* אזור הסבר */
.gift-card-explanation {
    font-size: 10px !important;
    color: #666 !important;
    line-height: 1.4;
    margin: 10px 0;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: right;
  
}
    /* padding: 6px;
    max-width: 100%;
    direction: rtl;
   position: relative;
} */
.input-wrapper.input-wrapper-card {
    margin-top: 35px !important;
}
.gift-card-header {
    display: flex;
    padding: 9px 12px;
  
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: #434867;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}
/* 
.gift-card-title {
    background-color: #434867;
        text-align: center;
        padding: 4px 20px;
        margin-bottom: 0;
        cursor: pointer;
        width: fit-content !important;
        text-decoration: underline;
        color: #fff;
        border-radius: 32px;
        font-weight: 600;
        box-shadow: 0px 3px 6px 0px #9fa2
} */

.gift-card-toggle {
    cursor: pointer;
    user-select: none;
}

.gift-card-body {
    direction: rtl;
    width: 100% !important;
    max-width: 100%;
}

/* ============================================
   SLIDER SECTION - EXACT MATCH
   ============================================ */

/* עטיפה כללית של הסליידר */
.gift-card-slider-wrapper {
    margin: 20px 0 60px;
    padding: 0;
    position: relative;
    direction: ltr;
    max-width: 400px;
    /* Slider itself LTR */
}

/* שורת הערכים: מינימום (0) / נוכחי (350) / מקסימום (980) */
.gift-card-slider-values {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
   
    font-size: 18px;
    font-weight: 700;
    color: #000 !important;
    margin-bottom: 15px;
    position: relative;
}

/* הערך הנוכחי באמצע (350) – מתחת למד ויזוז עם העיגול */
.gift-card-slider-current {
    position: absolute;
    top: 66px; /* ממוקם מתחת לסליידר */
    left: 50%; /* יעודכן דינמית ב-JS - מצד ימין */
    transform: translateX(50%);
    font-weight: 700;
    font-size: 20px;
    color: #434867;
    z-index: 10;
    transition: right 0.1s ease-out; /* אנימציה חלקה */
    pointer-events: none; /* לא לחסום את הסליידר */
    
}

/* מינימום (0) ומקסימום (980) בקצוות */
.gift-card-slider-min,
.gift-card-slider-max {
    font-size: 18px;
    font-weight: 700;
    color: #434867;
}

/* בסיס לסליידר עצמו - קו דק שחור */
.gift-card-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 2px;
    border-radius: 0;
    background: #434867 !important;
 /* top:-15px; */
 top:0px;
    outline: none;
    margin-top: 20px;
    margin-bottom: 45px;
    position: relative;
    outline: none !important;
  
}
input#swish_card_number{
    width:250px !important;
}
button.button.apply-swish-gift-card-button{
    font-size: 16px !important;
        padding: 6px !important;
        width: 97px !important;
}
.gift-card-slider-wrapper{
    margin: 0px;
}
/* מסלול – כרום/אדג' */
.gift-card-slider::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 0;
    background: #434867;
}

/* הכפתור העגול – כרום/אדג' */
.gift-card-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #434867;
    /* סגול */
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #434867;
    margin-top: -9px;
    /* למרכז על הקו */
}

/* פיירפוקס – מסלול */
.gift-card-slider::-moz-range-track {
    height: 2px;
    border-radius: 0;
    background: #000;
}

/* פיירפוקס – הכפתור */
.gift-card-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #434867;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #434867;
    cursor: pointer;
}
#order_review .woocommerce-checkout-review-order-table tr.gift-cards-row td.gift-cards-cell .gift-card-section.gift-card-section--swish .gift-card-title.gift-card-toggle {
    /* כאן ה־CSS שלך */
    display: none !important;
}
#order_review .woocommerce-checkout-review-order-table tr.gift-cards-row td.gift-cards-cell .gift-card-section .gift-card-title.gift-card-toggle {
    /* CSS כאן */
    display: none !important;
}
/* ריבועים שחורים בקצוות המד (0 ו-max) */
.gift-card-slider-wrapper::before,
.gift-card-slider-wrapper::after {
    display: none !important;
    content: "";
    position: absolute;
    top: 43px;
    /* תיאום עם הסליידר */
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: 2px;
    background: #fff;
    z-index: 5;
}

.gift-card-slider-wrapper::before {
    left: -13px;
    /* ריבוע בצד שמאל (0) */
}

.gift-card-slider-wrapper::after {
    right: -13px;
    /* ריבוע בצד ימין (max) */
}

/* ============================================
   INPUT FIELDS
   ============================================ */

.gift-card-fields-row {
    display: flex !important;
    gap: 15px;
    margin-bottom: 30px;
    direction: rtl;
}
.gift-card-fields-row .input-wrapper {
    display: flex !important;
    gap: 15px;
}
/* .input-wrapper {
    position: relative;
} */

/* מספר כרטיס - רחב יותר בצד ימין */
.input-wrapper-card {
    flex: 1 !important;
}



/* עיצוב האינפוטים */
.input-text {
    display: flex;
    width: 250px;
    height: 45px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    text-align: right;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: #434867;
    box-shadow: 0 0 0 3px rgba(214, 0, 255, 0.1);
}

.input-text::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* ============================================
   BUTTON
   ============================================ */

.gift-card-actions {
    margin-top: 0px!important;
    display: flex;
}

.input-wrapper.input-wrapper-card{
    display: flex !important;
    gap: 15px;
}
.input-wrapper.input-wrapper-cvv  {
    width: 100px !important;
}
.apply-swish-gift-card-button,
.apply-dts-gift-card-button {
    background: #434867 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(214, 0, 255, 0.3);
}
button.button.apply-swish-gift-card-button{
font-family: almoni;
    background-color: #434867 !important;
    color: #fff !important;
    /* transition: auto; */
    border: none !important;
    box-shadow: 0px 3px 6px 0px #9fa2b7;
}
button.button.apply-dts-gift-card-button{
   
        background-color: #434867 !important;
        color: #fff !important;
        font-size: 16px !important;
        padding: 6px !important;
        width: 97px !important;
        border-radius: 6px !important;
        /* transition: auto; */
        border: none !important;
        box-shadow: 0px 3px 6px 0px #9fa2b7;
}

.apply-swish-gift-card-button:hover,
.apply-dts-gift-card-button:hover {
    background: #434867!important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #434867;
}

/* ============================================
   MESSAGES
   ============================================ */

.swish-message,
.dts-message {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
}

.woocommerce-error.swish-message,
.woocommerce-error.dts-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.woocommerce-message.swish-message,
.woocommerce-message.dts-message {
    background: #f0fdf4;
    /* color: #16a34a; */
    border: 1px solid #bbf7d0;
}

/* ============================================
   APPLIED STATE
   ============================================ */

.swish-gift-card-applied,
.dts-gift-card-applied {
display: flex;
    padding: 9px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: #434867;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;}

.gift-card-info-text {
    flex: 1;
    text-align: right;
}

.gift-card-info-text strong {
    font-size: 16px;
    display: block !important;
    margin-bottom: 4px;
}

.remove-gift-card {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* X remove link on fee rows in order review table */
.swish-remove-fee {
    display: inline-block;
    margin-right: 6px;
    color: #e74c3c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.7;
    vertical-align: middle;
    transition: opacity 0.15s ease;
}

.swish-remove-fee:hover,
.swish-remove-fee:focus {
    opacity: 1;
    color: #c0392b;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .gift-card-fields-row {
        flex-wrap: wrap;
    }

    .input-wrapper-card,
    .input-wrapper-cvv {
        flex: 1 1 100% !important;
        max-width: none;
    }
        td.actions{
            max-width: 300px;
        }
                .gift-card-section{
                    max-width: 300px;
                }
                                .gift-card-body{
                                    max-width: 300px;
                                }

                                                                .gift-card-slider-wrapper{
                                                                    width: 200px;
                                                                }
                                                                                                                                                         .gift-card-slider-wrapper::before,
                                                                                                                                                                  .input-wrapper.input-wrapper-card {
                                                                                                                                                                    margin-top: 0px !important;
                                                                                                                                                                  }                                                                       .gift-card-slider-wrapper::after {
                                                                                                                                                           display: none !important;
                                                                                                                                                         }                                                                                                                                                                             .gift-card-slider-wrapper::before,
                                                                                                         .gift-card-slider{
                                                                                                            top:-13px;
                                                                                                         } 
                                                                                                                                                                                                                 .gift-card-slider-current{
                                                                                                                                                                                                                    top: 45px !important;
                                                                                                                                                                                                                 }                                                                                                                                                                                                    .gift-card-slider-wrapper::after{
                                                                                                                                    top:29px;
                                                                                                                                }
}


/* מיקום התוסף בצ'קאאוט */
.gift-card-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px !important;
    background: #fff !important;
    border: 2px solid #434867 !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.woocommerce-checkout .gift-card-wrapper {
    order: -1;
    /* הצג לפני אמצעי תשלום */
}

.gift-card-title.gift-card-toggle{
    display:flex !important;
}
input#dts_card_number{
    width: fit-content !important;
}


/* הסתר כפילויות בטבלת סיכום ההזמנה */
#order_review .woocommerce-checkout-review-order-table .gift-cards-container {
    display: none !important;
}

/* ============================================
   NEW SWISH DISCOUNT UI
   3 Buttons → 3 Forms
   ============================================ */

.swish-discount-ui {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    direction: rtl;
}

/* כפתורי הבחירה */
.swish-discount-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.swish-discount-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    min-width: 100px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 150px;
}

.swish-discount-btn:hover {
    background: #e9ecef;
    border-color: #434867;
}

.swish-discount-btn.active {
    background: #434867;
    border-color: #434867;
    color: #fff;
}

.swish-discount-btn .btn-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.swish-discount-btn .btn-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.swish-discount-btn.active .btn-text {
    color: #fff;
}

/* הטפסים */
.swish-discount-form {
    display: none;
    padding: 15px 0;
    animation: fadeIn 0.3s ease;
}

.swish-discount-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.swish-discount-form .form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.swish-discount-form .form-row {
    margin-bottom: 15px;
}

.swish-discount-form .form-row input {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    text-align: right;
    direction: rtl;
}

.swish-discount-form .form-row input:focus {
    outline: none;
    border-color: #434867;
    box-shadow: 0 0 0 3px rgba(67, 72, 103, 0.1);
}

.swish-discount-form .form-row input.input-cvv {
    max-width: 100px;
}

.swish-discount-form .form-actions {
    margin-top: 20px;
    text-align: center;
}

.swish-discount-form .form-actions .button {
    width: auto;
    background: #434867 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(67, 72, 103, 0.3);
    
}

.swish-discount-form .form-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 72, 103, 0.4);
}

.swish-discount-form .form-actions .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* הודעות בתוך הטפסים */
.swish-discount-form .woocommerce-error,
.swish-discount-form .woocommerce-message {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

/* Applied states in new UI */
.swish-discount-form .swish-gift-card-applied,
.swish-discount-form .dts-gift-card-applied {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Slider in new UI */
.swish-discount-form .gift-card-slider-wrapper {
    max-width: 350px;
    margin: 20px auto 40px;
}

/* Responsive for new UI */
@media (max-width: 480px) {
    .swish-discount-buttons {
        flex-direction: column;
    }
    
    .swish-discount-btn {
        max-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .swish-discount-btn .btn-icon {
        margin-bottom: 0;
    }
    
    .swish-discount-form .form-row input {
        max-width: 100%;
    }
}

/* ============================================
   OPTION C: FULL WIDTH WRAPPER
   Inside order review table (PHP hook placement)
   ============================================ */

/* Table row container (added by PHP) */
tr.swish-discount-row {
    background: transparent !important;
}

tr.swish-discount-row > td {
    padding: 15px 0 !important;
    border: none !important;
}

/* Hide original "יש לך קופון?" and its entire row */
/* .woocommerce-cart-form__contents tr td.actions,
.shop_table tr td.actions,
.is-apply-coupon,
.woocommerce-form-coupon-toggle,
.checkout_coupon,
.woocommerce-form-coupon {
    display: none !important;
} */

/* Wrapper - Hidden by default, shown when order details are expanded */
#swish-discount-wrapper.swish-discount-wrapper{
    display: flow;
    background-color: #fff;
    margin-top: -10px;
}

/* #swish-discount-wrapper.swish-discount-wrapper.visible {
    display: block !important;
    max-width: calc(100% - 40px);
    margin: 0px auto 40px !important;
    padding: 0 22px !important;
    direction: rtl !important;
    box-sizing: border-box !important;
    background: white;
    border: 1px solid #070707;
    position: relative;
    bottom: 25px;
} */

/* Toggle row - קישורים ראשיים */
#swish-discount-wrapper .swish-coupon-toggle-row {
    padding: 12px 15px !important;
    text-align: right !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: right !important;
    flex-direction: row !important;
}

/* קישורים בסגנון לינק - כל הקישורים נראים אותו דבר */
#swish-discount-wrapper .swish-coupon-link {
    color: #434867 !important;
    text-decoration: underline !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

#swish-discount-wrapper .swish-coupon-link:hover {
    color: #2d3148 !important;
}

#swish-discount-wrapper .swish-coupon-link.active {
    font-weight: 600 !important;
    color: #2d3148 !important;
}

/* מפריד בין קישורים */
#swish-discount-wrapper .swish-coupon-separator {
    color: #434867 !important;
    font-size: 15px !important;
    opacity: 0.5 !important;
}

/* אזור קישורי SWISH המשניים */
#swish-discount-wrapper .swish-sub-options {
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

#swish-discount-wrapper .swish-sub-links {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

#swish-discount-wrapper .swish-sub-link {
    font-size: 14px !important;
}

/* Content area - hidden initially */
#swish-discount-wrapper .swish-discount-content {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-top: 10px !important;
    max-width: 600px;
    box-sizing: border-box !important;
}

/* כפתורי הבחירה - Layout */
#swish-discount-wrapper .swish-discount-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
}

/* כפתורי הבחירה - עיצוב */
#swish-discount-wrapper .swish-discount-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 12px 15px !important;
    background-color: #434867 !important;
    color: #fff !important;
    border: 3px solid transparent !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

#swish-discount-wrapper .swish-discount-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

#swish-discount-wrapper .swish-discount-btn.active {
    border: 3px solid #dad8eb !important;
    box-shadow: 0 0 0 2px #434867 !important;
}

/* אייקון */
#swish-discount-wrapper .swish-discount-btn .btn-icon {
    font-size: 20px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* טקסט */
#swish-discount-wrapper .swish-discount-btn .btn-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    color: #fff !important;
}

/* טפסים */
#swish-discount-wrapper .swish-discount-form {
    padding: 20px 0 10px !important;
    border-top: 1px solid #eee !important;
    margin-top: 15px !important;
}

#swish-discount-wrapper .swish-discount-form .form-description {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

/* שדות קלט */
#swish-discount-wrapper .swish-discount-form .form-row {
    margin-bottom: 15px !important;
}

#swish-discount-wrapper input[type="text"],
#swish-discount-wrapper .form-row input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-align: right !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

#swish-discount-wrapper input::placeholder {
    font-size: 16px !important;
    color: #9ca3af !important;
}

#swish-discount-wrapper input:focus {
    outline: none !important;
    border-color: #434867 !important;
    box-shadow: 0 0 0 3px rgba(67, 72, 103, 0.1) !important;
}

/* כפתורי פעולה */
#swish-discount-wrapper .form-actions {
    margin-top: 20px !important;
    text-align: center !important;
}

#swish-discount-wrapper .form-actions button,
#swish-discount-wrapper .form-actions .button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    background-color: #434867 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(67, 72, 103, 0.3) !important;
}

#swish-discount-wrapper .form-actions button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(67, 72, 103, 0.4) !important;
}

/* Slider container */
#swish-discount-wrapper .gift-card-slider-wrapper {
    max-width: 100% !important;
    margin: 20px 0 40px !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
    #swish-discount-wrapper .swish-discount-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #swish-discount-wrapper .swish-discount-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 15px !important;
    }
    
    #swish-discount-wrapper .swish-discount-btn .btn-text {
        font-size: 15px !important;
    }
    
    #swish-discount-wrapper .swish-discount-content {
        padding: 15px !important;
    }
}
tr.coupon-wrapper-text {
    display: none;
}

/* ============================================
   PAYMENT AREA - Always visible (before order total)
   ============================================ */
tr.swish-discount-payment-row > td {
    padding: 15px 0 !important;
    border: none !important;
}

#swish-discount-payment {
    margin: 10px 0;
}
tr.swish-discount-payment-row td {
    padding: 0 !important;
}
/* Toggle row - קישורים ראשיים באזור התשלום */
.swish-payment-discount-ui .swish-coupon-toggle-row-payment {
    padding: 0 12px;
    text-align: right;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: right;
    flex-direction: row;
}
/* קישורים בסגנון לינק - כל הקישורים נראים אותו דבר */
.swish-payment-discount-ui .swish-coupon-link-payment {
    color: #434867;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.swish-payment-discount-ui .swish-coupon-link-payment:hover {
    color: #2d3148;
}

.swish-payment-discount-ui .swish-coupon-link-payment.active {
    font-weight: 600;
    color: #2d3148;
}

/* מפריד בין קישורים */
.swish-payment-discount-ui .swish-coupon-separator {
    color: #434867;
    font-size: 15px;
    opacity: 0.5;
}

/* אזור קישורי SWISH המשניים */
.swish-payment-discount-ui .swish-sub-options {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.swish-payment-discount-ui .swish-sub-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.swish-payment-discount-ui .swish-sub-link-payment {
    font-size: 14px;
}

.swish-payment-discount-ui .swish-discount-content-payment {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.swish-payment-discount-ui .swish-discount-form {
    padding: 15px;
}

.swish-payment-discount-ui .form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.swish-payment-discount-ui .form-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.swish-payment-discount-ui input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.swish-payment-discount-ui .form-actions button {
    width: 100%;
    padding: 14px 20px;
    background-color: #434867;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Payment area - responsive */
@media (max-width: 500px) {
    .swish-payment-discount-ui .swish-coupon-toggle-row-payment {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Payment area - responsive */
@media (min-width: 1000px) and (max-width: 1500px) {
    #swish-discount-wrapper.swish-discount-wrapper.visible {
        max-width: 1360px;
    }
}

/* Message Containers */
.swish-messages-container {
    min-height: 0;
    margin: 10px 0;
}

.swish-messages-container:empty {
    display: none;
}

/* Applied Coupons Display */
.swish-applied-coupons {
    margin-top: 10px;
    padding: 12px;
    background: #f0f9ff;
    border: 1px solid #0071a1;
    border-radius: 4px;
    font-size: 14px;
}

.swish-applied-coupons strong {
    color: #0071a1;
    display: block;
    margin-bottom: 8px;
}

.swish-applied-coupons > div {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.swish-applied-coupons .swish-remove-coupon {
    background: #dc3232;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.swish-applied-coupons .swish-remove-coupon:hover {
    background: #a00;
}

/* Responsive adjustments for applied coupons */
@media (max-width: 500px) {
    .swish-applied-coupons > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .swish-applied-coupons .swish-remove-coupon {
        align-self: flex-end;
    }
}

/* ============================================
   BALANCE CHECK FEATURE
   ============================================ */

/* כפתור בדיקת יתרה */
.check-swish-balance-button {
    background: #0071a1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 161, 0.3);
    width: 100% !important;
    max-width: 100% !important;
}

.check-swish-balance-button:hover {
    background: #005a7f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 161, 0.4);
}

.check-swish-balance-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* תצוגת יתרה */
.swish-balance-display {
    background: #f0f9ff !important;
    border: 1px solid #0071a1 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.swish-balance-display strong {
    display: block !important;
    color: #0071a1 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

#swish-balance-amount {
    display: block !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: #0071a1 !important;
    margin-top: 5px !important;
}

/* אזור תוצאות היתרה */
#swish-balance-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    animation: fadeIn 0.3s ease;
}
.woofc-coupon {display: none;}