/**
 * CoolAir Installation Type Buttons
 * Styles matching coolair-product-attributes widget
 * Version: 1.0.0
 */

/* ============================================================
   INSTALLATION TYPE SECTION — Same structure as coolair-attribute-section
   ============================================================ */
.coolair-installation-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

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

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

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

/* Required tag removed */

/* ============================================================
   INSTALLATION TYPE BUTTONS — Same as coolair-attribute-button
   ============================================================ */
.coolair-installation-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coolair-installation-button {
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    position: relative;
    outline: none;
    min-width: 140px;
    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-installation-button:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #1e40af;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

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

/* Active — blue gradient (distinct from voucher green) */
.coolair-installation-button.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
    font-weight: 600;
}

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

.coolair-installation-button.active .coolair-installation-btn-price {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================================
   BUTTON INNER ELEMENTS
   ============================================================ */
.coolair-installation-btn-label {
    color: inherit;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.coolair-installation-btn-price {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.coolair-installation-btn-price.price-free {
    color: #059669;
    background: #ecfdf5;
}

/* ============================================================
   PRICE DIFFERENCE INDICATOR
   ============================================================ */
.coolair-installation-price-diff {
    font-size: 11px;
    font-weight: 600;
    margin-left: 2px;
}

.coolair-installation-price-diff.price-up {
    color: #dc2626;
}

.coolair-installation-price-diff.price-down {
    color: #059669;
}

.coolair-installation-price-diff.price-same {
    color: #64748b;
}

/* ============================================================
   PRICE UPDATE ANIMATION
   ============================================================ */
.coolair-installation-price-flash {
    animation: coolairInstallFlash 0.4s ease;
}

@keyframes coolairInstallFlash {
    0%   { background-color: transparent; }
    30%  { background-color: rgba(59, 130, 246, 0.08); }
    100% { background-color: transparent; }
}

/* Info row removed - clean button-only layout */

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

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

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

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

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .coolair-installation-section {
        display: none !important;
    }
}