/* =========================================================
   SHOPTET MODULAR CONFIGURATOR - MODERN UI
   ========================================================= */

.scfg {
    margin: 28px 0;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #dddddd;
    border-radius: 18px;
    box-shadow:
        0 18px 38px rgba(17, 24, 39, 0.08),
        0 3px 10px rgba(17, 24, 39, 0.05);
}

.scfg__head {
    margin-bottom: 22px;
}

.scfg__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.scfg__help {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    text-decoration: none;
    color: #ef4444;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scfg__help:hover {
    color: #dc2626;
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.scfg__help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 27px;
}

.scfg__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scfg__row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 340px);
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.scfg__label-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.scfg__media {
    flex: 0 0 52px;
    width: 52px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scfg__media.is-empty {
    display: none;
}

.scfg__media img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.scfg__label {
    font-size: 17px;
    line-height: 1.3;
    color: #111827;
    font-weight: 500;
}

.scfg__field {
    position: relative;
    min-width: 0;
}

.scfg__trigger {
    position: relative;
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 13px 46px 13px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4f4f5 0%, #e9eaec 100%);
    color: #111827;
    text-align: left;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease,
        opacity 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.scfg__trigger:hover {
    border-color: #d1d5db;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 8px 18px rgba(17, 24, 39, 0.05);
}

.scfg__trigger:focus {
    outline: none;
    border-color: #c7d2fe;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.scfg__trigger.is-placeholder {
    color: #6b7280;
    font-weight: 400;
}

.scfg__trigger.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.scfg__trigger:after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid #4b5563;
    border-bottom: 2px solid #4b5563;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin-top 0.2s ease;
}

.scfg__field.is-open .scfg__trigger:after {
    transform: rotate(225deg);
    margin-top: -2px;
}

.scfg__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 70;
    padding: 8px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow:
        0 22px 42px rgba(17, 24, 39, 0.14),
        0 8px 14px rgba(17, 24, 39, 0.07);
    max-height: 300px;
    overflow: auto;
}

.scfg__dropdown.is-open {
    display: block;
}

.scfg__option {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    color: #111827;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.scfg__option:hover {
    background: #f3f4f6;
}

.scfg__option.is-active {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
}

.scfg__option.is-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}

.scfg__note {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    padding: 18px 18px;
    border: 1px solid #dddddd;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f4f4f5 100%);
}

.scfg__note--accent {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

.scfg__note-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #d1d5db;
    color: #ffffff;
    font-size: 32px;
    line-height: 50px;
    text-align: center;
    font-weight: 800;
}

.scfg__note--accent .scfg__note-icon {
    background: #f87171;
}

.scfg__note-text {
    font-size: 15px;
    line-height: 1.45;
    color: #1f2937;
}

.scfg__original-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .scfg {
        padding: 20px 16px 16px;
        border-radius: 16px;
    }

    .scfg__title {
        font-size: 18px;
    }

    .scfg__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .scfg__label-wrap {
        gap: 12px;
    }

    .scfg__media {
        flex-basis: 44px;
        width: 44px;
        height: 32px;
    }

    .scfg__label {
        font-size: 16px;
    }

    .scfg__trigger {
        min-height: 48px;
        font-size: 15px;
    }

    .scfg__note {
        gap: 14px;
        padding: 14px;
    }

    .scfg__note-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 26px;
        line-height: 42px;
    }

    .scfg__note-text {
        font-size: 14px;
    }
}
.scfg__note-text {
    font-size: 15px;
    line-height: 1.45;
    color: #1f2937;
}

.scfg__note-text a,
.scfg__note-link {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 38, 38, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.scfg__note-text a:hover,
.scfg__note-link:hover {
    color: #b91c1c;
    border-bottom-color: rgba(185, 28, 28, 0.6);
    text-decoration: none;
}
.scfg__switcher {
    margin-bottom: 22px;
}

.scfg__switcher-title {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.scfg__switcher-grid {
    display: grid;
    gap: 12px;
}

.scfg__switcher-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
    text-decoration: none;
    color: #111827;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scfg__switcher-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    border-color: #d1d5db;
    text-decoration: none;
    color: #111827;
}

.scfg__switcher-btn.is-active {
    border-color: #f87171;
    box-shadow:
        0 0 0 3px rgba(248, 113, 113, 0.12),
        0 12px 24px rgba(17, 24, 39, 0.08);
    background: linear-gradient(180deg, #fff7f7 0%, #fff1f1 100%);
}

.scfg__switcher-media {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eceff3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scfg__switcher-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.scfg__switcher-text {
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
}

@media (max-width: 767px) {
    .scfg__switcher-grid {
        grid-template-columns: 1fr !important;
        padding-bottom: 10px;
        border-bottom: 1px solid lightgray;
        margin-bottom: 10px;
    }

    .scfg__switcher-btn {
        min-height: 58px;
    }

    .scfg__switcher-media {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}