.wp-configurator { box-sizing: border-box; width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 36px); margin: auto; padding: 34px; border: 0; border-radius: 16px; background: #fff; color: #202020; box-shadow: 0 18px 64px #0003; font: 500 14px/1.5 Manrope, Arial, sans-serif; overflow-y: auto; overscroll-behavior: contain; }
.wp-configurator *, .wp-configurator *::before, .wp-configurator *::after { box-sizing: border-box; }
.wp-configurator [hidden] { display: none !important; }
.wp-configurator::backdrop { background: #16161699; }
.wp-configurator :is(button, input, textarea, a):focus-visible { outline: 2px solid #8b641d; outline-offset: 3px; }
.wp-configurator .wp-configurator-title { margin: 0 40px 14px 0; font: 700 clamp(23px, 4vw, 30px)/1.2 RFDewi, Manrope, Arial, sans-serif; letter-spacing: -.025em; }
.wp-configurator .wp-configurator-title:focus { outline: none; }
.wp-configurator h3, .wp-configurator legend { margin: 0 0 14px; padding: 0; color: #202020; font: 800 18px/1.35 Manrope, Arial, sans-serif; }
.wp-configurator-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 8px; background: #f5f4f0; color: #202020; cursor: pointer; }
.wp-configurator-close:hover { background: #f9cb55; }
.wp-configurator :is(.wp-configurator-close, .wp-configurator-submit) svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wp-configurator-product { max-width: 65ch; margin: 0 0 24px; font-weight: 800; }
.wp-configurator-form { display: grid; gap: 24px; }
.wp-configurator-form label { display: block; margin: 0 0 7px; font-weight: 700; }
.wp-configurator-form label span, .wp-configurator-width label { font-weight: 600; }
.wp-configurator-form :is(input:not([type="checkbox"]):not([type="range"]), textarea) { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #d6d1c6; border-radius: 8px; background: #fff; color: #202020; font: inherit; font-size: 16px; line-height: 1.45; }
.wp-configurator-form textarea { resize: vertical; min-height: 90px; max-height: 220px; }
.wp-configurator-form input[readonly] { background: #f8f7f3; color: #5a5346; }
.wp-configurator-form :is(input, textarea)[aria-invalid="true"] { border-color: #a12c20; }
.wp-configurator-quantity { max-width: 235px; }
.wp-configurator-width { max-width: 340px; }
.wp-configurator-help { margin: 7px 0 0; color: #625b4f; font-size: 12px; line-height: 1.55; }
.wp-configurator-error { margin: 6px 0 0; color: #a12c20; font-size: 13px; font-weight: 600; }
.wp-configurator-toggle { display: flex !important; align-items: center; gap: 10px; min-height: 48px; margin: 12px 0 !important; cursor: pointer; }
.wp-configurator-toggle input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #8a641c; }
.wp-configurator-toggle input:disabled + span { color: #6c665c; }
.wp-configurator-cutting { padding-top: 22px; border-top: 1px solid #e7e2d8; }
.wp-configurator-diagram { width: 100%; max-width: 690px; margin-inline: auto; padding-block: 10px; overflow: hidden; border-radius: 12px; background: #faf9f6; }
.wp-configurator-canvas { position: relative; }
.wp-configurator-diagram svg { display: block; width: 100%; height: auto; font-family: Manrope, Arial, sans-serif; }
.wp-configurator-cut-handle { position: absolute; top: 11.304347826%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #202020; transform: translate(-50%, -50%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wp-configurator-cut-handle > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d9a536; border-radius: 50%; background: #f9cb55; font: 800 12px/1 Manrope, Arial, sans-serif; transition: transform 120ms ease-out; }
.wp-configurator-cut-handle:hover > span, .wp-configurator-cut-handle:focus-visible > span { transform: scale(1.08); }
.wp-configurator-cut-handle.is-dragging { cursor: grabbing; z-index: 2; }
.wp-configurator-cut-handle.is-dragging > span { transform: scale(.96); }
.wp-configurator-cut-handle:focus-visible { outline-offset: 0; }
.wp-configurator-remove { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #5c574d; font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
.wp-configurator-remove:hover { background: #f5f4f0; }
.wp-configurator-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.wp-configurator-add { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid #c8bdab; border-radius: 8px; background: #fff; color: #30291e; font: inherit; font-weight: 700; cursor: pointer; }
.wp-configurator-add:hover { background: #faf7ef; }
.wp-configurator-add:disabled { opacity: .6; cursor: default; }
.wp-configurator-segments { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.wp-configurator-segment { flex: 0 1 150px; min-width: 0; max-width: 100%; }
.wp-configurator-segment-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 5px; gap: 4px; }
.wp-configurator-segment-heading label { margin: 0; color: #625b4f; font-size: 12px; font-weight: 600; }
.wp-configurator-segment-input { position: relative; }
.wp-configurator-form .wp-configurator-segment-input input { padding-right: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wp-configurator-mm { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #625b4f; font-size: 12px; pointer-events: none; }
.wp-configurator-total { margin: 7px 0 0; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wp-configurator-contact { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 22px 0 0; border: 0; border-top: 1px solid #e7e2d8; }
.wp-configurator-contact legend { float: left; width: 100%; margin-bottom: 16px; }
.wp-configurator-privacy { max-width: 72ch; margin: 0; color: #625b4f; font-size: 12px; }
.wp-configurator-privacy a { color: #57411d; font-weight: 700; }
.wp-configurator-status:empty { display: none; }
.wp-configurator-status { margin: 0; color: #a12c20; }
.wp-configurator-submit { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; min-height: 56px; padding: 15px 20px; border: 0; border-radius: 8px; background: #f9cb55; color: #202020; font: inherit; font-weight: 800; cursor: pointer; }
.wp-configurator-submit:hover { background: #ffda76; }
.wp-configurator-send-note { margin-top: -15px; }
@media (max-width: 560px) {
  .wp-configurator { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 27px 17px 22px; }
  .wp-configurator-close { top: 10px; right: 10px; }
  .wp-configurator .wp-configurator-title { margin-right: 35px; font-size: 22px; }
  .wp-configurator-product { font-size: 13px; }
  .wp-configurator-form { gap: 21px; }
  .wp-configurator-quantity, .wp-configurator-width { max-width: none; }
  .wp-configurator-segment { flex: 0 1 calc(50% - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .wp-configurator { scroll-behavior: auto; }
  .wp-configurator * { transition: none !important; animation: none !important; }
}
