/* Online Kitchens UK planner: layout fixes and "Email me my plan" (see ok-planner-extras.js). */

/* ---- desktop: keep content clear of the left panel (262px + 16px gap) and the floating 3D toolbar ---- */
@media (min-width:821px){
  /* "Start a new plan" was centred across the whole stage and slid under the left panel */
  .v3 .bk-startpane{padding-left:310px}
  /* Checklist: its heading sat under the toolbar, and on smaller screens its cards slid under the left panel */
  .v3 .bk-approve{padding:84px 220px 24px 310px} /* right: clear of the Next box */
  /* Price and "Get your free design": a wider panel, so the form isn't squeezed into 236px */
  .v3.okx-send .bk-side{width:min(560px,44vw);transition:width .2s ease}
  /* beside the form: the kitchen itself (the checklist and the 3D toolbar step aside until they go back) */
  .v3.okx-send .bk-approve,.v3.okx-send .v3-tbar{display:none!important}
  .v3.okx-send #leadForm .row>label.f{min-width:180px}
}

/* ---- Start: the 3D toolbar, zoom buttons and Base/Wall switch do nothing there and covered the
   "Start a new plan" card (phones, and short screens such as a Samsung tablet in landscape) ---- */
.v3.okx-start .v3-tbar,.v3.okx-start .zoom-bar,.v3.okx-start #planBar{display:none!important}
@media (min-width:821px){
  /* keep the card clear of the Next box at the bottom right */
  .v3 .bk-startpane{padding-right:220px}
}
@media (min-width:821px) and (max-width:1360px){
  .v3 .bk-startcard{grid-template-columns:1fr;max-width:560px}
  .v3 .bk-startimg{display:none}
}

/* ---- short screens (tablets in landscape, small laptops): a one-row Back / Next box that covers less,
   and room at the end of the door catalogue so its last cards scroll clear of it ---- */
@media (min-width:821px) and (max-height:760px){
  .v3-nav{grid-template-areas:"b n"!important;grid-template-columns:auto auto!important}
  .v3-nav .v3-navw{display:none}
  .v3-nav{width:auto!important;max-width:calc(100% - 340px);box-sizing:border-box}
  .v3-nav .v3-navb{font-size:0}.v3-nav .v3-navb::before{content:"\2190  Back";font-size:14px}
  .v3 .vk-body{padding-bottom:72px}
}

/* ---- tablets and folding phones open (e.g. Galaxy Z Fold, ~900px): one-line header ---- */
@media (min-width:821px) and (max-width:1180px){
  .v3-head .v3-pname,.v3-head .v3-tel{display:none}
}

/* ---- phones ---- */
@media (max-width:820px){
  /* the price button said only "after units": say what it is */
  .v3-price.none .v3-after::before{content:"Price "}
  /* the toolbar scrolls sideways: fade its right edge so that's clear */
  .v3-tbar{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
  /* messages sit above the Back / Next bar, not over it */
  .v3 .ok-toast{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
  /* the price and the send form get the whole sheet */
  .v3.okx-send .bk-side{--sh:calc(100dvh - 150px)!important}
}
@media (max-width:520px){
  /* "Step 3 of 6" was squeezed between Back and Next; the step tabs at the top already show it */
  .v3-nav .v3-navw{display:none}
  .v3-nav{grid-template-columns:auto 1fr!important;grid-template-areas:"b n"!important}
  .v3-nav:has(.v3-navb[hidden]){grid-template-columns:1fr!important;grid-template-areas:"n"!important}
}

/* ---- "Email me my plan" ---- */
.okx-sheet{position:fixed;inset:0;z-index:2147482000;background:rgba(20,20,18,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.okx-sheet[hidden]{display:none}
.okx-box{background:#fff;color:#1E1E1C;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.25);width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:22px 22px 18px;box-sizing:border-box;font:15px/1.5 "Instrument Sans",system-ui,sans-serif}
.okx-box h2{margin:0;font-size:21px;flex:1}
.okx-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.okx-x{border:0;background:#F2F0EC;width:34px;height:34px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:#1E1E1C;flex:none}
.okx-sub{color:#6A675F;margin:0 0 14px}
.okx-row{display:flex;gap:10px;flex-wrap:wrap}
.okx-f{display:flex;flex-direction:column;gap:4px;flex:1;min-width:170px;font-size:13px;color:#6A675F;margin-bottom:10px}
.okx-f input{font:inherit;font-size:15px;color:#1E1E1C;border:1px solid #DCD8D0;border-radius:12px;padding:10px 12px;background:#FAF9F7}
.okx-f input:focus{outline:2px solid #0F6E6A;outline-offset:1px;background:#fff}
.okx-ok{display:flex;gap:10px;align-items:flex-start;border:1px solid #E2DED7;border-radius:14px;padding:12px;margin:2px 0 12px;cursor:pointer}
.okx-ok input{width:20px;height:20px;margin:1px 0 0;accent-color:#0F6E6A;flex:none}
.okx-ok b{display:block;font-size:14.5px}.okx-ok small{display:block;color:#6A675F;font-size:12.5px}
.okx-btn{font:inherit;font-weight:700;font-size:15px;border:0;border-radius:14px;min-height:46px;padding:0 18px;cursor:pointer;background:#0F6E6A;color:#fff}
.okx-btn.alt{background:#fff;color:#1E1E1C;border:1px solid #DCD8D0;font-weight:600}
.okx-btn[disabled]{opacity:.6;cursor:default}
.okx-note{background:#EAF4F3;border-left:3px solid #0F6E6A;border-radius:8px;padding:10px 12px;margin:0 0 12px;font-size:14px}
.okx-err{background:#FBEFE1;border-left-color:#A85F12}
.okx-link{width:100%;box-sizing:border-box;font:12.5px ui-monospace,Menlo,Consolas,monospace;border:1px solid #DCD8D0;border-radius:10px;padding:9px 11px;background:#FAF9F7;color:#1E1E1C;margin-bottom:10px}
.okx-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.okx-small{font-size:12.5px;color:#6A675F;margin:10px 0 0}
.okx-small a{color:inherit}
.okx-nudge{position:fixed;z-index:95;left:50%;transform:translateX(-50%);bottom:24px;width:min(440px,calc(100% - 24px));box-sizing:border-box;display:flex;gap:12px;align-items:flex-start;background:#fff;color:#1E1E1C;border:1px solid #E2DED7;border-left:4px solid #0F6E6A;border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,.18);padding:12px 12px 12px 14px;font:14px/1.45 "Instrument Sans",system-ui,sans-serif}
.okx-nudge[hidden]{display:none}
.okx-nudge p{margin:0;flex:1}.okx-nudge p b{display:block;font-size:15px;margin-bottom:2px}
.okx-nudge .okx-btn{min-height:38px;font-size:14px;margin-top:8px}
@media (max-width:820px){.okx-nudge{bottom:calc(76px + env(safe-area-inset-bottom,0px))}.okx-sheet{align-items:flex-end;padding:0}.okx-box{border-radius:20px 20px 0 0;max-height:94dvh}}
