/**
 * WooCommerce Installation Booking Manager - Frontend Styles v2.0
 * Supports 3 modes: Self-only, Professional-only, Both-options
 */

/* Main Container */
.wc-installation-selector {
    margin-bottom: 20px;
}

.wc-installation-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Installation Options - Mode 3: Both Options */
.wc-installation-options {
    margin-bottom: 15px;
}

.wc-installation-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.wc-installation-option:hover {
    border-color: #2196F3;
}

.wc-installation-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.wc-option-content {
    flex: 1;
}

.wc-option-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.wc-option-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Notice Box - Mode 2: Professional Only */
.wc-installation-notice-box {
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    margin-bottom: 15px;
    border-radius: 3px;
}

.wc-installation-notice-box strong {
    display: block;
    margin-bottom: 5px;
    color: #0066cc;
}

.wc-installation-notice-box p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Notice at top - before variations */
.wc-notice-top {
    margin-top: 10px;
}

/* Notice after variation selection */
.wc-notice-after {
    margin-top: 15px;
}

/* Deposit Info - Shown in both Mode 2 and Mode 3 */
.wc-installation-deposit-info {
    padding: 12px;
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    margin-bottom: 15px;
    border-radius: 3px;
}

.wc-installation-deposit-info strong {
    font-size: 14px;
    color: #333;
}

.wc-deposit-amount {
    color: #2196F3;
    font-weight: 600;
    font-size: 16px;
}

.wc-balance-text {
    color: #666;
    font-size: 13px;
}

/* Cart Notice */
.wc-installation-cart-notice {
    font-size: 12px;
    color: #2196F3;
    margin-top: 5px;
    padding: 5px 0;
}

.wc-installation-cart-notice strong {
    display: block;
    margin-bottom: 3px;
}

/* Order Notice */
.wc-installation-order-notice {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-left: 3px solid #2196F3;
    border-radius: 3px;
}

.wc-installation-order-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #0066cc;
}

.wc-installation-order-notice small {
    font-size: 13px;
    color: #666;
}

/* Hide installation dropdown - Only for Mode 3 (Both Options) */
.variations select[name="attribute_installation-type"],
.variations tr.attribute_installation-type {
    display: none !important;
}

/* Loading State */
.wc-installation-selector.loading .wc-installation-deposit-info {
    opacity: 0.6;
    pointer-events: none;
}

/* Fade-in animation for dynamic content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-installation-deposit-info,
.wc-installation-notice-box.wc-notice-after {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-installation-option {
        padding: 10px;
    }
    
    .wc-installation-notice-box {
        padding: 12px;
    }
    
    .wc-installation-deposit-info {
        padding: 10px;
    }
}

/* Accessibility - Focus states */
.wc-installation-option:focus-within {
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

input[name="wc_installation_method"]:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}