/* Cart Voucher Picker Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#voucher-picker-app {
    font-family: 'Inter', sans-serif;
}

.voucher-cart-entry {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.voucher-cart-entry:hover {
    border-color: #00b894;
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.12);
    transform: translateY(-2px);
}

.entry-icon {
    color: #00b894;
    margin-right: 16px;
    display: flex;
    align-items: center;
    background: rgba(0, 184, 148, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.entry-label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
}

.entry-subtitle {
    font-size: 13px;
    color: #00b894;
    margin-top: 4px;
    font-weight: 500;
}

.entry-arrow {
    color: #cbd5e1;
    transition: transform 0.3s;
}

.voucher-cart-entry:hover .entry-arrow {
    color: #00b894;
    transform: translateX(4px);
}

/* Modal Overrides */
.modal-popup.voucher-picker-modal .modal-inner-wrap {
    max-width: 480px;
    width: 95%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: none;
    font-family: 'Inter', sans-serif;
}

.modal-popup.voucher-picker-modal .modal-header {
    padding: 24px 24px 20px;
    background: #ffffff;
    border-bottom: none;
}

.modal-popup.voucher-picker-modal .modal-title {
    font-weight: 700;
    font-size: 20px;
    color: #1e293b;
}

.modal-popup.voucher-picker-modal .action-close {
    padding: 16px;
}

.modal-popup.voucher-picker-modal .modal-content {
    padding: 0;
}

/* Modal Header (Input) */
.voucher-modal-header {
    padding: 0 24px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.voucher-input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.voucher-input-group:focus-within {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
    background: #ffffff;
}

.voucher-input-label {
    display: none;
}

.voucher-input-text {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    color: #334155 !important;
    box-shadow: none !important;
}
.voucher-input-text:focus {
    box-shadow: none !important;
}

.voucher-btn--secondary {
    background: #00b894 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
}
.voucher-btn--secondary:hover {
    background: #00a884;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

/* Modal Body */
.voucher-modal-body {
    padding: 24px;
    background: #f4f6f8;
}

/* Redesign the Empty Message */
.voucher-modal-body .message.info.empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    color: #64748b;
    font-weight: 500;
    font-size: 15px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.voucher-modal-body .message.info.empty::before {
    content: "🎫";
    font-size: 40px;
    display: block;
}
.voucher-modal-body .message.info.empty span {
    display: block;
}
.voucher-modal-body .message.info.empty > *:first-child::before {
    display: none !important;
}

.voucher-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 24px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.voucher-section-title:first-child {
    margin-top: 0;
}
.voucher-section-title svg {
    color: #00b894;
}

.voucher-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mini Card - Premium Style */
.voucher-card-mini {
    display: flex;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 100px;
}

.voucher-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.voucher-card-mini.is-disabled {
    opacity: 0.6;
    filter: grayscale(1);
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.voucher-card-mini__left {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Scallop edge on the card left */
.voucher-card-mini__left::before, .voucher-card-mini__left::after {
    content: '';
    position: absolute;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #f4f6f8; /* Matches body bg */
    border-radius: 50%;
}
.voucher-card-mini__left::before { top: -8px; }
.voucher-card-mini__left::after { bottom: -8px; }

.voucher-icon svg {
    width: 44px;
    height: 44px;
    margin: 0 auto;
}

.badge-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 2px 8px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-bottom-left-radius: 8px;
}

.voucher-card-mini__right {
    flex-grow: 1;
    padding: 16px 20px 16px 16px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.v-details {
    flex-grow: 1;
    padding-right: 16px;
}

.v-title {
    display: block;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 700;
}

.v-min-order {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.v-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.v-select input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Themes */
.voucher-card-mini.voucher-card--shipping .voucher-card-mini__left {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
}

.voucher-card-mini.voucher-card--product .voucher-card-mini__left {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

/* Modal Footer */
.voucher-modal-footer {
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.voucher-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.voucher-btn--outline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}
.voucher-btn--outline:hover {
    background: #f1f5f9;
    color: #334155;
}

.voucher-btn--primary {
    background: #00b894;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}
.voucher-btn--primary:hover:not(._disabled) {
    background: #00a884;
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.3);
    transform: translateY(-1px);
}

.voucher-btn._disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e1;
    box-shadow: none;
    color: #ffffff;
}

/* Hide native Magento discount form on Cart and Checkout page */
.cart-discount, .block.discount, .payment-option.discount-code {
    display: none !important;
}
