:root {
    /* Primary */
    --ofc-primary: #009de0;
    --ofc-primary-hover: #05b4ff;
    /* Primary with alpha (backgrounds, borders, shadows) */
    --ofc-primary-tint: rgba(0, 157, 224, 0.08);
    --ofc-primary-tint-light: rgba(0, 157, 224, 0.06);
    --ofc-primary-border: rgba(0, 157, 224, 0.2);
    --ofc-primary-border-strong: rgba(0, 157, 224, 0.25);
    --ofc-primary-focus: rgba(0, 157, 224, 0.15);
    --ofc-primary-focus-ring: rgba(0, 157, 224, 0.25);
    --ofc-primary-shadow-sm: rgba(0, 157, 224, 0.12);
    --ofc-primary-shadow: rgba(0, 157, 224, 0.35);
    --ofc-primary-shadow-hover: rgba(0, 157, 224, 0.4);
    /* Backgrounds */
    --ofc-bg: #fff;
    --ofc-bg-muted: #f8f9fa;
    --ofc-bg-track: #e0e0e0;
    --ofc-bg-input: #e9ecef;
    --ofc-bg-input-hover: #dee2e6;
    /* Text */
    --ofc-text: #212529;
    --ofc-text-muted: #6c757d;
    --ofc-text-label: #495057;
    --ofc-text-placeholder: #adb5bd;
    --ofc-text-inverse: #fff;
    /* Borders */
    --ofc-border: #e0e0e0;
    --ofc-border-muted: #e9ecef;
    --ofc-border-hover: #dee2e6;
    /* State: error */
    --ofc-error-bg: #f8d7da;
    --ofc-error-text: #721c24;
    /* State: success */
    --ofc-success-bg: #d4edda;
    --ofc-success-text: #155724;
    /* Shadows (neutral) */
    --ofc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ofc-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --ofc-shadow-inner: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ofc-configurator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    scroll-margin-top: 90px;
    background: var(--ofc-bg);
    border-radius: 12px;
    box-shadow: var(--ofc-shadow);
    font-size: 18px;
    font-family: inherit;
    position: relative;
}

/* Semi-transparent overlay while quote is being submitted */
.ofc-configurator--submitting {
    pointer-events: none;
}

.ofc-configurator--submitting::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    z-index: 10;
}

.ofc-configurator--submitting::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--ofc-bg-input);
    border-top-color: var(--ofc-primary);
    border-radius: 50%;
    animation: ofc-spin 0.8s linear infinite;
    z-index: 11;
}

.ofc-progress {
    margin-bottom: 24px;
}

.ofc-progress-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.ofc-progress-bar {
    height: 8px;
    background: var(--ofc-bg-track);
    border-radius: 4px;
    overflow: hidden;
}

.ofc-progress-fill {
    display: block;
    height: 100%;
    background: var(--ofc-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ofc-steps {
    min-height: 80px;
}

/* Sub-sections within merged steps */
.ofc-step-section {
    margin-bottom: 28px;
}

.ofc-step-section:last-child {
    margin-bottom: 0;
}

.ofc-step-subtitle {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ofc-text-label);
}

.ofc-step-1,
.ofc-step-2{
    min-height: 250px;
}

.ofc-step-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

.ofc-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ofc-categories.ofc-categories--1 {
    grid-template-columns: 1fr;
    max-width: 240px;
}

.ofc-categories.ofc-categories--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 416px;
}

.ofc-categories.ofc-categories--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 528px;
}

.ofc-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px;
    color: var(--ofc-text-muted);
}

.ofc-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--ofc-bg-input);
    border-top-color: var(--ofc-primary);
    border-radius: 50%;
    animation: ofc-spin 0.8s linear infinite;
}

.ofc-loading-text {
    font-size: 0.95em;
}

@keyframes ofc-spin {
    to { transform: rotate(360deg); }
}

.ofc-loading-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    text-align: center;
    color: var(--ofc-error-text);
    background: var(--ofc-error-bg);
    border-radius: 8px;
}

.ofc-empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    text-align: center;
    color: var(--ofc-text-muted);
}

.ofc-decors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    transition: all 0.2s ease;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ofc-border-hover) var(--ofc-bg-muted);
}

.ofc-decors::-webkit-scrollbar {
    width: 8px;
}

.ofc-decors::-webkit-scrollbar-track {
    background: var(--ofc-bg-muted);
    border-radius: 4px;
}

.ofc-decors::-webkit-scrollbar-thumb {
    background: var(--ofc-border-hover);
    border-radius: 4px;
}

.ofc-decors::-webkit-scrollbar-thumb:hover {
    background: var(--ofc-primary);
}

.ofc-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.ofc-btn-load-more {
    background: transparent;
    border: 1px solid var(--ofc-primary);
    color: var(--ofc-primary);
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.ofc-btn-load-more:hover {
    background: var(--ofc-primary);
    color: var(--ofc-text-inverse);
}

.ofc-cat-card {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--ofc-border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.ofc-cat-card:hover {
    border-color: var(--ofc-primary);
    box-shadow: var(--ofc-shadow-card);
}

.ofc-cat-card.selected {
    border-color: var(--ofc-primary);
    background: var(--ofc-primary);
    color: var(--ofc-text-inverse);
}

.ofc-cat-card.ofc-card--loading,
.ofc-decor-card.ofc-card--loading {
    pointer-events: none;
    position: relative;
}

.ofc-cat-card.ofc-card--loading::after,
.ofc-decor-card.ofc-card--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner ring centered on the loading card */
.ofc-cat-card.ofc-card--loading::before,
.ofc-decor-card.ofc-card--loading::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 1;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--ofc-primary);
    border-radius: 50%;
    animation: ofc-spin 0.7s linear infinite;
}

/* Prevent sibling cards from being clicked while one is loading */
.ofc-categories:has(.ofc-card--loading) .ofc-cat-card:not(.ofc-card--loading),
.ofc-decors:has(.ofc-card--loading) .ofc-decor-card:not(.ofc-card--loading) {
    pointer-events: none;
    opacity: 0.5;
}

.ofc-cat-card img {
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.ofc-decor-card {
    min-width: 0;
    border: 1px solid var(--ofc-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ofc-decor-card-inner {
    width: 100%;
    min-width: 0;
}

.ofc-decor-card:hover {
    border-color: var(--ofc-primary);
    box-shadow: var(--ofc-shadow-card);
}

.ofc-decor-card.selected {
    border-color: var(--ofc-primary);
    background: var(--ofc-primary);
    color: var(--ofc-text-inverse);
}

.ofc-decor-card.selected .ofc-decor-card-title {
    color: var(--ofc-text-inverse);
}

.ofc-decor-swiper {
    width: 100%;
    height: 250px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.ofc-decor-swiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofc-decor-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.ofc-decor-swiper .swiper-button-prev,
.ofc-decor-swiper .swiper-button-next {
    --swiper-navigation-color: var(--ofc-text-inverse);
    color: var(--ofc-text-inverse);
    opacity: 0.3;
    transform: scale(0.55);
    transition: opacity 0.2s ease;
}

.ofc-decor-swiper .swiper-button-prev::after,
.ofc-decor-swiper .swiper-button-next::after {
    color: var(--ofc-text-inverse);
}

.ofc-decor-card:hover .ofc-decor-swiper .swiper-button-prev,
.ofc-decor-card:hover .ofc-decor-swiper .swiper-button-next {
    opacity: 1;
}

.ofc-decor-card-no-image {
    width: 100%;
    height: 250px;
    min-height: 250px;
    border-radius: 4px;
    background: var(--ofc-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ofc-decor-card-no-image-text {
    color: var(--ofc-text-muted);
    font-size: 0.9rem;
}

.ofc-decor-card-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Dimensions step – modern form layout, 2 columns */
.ofc-dimensions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 560px;
}

.ofc-dimensions > .ofc-length-row,
.ofc-dimensions > .ofc-height-row {
    margin: 0;
}
.ofc-dimensions > .ofc-height-row {
    grid-column: 1 / -1;
}

.ofc-length-row label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    color: var(--ofc-text-label);
}

.ofc-length-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ofc-length-value {
    font-weight: 700;
    min-width: 3.5em;
    width: 5em;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--ofc-primary);
    padding: 8px 12px;
    background: var(--ofc-primary-tint);
    border-radius: 8px;
    border: 1px solid var(--ofc-primary-border);
}

.ofc-dimensions label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: var(--ofc-text-label);
    font-size: 0.95rem;
}

.ofc-dimensions input[type="number"] {
    width: 100%;
    max-width: 50px;
    padding: 14px 10px;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ofc-text);
    border: 1px solid var(--ofc-border);
    border-radius: 10px;
    background: var(--ofc-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ofc-dimensions input[type="number"]:hover {
    border-color: var(--ofc-border-hover);
}

.ofc-dimensions input[type="number"]:focus {
    outline: none;
    border-color: var(--ofc-primary);
    box-shadow: 0 0 0 4px var(--ofc-primary-focus);
}

.ofc-dimensions input[type="number"]::placeholder {
    color: var(--ofc-text-placeholder);
}

.ofc-dimensions select {
    width: 100%;
    max-width: 200px;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--ofc-border);
    border-radius: 10px;
    background: var(--ofc-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ofc-dimensions select:focus {
    outline: none;
    border-color: var(--ofc-primary);
    box-shadow: 0 0 0 4px var(--ofc-primary-focus);
}

.ofc-height-row {
    display: block;
    margin: 0;
}

.ofc-height-row label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    color: var(--ofc-text-label);
}

.ofc-height-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ofc-height-value {
    font-weight: 700;
    min-width: 3.5em;
    width: 4.5em;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--ofc-primary);
    padding: 8px 12px;
    background: var(--ofc-primary-tint);
    border-radius: 8px;
    border: 1px solid var(--ofc-primary-border);
}

.ofc-height-slider,
.ofc-length-slider {
    flex: 1;
    min-width: 0;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--ofc-bg-input);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ofc-height-slider:hover,
.ofc-length-slider:hover {
    background: var(--ofc-bg-input-hover);
}

.ofc-height-slider::-webkit-slider-thumb,
.ofc-length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ofc-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--ofc-primary-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ofc-height-slider::-webkit-slider-thumb:hover,
.ofc-length-slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px var(--ofc-primary-shadow-hover);
}

.ofc-height-slider::-moz-range-thumb,
.ofc-length-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ofc-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px var(--ofc-primary-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ofc-height-slider::-moz-range-thumb:hover,
.ofc-length-slider::-moz-range-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px var(--ofc-primary-shadow-hover);
}

.ofc-height-slider:focus,
.ofc-length-slider:focus {
    outline: none;
}

.ofc-height-slider:focus::-webkit-slider-thumb,
.ofc-length-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--ofc-primary-focus-ring);
}

.ofc-height-slider:focus::-moz-range-thumb,
.ofc-length-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px var(--ofc-primary-focus-ring);
}

.ofc-height-slider:disabled,
.ofc-length-slider:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ofc-sided {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ofc-option {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    min-height: 65px;
    border: 1px solid var(--ofc-border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.3em;
}

.ofc-option:hover {
    border-color: var(--ofc-primary);
    box-shadow: 0 2px 8px var(--ofc-primary-shadow-sm);
}

.ofc-option:has(input:checked) {
    border-color: var(--ofc-primary);
    background-color: var(--ofc-primary-tint-light);
    box-shadow: 0 0 0 1px var(--ofc-primary);
}

/* Custom radio – hide native, style as modern circle */
.ofc-option input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.35em;
    height: 1.35em;
    margin: 0 14px 0 0;
    border: 1px solid var(--ofc-border-hover);
    border-radius: 50%;
    background: var(--ofc-bg);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ofc-option:not(.ofc-option--disabled) input[type="radio"]:hover {
    border-color: var(--ofc-primary);
}

.ofc-option input[type="radio"]:checked {
    border-color: var(--ofc-primary);
    border-width: 2px;
    background: radial-gradient(circle at center, var(--ofc-primary) 0, var(--ofc-primary) 35%, transparent 40%);
}

.ofc-option input[type="radio"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ofc-primary-shadow);
}

.ofc-option input:checked + .ofc-option-text-wrap .ofc-option-value {
    font-weight: 700;
}

.ofc-option-text-wrap {
    display: flex;
    flex-direction: column;
}

/* Disabled option (e.g. side not available for category) – visible but not selectable */
.ofc-option--disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.ofc-option--disabled:hover {
    border-color: var(--ofc-border);
    box-shadow: none;
}
.ofc-option--disabled input[type="radio"] {
    cursor: not-allowed;
    pointer-events: none;
}
.ofc-option-hint {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    color: var(--ofc-muted);
    margin-top: 4px;
    line-height: 1.1em;
}

/* Cover options with preview image — vertical card layout */
.ofc-option--with-image {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: auto;
    overflow: hidden;
}

.ofc-option-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 12px 16px 8px;
    box-sizing: border-box;
    background: #f6f7f7;
    border-radius: 9px 9px 0 0;
    display: block;
}

.ofc-option-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.ofc-option--with-image input[type="radio"] {
    margin: 0;
}

/* Plates: 2 columns */
.ofc-plates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Plate-cover: 4 columns */
.ofc-plate-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Posts: 2 columns, center when 1 item */
.ofc-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Post-cover: 4 columns, center when 1 or 2 items */
.ofc-post-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ofc-post-cover.ofc-grid-center-single {
    grid-template-columns: 1fr;
}

.ofc-post-cover.ofc-grid-center-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Installation sub-section within review step */
.ofc-step-section--installation {
    margin-bottom: 24px;
}

/* Installation: 2 columns */
.ofc-installation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ofc-summary-block {
    margin-top: 24px;
}

.ofc-selection-summary {
    padding: 20px;
    background: var(--ofc-bg);
    border: 1px solid var(--ofc-border-muted);
    border-radius: 12px;
    box-shadow: var(--ofc-shadow-inner);
    margin-bottom: 20px;
}

.ofc-selection-summary-title {
    margin: 0 0 12px 0;
}

.ofc-selection-summary .ofc-selection-summary-content {
    margin: 0;
}

.ofc-selection-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ofc-selection-chip {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--ofc-primary);
    background: var(--ofc-primary-tint);
    border: 1px solid var(--ofc-primary-border-strong);
    border-radius: 8px;
}

.ofc-selection-summary .ofc-selection-empty {
    color: var(--ofc-text-muted);
    margin: 0;
    font-size: 0.95em;
}

.ofc-price-summary {
    padding: 20px;
    background: var(--ofc-bg);
    border: 1px solid var(--ofc-border-muted);
    border-radius: 12px;
    box-shadow: var(--ofc-shadow-inner);
}

.ofc-price-summary h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ofc-text-label);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ofc-price-details {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 0.95em;
    color: var(--ofc-text-muted);
    line-height: 1.6;
}

.ofc-price-details .ofc-price-detail-row {
    margin: 0;
    padding: 0 0 8px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
    gap: 16px;
    align-items: baseline;
    line-height: 1.2em;
}

.ofc-price-details .ofc-price-detail-row:last-child {
    padding-bottom: 0;
}

.ofc-price-details .ofc-price-brutto {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ofc-border, #ddd);
    color: var(--ofc-text, #1a1a1a);
    font-size: 1.05em;
}

.ofc-price-details .ofc-price-detail-label {
    font-weight: 700;
    color: var(--ofc-text-label);
}

.ofc-price-details .ofc-price-detail-value {
    color: var(--ofc-text-muted);
}

.ofc-price-total {
    margin: 0;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ofc-primary);
    background: var(--ofc-primary-tint);
    border: 1px solid var(--ofc-primary-border);
    border-radius: 8px;
}

.ofc-price-total .ofc-total-amount {
    font-size: 1.25rem;
}

.ofc-nav {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ofc-nav .ofc-btn {
    width: auto;
}

.ofc-nav-top {
    margin-top: 0;
    margin-bottom: 24px;
    display: none;
}

.ofc-nav-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ofc-border-muted);
}

.ofc-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: var(--ofc-primary);
    color: var(--ofc-text-inverse);
    cursor: pointer;
}

.ofc-btn:hover {
    background: var(--ofc-primary-hover);
}

.ofc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ofc-btn.ofc-btn-loading {
    cursor: wait;
    opacity: 0.85;
}

.ofc-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    min-height: 20px;
}

.ofc-message.success {
    background: var(--ofc-success-bg);
    color: var(--ofc-success-text);
}

.ofc-message.error {
    background: var(--ofc-error-bg);
    color: var(--ofc-error-text);
}

.ofc-review-summary {
    margin: 0 0 24px;
    padding: 0;
    background: var(--ofc-bg);
    border: 1px solid var(--ofc-border-muted);
    border-radius: 12px;
    box-shadow: var(--ofc-shadow-inner);
    overflow: hidden;
}

.ofc-review-summary .ofc-review-row {
    margin: 0;
    padding: 14px 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ofc-text);
    border-bottom: 1px solid var(--ofc-border-muted);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 20px;
    align-items: center;
}

.ofc-review-summary .ofc-review-row:last-child {
    border-bottom: none;
}

.ofc-review-summary .ofc-review-label {
    font-weight: 600;
    color: var(--ofc-text-label);
}

.ofc-review-summary .ofc-review-value {
    color: var(--ofc-text);
}

.ofc-review-shipping-note {
    padding-inline: 20px;
    font-size: 0.85em;
    color: var(--ofc-text-label);
    margin-top: 1em;
    font-style: italic;
    font-weight: 600;
}

.ofc-review-actions {
    margin-top: 1rem;
}

.ofc-review-actions--self .ofc-add-to-cart {
    min-width: 12rem;
}

.ofc-quote-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--ofc-bg);
    border: 1px solid var(--ofc-border-muted);
    border-radius: 12px;
    box-shadow: var(--ofc-shadow-inner);
}

.ofc-quote-intro {
    margin: 0 0 20px;
    color: var(--ofc-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ofc-quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

.ofc-quote-field {
    display: flex;
    flex-direction: column;
}

.ofc-quote-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ofc-text-label);
    font-size: 0.95rem;
}

.ofc-quote-form .required {
    color: var(--ofc-error-text);
    margin-left: 2px;
}

.ofc-input,
.ofc-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ofc-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--ofc-bg);
    color: var(--ofc-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ofc-input:hover,
.ofc-textarea:hover {
    border-color: var(--ofc-border-hover);
    background: var(--ofc-bg-input-hover);
}

.ofc-input:focus,
.ofc-textarea:focus {
    outline: none;
    border-color: var(--ofc-primary);
    background: var(--ofc-bg);
    box-shadow: 0 0 0 3px var(--ofc-primary-focus);
}

.ofc-input::placeholder,
.ofc-textarea::placeholder {
    color: var(--ofc-text-placeholder);
}

.ofc-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.ofc-quote-form .ofc-request-quote {
    margin-top: 0.5rem;
    align-self: flex-start;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* --- Responsive (max-width) --- */
@media (max-width: 1024px) {
    .ofc-decors {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ofc-categories,
    .ofc-categories.ofc-categories--1,
    .ofc-categories.ofc-categories--2,
    .ofc-categories.ofc-categories--3,
    .ofc-categories.ofc-categories--4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }
    .ofc-decors {
        grid-template-columns: 1fr;
    }
    .ofc-configurator {
        padding: 15px;
    }
    .ofc-sided {
        grid-template-columns: 1fr;
    }
    .ofc-dimensions {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .ofc-plates,
    .ofc-plate-cover {
        grid-template-columns: 1fr;
    }
    .ofc-posts {
        grid-template-columns: 1fr;
    }
    .ofc-post-cover,
    .ofc-post-cover.ofc-grid-center-single,
    .ofc-post-cover.ofc-grid-center-2 {
        grid-template-columns: 1fr;
    }
    .ofc-installation {
        grid-template-columns: 1fr;
    }

    .ofc-price-details .ofc-price-detail-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ── Height radio options ── */
.ofc-height-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}
.ofc-height-option {
    flex: 0 0 auto;
    min-width: 70px;
}

/* ── Info note (Ober- und Unterplatte) ── */
.ofc-info-note {
    font-size: 0.9em;
    color: var(--ofc-text-muted);
    font-style: italic;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: var(--ofc-bg-muted);
    border-radius: 6px;
    border-left: 3px solid var(--ofc-primary);
}

/* ── Quantity section ── */
.ofc-quantity-section {
    margin-top: 20px;
    padding: 16px;
    background: var(--ofc-bg-muted);
    border-radius: 8px;
}
.ofc-quantity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ofc-quantity-row:last-child {
    margin-bottom: 0;
}
.ofc-quantity-label {
    flex: 0 0 auto;
    font-weight: 500;
    font-size: 0.95em;
    min-width: 130px;
}
.ofc-quantity-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid var(--ofc-border);
    border-radius: 6px;
    font-size: 0.95em;
    text-align: center;
    background: var(--ofc-bg);
}
.ofc-quantity-input[readonly] {
    background: var(--ofc-bg-input);
    color: var(--ofc-text);
    cursor: default;
}
.ofc-quantity-edit-btn {
    background: none;
    border: 1px solid var(--ofc-border);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9em;
    color: var(--ofc-text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.ofc-quantity-edit-btn:hover {
    color: var(--ofc-primary);
    border-color: var(--ofc-primary);
}

/* ── Post notes ── */
.ofc-post-notes-section {
    margin-top: 16px;
}
.ofc-post-notes-section label {
    display: block;
    font-weight: 500;
    font-size: 0.95em;
    margin-bottom: 6px;
    color: var(--ofc-text-label);
}
