.sfmk-configurator {
    width: 100%;
    max-width: 800px;
    margin-top: 18px;
    font-family: inherit;
}

.sfmk-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.sfmk-label {
    font-size: 13px;
    font-weight: 700;
    color: #0b3954;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.sfmk-info {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #96a6b2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
}

.sfmk-info::after {
    content: attr(aria-label);
    width: 260px;
    max-width: min(260px, 70vw);
    padding: 10px 12px;
    border-radius: 5px;
    background: #334155;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 20;
}

.sfmk-info:hover::after,
.sfmk-info:focus::after {
    opacity: 1;
    visibility: visible;
}

.sfmk-options,
.sfmk-icon-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sfmk-count-1 {
    grid-template-columns: 1fr;
}

.sfmk-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sfmk-count-3,
.sfmk-count-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sfmk-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sfmk-count-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sfmk-count-5 > * {
    grid-column: span 2;
}

.sfmk-count-5 > :nth-child(n+4) {
    grid-column: span 3;
}

.sfmk-option,
.sfmk-icon-option {
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    color: #0b3954;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease, background-color .15s ease;
    text-align: center;
}

.sfmk-option.active,
.sfmk-icon-option.active {
    border-color: #ffb128;
    box-shadow: inset 0 0 0 1px #ffb128;
    color: #0b3954;
}

.sfmk-option.active::after,
.sfmk-icon-option.active::after {
    content: "✓";
    position: absolute;
    right: 10px;
    bottom: 7px;
    color: #ffb128;
    font-size: 17px;
    line-height: 1;
}

.sfmk-option.disabled,
.sfmk-icon-option.disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #f9fafb;
}

.sfmk-option.disabled.active,
.sfmk-icon-option.disabled.active {
    opacity: 1;
}

.sfmk-option.disabled,
.sfmk-icon-option.disabled {
    padding-right: 34px;
}

.sfmk-option-lock {
    color: #0b3954;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.sfmk-lock-svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfmk-icon-option {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sfmk-icon-media {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sfmk-icon-media img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.sfmk-emoji-icon,
.sfmk-icon-placeholder {
    font-size: 24px;
    line-height: 1;
}

.sfmk-select-wrap {
    display: block;
    position: relative;
}

.sfmk-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    color: #0b3954;
    font-size: 13px;
    padding: 8px 12px;
}

.sfmk-select-wrap.is-disabled-selected .sfmk-select {
    padding-right: 38px;
}

.sfmk-select-lock {
    color: #0b3954;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.sfmk-select-wrap.is-disabled-selected .sfmk-select-lock {
    opacity: 1;
}

.sfmk-locked {
    height: 38px;
    border: 1px solid #dbe3ef;
    border-radius: 4px;
    padding: 9px 12px;
    color: #0b3954;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.sfmk-option-note {
    grid-column: 2;
    min-height: 54px;
    margin-top: -10px;
    padding: 12px 40px 12px 12px;
    border-radius: 6px;
    background: #fff8df;
    color: #0b3954;
    font-size: 12px;
    line-height: 1.35;
    position: relative;
}

.sfmk-option-note[hidden] {
    display: none;
}

.sfmk-option-note-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b3954;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: .75;
}

.sfmk-option-note-close:hover,
.sfmk-option-note-close:focus {
    opacity: 1;
}

.sfmk-price-head {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    column-gap: 18px;
    align-items: center;
    margin: 24px 0 8px;
    color: #0b3954;
}

.sfmk-price-head span {
    color: #0b3954;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.sfmk-price-head span:nth-child(3) {
    font-weight: 400;
}

.sfmk-price-head span:nth-child(2) {
    text-align: center;
}

.sfmk-price-head span:nth-child(3) {
    text-align: right;
}

.sfmk-price-list {
    display: grid;
    gap: 10px;
}

.sfmk-price-item {
    width: 100%;
    min-height: 50px;
    padding: 9px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    column-gap: 18px;
    align-items: center;
    cursor: pointer;
    color: #0b3954;
    text-align: left;
}

.sfmk-price-item.active {
    background: #ffb128;
    border-color: #ffb128;
    color: #0b3954;
}

.sfmk-price-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sfmk-price-total,
.sfmk-price-unit {
    text-align: center;
    align-items: center;
}

.sfmk-price-unit {
    text-align: right;
    align-items: flex-end;
}

.sfmk-price-item strong {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
}

.sfmk-price-item small {
    font-size: 11px;
    font-weight: 400;
    opacity: 1;
    line-height: 1.1;
}

.sfmk-price-unit {
    opacity: 1;
}

.sfmk-price-empty {
    padding: 12px;
    border: 1px solid #f3caca;
    background: #fff5f5;
    color: #991b1b;
    font-size: 13px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .sfmk-configurator {
        max-width: 100%;
    }

    .sfmk-row {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 15px;
    }

    .sfmk-options,
    .sfmk-icon-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfmk-count-1 {
        grid-template-columns: 1fr;
    }

    .sfmk-option-note {
        grid-column: 1;
        margin-top: -2px;
    }

    .sfmk-price-head,
    .sfmk-price-item {
        grid-template-columns: .9fr 1.15fr .95fr;
        column-gap: 8px;
    }

    .sfmk-price-head span {
        font-size: 12px;
    }

    .sfmk-price-item {
        min-height: 50px;
        padding: 9px 10px;
    }

    .sfmk-price-item strong {
        font-size: 15px;
    }

    .sfmk-price-item small {
        font-size: 11px;
    }
}
