/* --------------------------------------------------------------
   bilderrahmen.css
   commerce:SEO / Gambio GXModules - Bilderrahmen-Konfigurator Widget Styles
   --------------------------------------------------------------
*/

.cseo-frame-calc-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0 25px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    color: #1e293b;
    position: relative;
    overflow: hidden;
}

.cseo-frame-calc-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #fd7e14 0%, #f59f00 100%);
}

.cseo-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cseo-frame-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.cseo-frame-icon {
    color: #fd7e14;
    flex-shrink: 0;
}

.cseo-frame-badge {
    background-color: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cseo-frame-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Preset Buttons */
.cseo-frame-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.cseo-preset-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.cseo-preset-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cseo-preset-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.cseo-preset-btn.active {
    background: #fd7e14;
    border-color: #fd7e14;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.25);
}

/* Input Fields Grid */
.cseo-frame-inputs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.cseo-frame-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.cseo-frame-input-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cseo-frame-input-card .cseo-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cseo-frame-input-card .cseo-input-wrap:focus-within {
    border-color: #fd7e14;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.15);
}

.cseo-frame-input-card input.form-control {
    border: none !important;
    box-shadow: none !important;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    padding: 6px 10px;
    width: 100%;
}

.cseo-frame-input-card .cseo-input-suffix {
    background: #f1f5f9;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    border-left: 1px solid #e2e8f0;
}

.cseo-frame-input-card .cseo-input-limits {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.cseo-frame-separator {
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    text-align: center;
}

/* Glass Option Toggle */
.cseo-frame-glass-opt {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cseo-glass-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #166534;
    cursor: pointer;
    margin-bottom: 0;
}

.cseo-glass-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cseo-glass-surcharge-badge {
    font-size: 0.8rem;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Visual Frame Preview */
.cseo-frame-visual-wrap {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    min-height: 140px;
}

.cseo-frame-preview-box {
    border: 8px solid #78350f;
    background: #ffffff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.3s ease, height 0.3s ease;
    min-width: 80px;
    min-height: 80px;
    max-width: 240px;
    max-height: 180px;
}

.cseo-preview-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    line-height: 1.2;
}

.cseo-preview-details {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Results & Summary */
.cseo-frame-results {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}

.cseo-frame-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #cbd5e1;
}

.cseo-metric-box {
    display: flex;
    flex-direction: column;
}

.cseo-metric-lbl {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.cseo-metric-val {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.cseo-frame-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}

.cseo-frame-price-box.cseo-price-highlight {
    background: #fff7ed;
    border-color: #fed7aa;
}

.cseo-price-lbl {
    font-size: 0.9rem;
    font-weight: 700;
    color: #9a3412;
}

.cseo-price-calc-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #c2410c;
}

/* Warnings */
.cseo-frame-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .cseo-frame-inputs-grid {
        grid-template-columns: 1fr;
    }
    .cseo-frame-separator {
        display: none;
    }
    .cseo-frame-metrics {
        grid-template-columns: 1fr;
    }
}
