.product-parameters-layer[hidden], .product-parameters-layer [hidden] { display: none !important; }
body.product-parameters-open pf-widget { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.product-parameters-layer { position: fixed; inset: 0; z-index: 2147483647; font-family: inherit; color: #161a1d; }
.product-parameters-layer *, .product-parameters-layer *::before, .product-parameters-layer *::after { box-sizing: border-box; }
.parameters-backdrop { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(22,26,29,.38); opacity: 0; transition: opacity .24s ease; cursor: default; }
.product-parameters-drawer { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; width: min(540px,100%); height: 100%; height: 100dvh; border-radius: 22px 0 0 22px; background: #fff; box-shadow: -12px 0 50px rgba(22,26,29,.12); transform: translateX(100%); transition: transform .28s ease; overflow: hidden; outline: none; }
.product-parameters-layer.is-open .parameters-backdrop { opacity: 1; }
.product-parameters-layer.is-open .product-parameters-drawer { transform: translateX(0); }
.parameters-header { position: relative; flex: 0 0 auto; padding: 30px 20px 20px; }
.parameters-header h2 { margin: 0 32px 8px 0; color: #161a1d; font-size: 27px; font-weight: 700; line-height: 1.2; }
.parameters-header p, .parameters-section > p { margin: 0; color: #7a808b; font-size: 14px; line-height: 1.5; }
.parameters-close { position: absolute; top: 23px; right: 22px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0; background: transparent; color: #303640; font-family: inherit; font-size: 32px; line-height: 1; cursor: pointer; }
.parameters-close:hover { background: #f2f3f5; }
.parameters-content { flex: 1 1 auto; min-height: 0; padding: 20px 20px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.parameters-steps { display: flex; align-items: center; gap: 16px; margin: 8px 0 34px; }
.parameters-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #858b95; font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.parameters-steps button:first-child { color: #161a1d; }
.parameters-steps button > span, .parameters-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #eef0f3; color: #979eaa; font-size: 13px; line-height: 1; }
.parameters-steps button:first-child > span, .parameters-number { background: #161a1d; color: #fff; }
.parameters-section { position: relative; margin-left: 0; padding: 0 0 34px; border-left: 0; scroll-margin-top: 16px; }
.parameters-section:last-child { padding-bottom: 6px; }
.parameters-number { position: absolute; top: -2px; left: 0; right: auto; }
.parameters-section h3 { margin: 0 0 6px; padding-left: 36px; color: #202631; font-size: 18px; font-weight: 600; line-height: 1.35; }
.parameters-sku-group { margin-top: 18px; }
.parameters-info-slot .radiator-info { width: fit-content; max-width: 100%; margin-top: 18px; padding: 10px 12px; border-radius: 12px; font-family: Inter, sans-serif; font-size: 15px; line-height: 1.6; }
.parameters-sku-group-title { margin: 0 0 10px; color: #7a8086; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 26px; }
.parameters-sku-options { display: flex; flex-wrap: wrap; gap: 8px; }
.parameters-sku-option { min-width: fit-content; min-height: 48px; padding: 10px 18px; border: 1px solid rgba(0,0,0,.07); border-radius: 8px; background: #fff; color: #161a1d; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 24px; cursor: pointer; }
.parameters-sku-option:hover { border-color: rgba(0,0,0,.2); }
.parameters-sku-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.parameters-sku-link:hover { color: #161a1d; text-decoration: none; }
.parameters-sku-option.is-selected { border-color: #161a1d; background: #161a1d; color: #fff; }
.parameters-sku-option:disabled { opacity: .45; cursor: wait; }
.parameters-sku-option img { width: 40px; height: 40px; object-fit: cover; }
.parameters-swatch { position: relative; display: inline-block; flex-shrink: 0; width: 50px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: #fff; cursor: pointer; }
.parameters-swatch > span { position: absolute; top: 50%; left: 50%; display: block; width: 40px; height: 40px; margin: 0; transform: translate(-50%,-50%); border: 1px solid rgba(22,26,29,.06); border-radius: 50%; }
.parameters-swatch > span { background-size: cover; background-position: center; }
.parameters-coatings { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 10px; background: #f1f3f6; }
.parameters-coatings button { min-width: 90px; padding: 8px 18px; border: 0; border-radius: 7px; background: transparent; color: #7a808b; font: inherit; font-size: 13px; cursor: pointer; }
.parameters-coatings button.is-selected { background: #fff; color: #161a1d; box-shadow: 0 1px 4px rgba(22,26,29,.07); }
.parameters-color-search { display: block; width: calc(100% - 28px); height: 38px; margin: 0 14px 12px; padding: 8px 11px; border: 1px solid #e3e6eb; border-radius: 8px; background: #fff; font: inherit; font-size: 12px; }
.parameters-color-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 240px; margin: 0 12px 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.parameters-color-card { display: flex; align-items: center; gap: 8px; min-height: 53px; padding: 8px; border: 1px solid #e3e6eb; border-radius: 9px; background: #fff; color: #161a1d; text-align: left; font: inherit; cursor: pointer; }
.parameters-color-card:hover { border-color: #ccc; }
.parameters-color-card.is-selected { border-color: #161a1d; }
.parameters-color-chip { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background-color: #eee; background-size: cover; background-position: center; }
.parameters-color-card strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; }
.parameters-color-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.parameters-color-card small { display: block; margin-top: 3px; color: #7a808b; font-size: 10px; line-height: 1.3; }
.parameters-swatch.is-selected { border-color: #161a1d; }
.parameters-swatch:hover { border-color: #ccc; }
.parameters-swatch.is-selected:hover { border-color: #161a1d; }
.parameters-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.parameters-color-summary { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 12px 0 16px; color: #7a808b; font-size: 12px; line-height: 1.5; }
.parameters-color-summary strong { font-weight: 500; }
.parameters-palette { margin-top: 14px; border-radius: 12px; background: #f6f7f9; }
.parameters-palette summary { display: flex; justify-content: space-between; gap: 8px; list-style: none; padding: 14px 16px; color: #303641; font-size: 13px; line-height: 1.5; cursor: pointer; }
.parameters-palette summary::-webkit-details-marker { display: none; }
.parameters-palette-chevron { display: block; flex: 0 0 18px; align-self: center; width: 18px; height: 18px; transition: transform .2s; }
.parameters-palette[open] summary > .parameters-palette-chevron { transform: rotate(180deg); }
.parameters-palette > p, .parameters-palette > .parameters-swatches { margin: 0; padding: 0 14px 14px; }
.parameters-palette > p { color: #7a808b; font-size: 12px; line-height: 1.5; }
.parameters-custom-label { display: block; margin: 0; padding: 0 14px 8px; color: #555e6b; font-size: 12px; }
.parameters-custom-color { display: flex; gap: 6px; padding: 0 14px 16px; }
.parameters-custom-color input { min-width: 0; flex: 1; height: 40px; padding: 8px 10px; border: 1px solid #e3e6eb; border-radius: 7px; background: #fff; font: inherit; font-size: 12px; }
.parameters-custom-color button { padding: 8px 10px; border: 0; border-radius: 7px; background: #161a1d; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.parameters-palette > .parameters-color-error { color: #d62853; }
.product-parameters-drawer .parameters-set-slot .set { margin: 14px 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent; }
.product-parameters-drawer .parameters-set-slot .set > h5, .product-parameters-drawer .parameters-set-slot .set > .subtitle, .product-parameters-drawer .parameters-set-slot .main-element, .product-parameters-drawer .parameters-set-slot .total-block { display: none !important; }
.product-parameters-drawer .parameters-set-slot .set > .list { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.product-parameters-drawer .parameters-set-slot .set-item { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.product-parameters-drawer .parameters-set-slot .set-item > input { display: block !important; position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.product-parameters-drawer .parameters-set-slot .set-item > label { display: flex; align-items: center; gap: 12px; min-height: 84px; margin: 0; padding: 8px 42px 8px 8px; border: 1px solid #e8ebef; border-radius: 13px; cursor: pointer; background: #fff; }
.product-parameters-drawer .parameters-set-slot .set-item > label::after { content: ''; position: absolute; right: 13px; top: 50%; width: 18px; height: 18px; margin: -9px 0 0; border: 1.5px solid #cdd2db; border-radius: 4px; background: #fff; }
.product-parameters-drawer .parameters-set-slot .set-item input:focus-visible + label { outline: 2px solid #8c95a3; outline-offset: 2px; }
.product-parameters-drawer .parameters-set-slot .set-item > label::before { display: none; }
.product-parameters-drawer .parameters-set-slot .set-item input:checked + label::after { border-color: #161a1d; background: #161a1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.product-parameters-drawer .parameters-set-slot .set-item input:checked + label { border-color: #cdd2db; }
.product-parameters-drawer .parameters-set-slot .set-item .img { width: 60px !important; height: 60px !important; min-width: 60px; flex: 0 0 60px; margin: 0; border: 0; border-radius: 9px; background-color: #f4f5f7; background-size: contain; background-repeat: no-repeat; background-position: center; }
.product-parameters-drawer .parameters-set-slot .set-item .info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.product-parameters-drawer .parameters-set-slot .set-item .set-item-title { order: 0; display: block; padding: 0; margin: 0; color: #355473; font-size: 15px; font-weight: 400; line-height: 1.45; text-decoration: none; }
.product-parameters-drawer .parameters-set-slot .set-item .price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; margin: 0; }
.product-parameters-drawer .parameters-set-slot .set-item .price { color: #161a1d; font-size: 16px; font-weight: 700; line-height: 1.4; }
.product-parameters-drawer .parameters-set-slot .set-item .price-wrap { margin: 0; }
.product-parameters-drawer .parameters-set-slot .set-item .count { color: #7a808b; font-size: 12px; }
.parameters-footer { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 18px; margin: 0; padding: 22px 28px 24px 34px; padding-bottom: max(24px,env(safe-area-inset-bottom)); border-top: 1px solid #eef0f3; background: #fff; box-shadow: 0 -6px 20px rgba(22,26,29,.025); }
.parameters-total { display: flex; flex-direction: column; gap: 5px; min-width: 145px; }
.parameters-total > span { font-size: 14px; }
.parameters-total > strong { color: #161a1d; font-size: 24px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.parameters-total > small { color: #7a808b; font-size: 12px; }
.parameters-buy { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 1; min-height: 56px; padding: 14px 16px; border: 1px solid #161a1d; border-radius: 11px; background: #161a1d; color: #fff; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; cursor: pointer; }
.parameters-buy:hover { border-color: #666; background: #242a30; }
.parameters-buy:disabled { opacity: .5; cursor: wait; }
.parameters-status { position: absolute; left: 34px; right: 28px; bottom: 3px; margin: 0; color: #7a808b; font-size: 11px; }
.product-parameters-layer button:focus-visible, .product-parameters-layer summary:focus-visible, .product-parameters-layer input:focus-visible { outline: 2px solid #8c95a3; outline-offset: 3px; }
.product-parameters-layer .parameters-close,
.product-parameters-layer .parameters-close:hover,
.product-parameters-layer .parameters-close:focus,
.product-parameters-layer .parameters-close:focus-visible,
.product-parameters-layer .parameters-close:active { border: 0 !important; outline: none !important; box-shadow: none !important; }
@media (max-width:575px) {
    .product-parameters-drawer { border-radius: 18px 0 0 18px; }
    .parameters-header h2 { font-size: 24px; }
    .parameters-header p { font-size: 13px; }
    .parameters-steps { gap: 12px; margin-bottom: 30px; }
    .parameters-steps button { gap: 6px; font-size: 11px; }
    .parameters-steps button > span { width: 25px; height: 25px; flex-basis: 25px; }
    .parameters-section { padding-left: 0; }
    .parameters-section h3 { font-size: 17px; }
    .parameters-sku-group-title { line-height: 20px; }
    .parameters-swatches { gap: 5px; }
    .parameters-swatch { width: 44px; height: 44px; padding: 0; }
    .parameters-swatch > span { flex-basis: 34px; width: 34px; height: 34px; }
    .parameters-footer { gap: 10px; padding: 18px 18px 22px 22px; padding-bottom: max(22px,env(safe-area-inset-bottom)); }
    .parameters-total { min-width: 115px; }
    .parameters-total > strong { font-size: 21px; }
    .parameters-total > small { font-size: 10px; }
    .parameters-buy { min-height: 53px; gap: 8px; padding: 12px 10px; font-size: 12px; }
    .product-parameters-drawer .parameters-set-slot .set-item .img { width: 50px !important; height: 50px !important; min-width: 50px; flex-basis: 50px; }
}
@media (prefers-reduced-motion:reduce) { .product-parameters-drawer, .parameters-backdrop { transition: none; } }
@media (max-width:360px) { .parameters-swatches-quick { gap: 2px; } }
