/* Premium Floor Calculator Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.wc-fc-calculator-card {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 8px 15px -6px rgba(0, 0, 0, 0.02);
    padding: 28px;
    margin: 24px 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wc-fc-calculator-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.06), 0 12px 18px -5px rgba(0, 0, 0, 0.03);
}

/* Header */
.wc-fc-card-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.wc-fc-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0c4028;
}

.wc-fc-card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c4028;
    letter-spacing: -0.01em;
}

/* Input Fields */
.wc-fc-input-wrapper {
    margin-bottom: 24px;
}

.wc-fc-input-wrapper label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.wc-fc-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #cbd5e1;
    transition: all 0.25s ease;
}

.wc-fc-input-group:focus-within {
    border-color: #0c4028;
    box-shadow: 0 0 0 3px rgba(12, 64, 40, 0.12);
}

.wc-fc-m2-input {
    flex-grow: 1;
    width: 100%;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
}

.wc-fc-m2-input:focus {
    background-color: #ffffff;
}

.wc-fc-input-suffix {
    display: flex;
    align-items: center;
    background: #e2e8f0;
    color: #334155;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    border-left: 1px solid #cbd5e1;
    user-select: none;
}

/* Range Slider */
.wc-fc-slider-wrapper {
    margin: 20px 0 16px 0;
}

.wc-fc-m2-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
    margin: 8px 0;
}

.wc-fc-m2-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0c4028;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wc-fc-m2-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wc-fc-m2-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0c4028;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wc-fc-m2-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.wc-fc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

/* Preset Buttons */
.wc-fc-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.wc-fc-preset-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 6px;
}

.wc-fc-preset-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.wc-fc-preset-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0c4028;
}

.wc-fc-preset-btn.active {
    background: #0c4028;
    border-color: #0c4028;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(12, 64, 40, 0.2);
}

.wc-fc-summary-grid {
    display: none !important;
}

.wc-fc-summary-item {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.wc-fc-summary-item:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.wc-fc-summary-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.wc-fc-summary-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

/* Final Box / Result Output */
.wc-fc-final-box {
    background: linear-gradient(135deg, #0c4028 0%, #175e3c 100%);
    border: none;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(12, 64, 40, 0.15);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.wc-fc-final-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.wc-fc-final-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.wc-fc-final-row:last-child {
    margin-bottom: 0;
}

.wc-fc-final-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #d1fae5;
}

.wc-fc-final-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.wc-fc-final-value.highlight {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c4028;
    background: #ffffff;
    padding: 6px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-block;
    transition: transform 0.2s ease;
}

.wc-fc-final-value.highlight:hover {
    transform: translateY(-1px);
}
.wc-fc-final-row.sub-info {
    display: none !important;
}

.wc-fc-final-row.price-info {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 10px;
}

#wc-fc-price-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #34d399;
}

#wc-fc-price-val .woocommerce-Price-currencySymbol {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Warnings */
.wc-fc-warning {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Product Page Price Additions styling */
.wc-fc-price-suffix {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 6px;
}

.wc-fc-pack-price-display {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    display: inline-block;
}

/* Responsiveness */
@media (max-width: 480px) {
    .wc-fc-calculator-card {
        padding: 20px;
    }
    
    .wc-fc-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wc-fc-final-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .wc-fc-final-value.highlight {
        align-self: stretch;
        text-align: center;
        margin-top: 4px;
    }
    
    #wc-fc-price-val {
        align-self: flex-end;
        margin-top: 4px;
    }
    
    .wc-fc-presets {
        justify-content: flex-start;
        gap: 6px;
    }
}

/* Prevent calculator and pack price displays inside sticky add-to-cart panels */
.ast-sticky-add-to-cart-content .wc-fc-calculator-card,
.ast-sticky-add-to-cart-action-wrap .wc-fc-calculator-card,
[class*="ast-sticky-add-to-cart"] .wc-fc-calculator-card,
.sticky-add-to-cart .wc-fc-calculator-card,
.sticky-add-to-cart-wrapper .wc-fc-calculator-card,
.sticky-add-to-cart-bar .wc-fc-calculator-card,
.sticky-cart-bar .wc-fc-calculator-card,
.sticky-payment-bar .wc-fc-calculator-card,
.woodmart-sticky-btn-panel .wc-fc-calculator-card,
.wd-sticky-btn-wsp .wc-fc-calculator-card,
.wd-sticky-btn .wc-fc-calculator-card,
.flatsome-sticky-add-to-cart .wc-fc-calculator-card,
.ast-sticky-add-to-cart-wrapper .wc-fc-calculator-card,
.kadence-sticky-add-to-cart .wc-fc-calculator-card,
.porto-sticky-add-to-cart .wc-fc-calculator-card,
.oceanwp-sticky-btn .wc-fc-calculator-card,
.divi-sticky-add-to-cart .wc-fc-calculator-card,
.wp-sticky-button .wc-fc-calculator-card,
.sticky-bar .wc-fc-calculator-card,
.sticky-add-cart .wc-fc-calculator-card,
.sticky-cart .wc-fc-calculator-card {
    display: none !important;
}

.ast-sticky-add-to-cart-content .wc-fc-pack-price-display,
.ast-sticky-add-to-cart-action-wrap .wc-fc-pack-price-display,
[class*="ast-sticky-add-to-cart"] .wc-fc-pack-price-display,
.sticky-add-to-cart .wc-fc-pack-price-display,
.sticky-add-to-cart-wrapper .wc-fc-pack-price-display,
.sticky-add-to-cart-bar .wc-fc-pack-price-display,
.sticky-cart-bar .wc-fc-pack-price-display,
.sticky-payment-bar .wc-fc-pack-price-display,
.woodmart-sticky-btn-panel .wc-fc-pack-price-display,
.wd-sticky-btn-wsp .wc-fc-pack-price-display,
.wd-sticky-btn .wc-fc-pack-price-display,
.flatsome-sticky-add-to-cart .wc-fc-pack-price-display,
.ast-sticky-add-to-cart-wrapper .wc-fc-pack-price-display,
.kadence-sticky-add-to-cart .wc-fc-pack-price-display,
.porto-sticky-add-to-cart .wc-fc-pack-price-display,
.oceanwp-sticky-btn .wc-fc-pack-price-display,
.divi-sticky-add-to-cart .wc-fc-pack-price-display,
.wp-sticky-button .wc-fc-pack-price-display,
.sticky-bar .wc-fc-pack-price-display,
.sticky-add-cart .wc-fc-pack-price-display,
.sticky-cart .wc-fc-pack-price-display {
    display: none !important;
}
