/**
 * CoolAir Climate Voucher Buttons
 * Styles matching coolair-product-attributes widget
 * Version: 10.1.0
 */

/* ============================================================
   CLIMATE SECTION — Same flex layout as coolair-attribute-section
   ============================================================ */
.coolair-climate-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.coolair-climate-section .coolair-climate-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
	flex-direction: column;
}

.coolair-climate-section .coolair-attribute-label {
    min-width: 140px;
    flex-shrink: 0;
}

.coolair-climate-section .coolair-label-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   CLIMATE BUTTONS — Independent, no shared class with PA widget
   ============================================================ */
.coolair-climate-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coolair-climate-button {
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    background-color: #f0f0f0;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    position: relative;
    outline: none;
    min-width: 120px;
    flex: 0 0 auto;
    line-height: 1.5;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.coolair-climate-button:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.coolair-climate-button:active {
    transform: scale(0.98);
}

.coolair-climate-button.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    font-weight: 600;
}

.coolair-climate-button.active .coolair-climate-btn-label {
    color: #ffffff;
}

/* ============================================================
   NO VOUCHER BUTTON — subtle, default state
   ============================================================ */
.coolair-no-voucher-btn {
    border-style: dashed;
    color: #9ca3af;
    font-style: italic;
}

.coolair-no-voucher-btn:hover {
    border-color: #6b7280;
    background-color: #f9fafb;
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.coolair-no-voucher-btn.active {
    border-style: solid;
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.25);
    font-style: normal;
}

.coolair-climate-btn-label {
    color: inherit;
    transition: color 0.2s ease;
    white-space: nowrap;
}

/* ============================================================
   APPLIED NOTICE
   ============================================================ */
.coolair-climate-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #86efac;
    border-radius: 6px;
    animation: coolairClimateSlide 0.3s ease;
}

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

.coolair-climate-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.coolair-climate-notice-text {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

/* ============================================================
   PRICE DISCOUNT STYLES
   ============================================================ */
.coolair-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 400;
    margin-right: 8px;
}

.coolair-price-discounted {
    color: #333333;
    font-weight: 700;
}

/* ============================================================
   CHECKOUT VOUCHER NOTICE
   ============================================================ */
.coolair-checkout-voucher-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #86efac;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    margin-bottom: 20px;
}

.coolair-checkout-voucher-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.coolair-checkout-voucher-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coolair-checkout-voucher-info strong {
    color: #065f46;
    font-size: 15px;
}

.coolair-checkout-voucher-info span {
    color: #047857;
    font-size: 13px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .coolair-climate-button {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .coolair-climate-section .coolair-climate-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .coolair-climate-section .coolair-attribute-label {
        min-width: auto;
    }

    .coolair-climate-button {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .coolair-climate-notice {
        padding: 8px 10px;
    }

    .coolair-climate-notice-text {
        font-size: 12px;
    }
}

@media print {
    .coolair-climate-section {
        display: none !important;
    }
}