/* Shop mode for the editor: only sizes the in-house printer can make, no free downloads. */
#sizes button[data-s="A5"], #sizes button[data-s="A2"], #sizes button[data-s="Custom"] { display: none !important; }
#customRow { display: none !important; }
#posterExports > *, #stlExports > * { display: none !important; }
.group:has(#terrainOn) { display: none !important; }
#posterExports, #stlExports { display: flex !important; }

.ld-order-btn { display: inline-flex !important; align-items: center; gap: 8px; font: 700 15px/1 "Archivo", system-ui, sans-serif; padding: 11px 16px; border-radius: 6px; border: 0; background: #C7431D; color: #fff; cursor: pointer; }
.ld-order-btn:disabled { background: #d9dcd9; color: #5B676C; cursor: not-allowed; }
.ld-order-btn:focus-visible, .ld-drawer button:focus-visible, .ld-drawer input:focus-visible, .ld-drawer select:focus-visible, .ld-drawer textarea:focus-visible { outline: 2px solid #E4572E; outline-offset: 2px; }
.ld-home { display: inline-flex; align-items: center; gap: 8px; font: 800 18px/1 "Barlow Condensed", sans-serif; text-decoration: none; color: #1F2A30; margin-right: 14px; align-self: center; }
.ld-home span { color: #C7431D; }

.ld-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; border-left: 1px solid #D9DDDA; box-shadow: -18px 0 40px rgba(22, 32, 42, .12); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; font: 15px/1.5 "Archivo", system-ui, sans-serif; color: #1F2A30; }
.ld-drawer.open { transform: none; }
.ld-drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.ld-drawer h2 { font: 800 30px/1 "Barlow Condensed", sans-serif; margin: 0; }
.ld-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #1F2A30; padding: 4px 8px; }
.ld-body { padding: 4px 20px 20px; overflow-y: auto; flex: 1; }
.ld-body h3 { font: 700 14px/1.2 "Archivo", sans-serif; color: #5B676C; margin: 18px 0 8px; }
.ld-products { display: grid; gap: 8px; }
.ld-product { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; border: 1.5px solid #D9DDDA; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.ld-product:has(input:checked) { border-color: #1F2A30; box-shadow: inset 0 0 0 1px #1F2A30; }
.ld-product input { margin-top: 4px; accent-color: #1F2A30; }
.ld-product b { display: block; }
.ld-product small { color: #5B676C; }
.ld-product .p { font-weight: 700; white-space: nowrap; }
.ld-seg { display: flex; gap: 8px; }
.ld-seg button { flex: 1; padding: 10px; border: 1.5px solid #D9DDDA; border-radius: 6px; background: #fff; font: 600 15px "Archivo", sans-serif; cursor: pointer; }
.ld-seg button[aria-pressed="true"] { border-color: #1F2A30; box-shadow: inset 0 0 0 1px #1F2A30; }
.ld-body select, .ld-body textarea { width: 100%; font: inherit; padding: 9px 10px; border: 1.5px solid #D9DDDA; border-radius: 6px; background: #fff; }
.ld-body textarea { min-height: 64px; resize: vertical; }
.ld-check { display: flex; gap: 10px; align-items: flex-start; }
.ld-check input { margin-top: 4px; accent-color: #1F2A30; }
.ld-note { font-size: 13px; color: #5B676C; margin: 6px 0 0; }
.ld-foot { border-top: 1px solid #D9DDDA; padding: 14px 20px 18px; }
.ld-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
.ld-total.grand { font: 800 26px/1.2 "Barlow Condensed", sans-serif; margin: 6px 0 12px; }
.ld-pay { width: 100%; min-height: 48px; padding: 14px; border: 0; border-radius: 8px; background: #C7431D; color: #fff; font: 700 16px "Archivo", sans-serif; cursor: pointer; }
.ld-pay:disabled { opacity: .55; cursor: wait; }
.ld-error { color: #b42318; font-weight: 600; margin: 0 0 10px; }
.ld-test { background: #fff4e5; border: 1px solid #f0c27a; border-radius: 6px; padding: 8px 10px; font-size: 13px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ld-drawer { transition: none; } }

.ld-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.ld-swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #B8BFBC; cursor: pointer; padding: 0; }
.ld-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px #1F2A30; }
.ld-code { display: flex; gap: 8px; }
.ld-code input { flex: 1; min-width: 0; font: inherit; padding: 9px 10px; border: 1.5px solid #D9DDDA; border-radius: 6px; text-transform: uppercase; }
.ld-code button { padding: 0 14px; border: 1.5px solid #1F2A30; border-radius: 6px; background: #fff; font: 600 14px "Archivo", sans-serif; cursor: pointer; }

/* LayerDesignCo studio additions */
.ld-basket-link { align-self: center; font: 600 14px "Archivo", sans-serif; color: #1F2A30; text-decoration: none; margin-right: 6px; }
.ld-basket-link:hover { color: #C7431D; }
.ld-sample { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #FDF3EF; border: 1px solid #F0C9BB; font-size: 12.5px; line-height: 1.45; color: #1F2A30; }
.ld-finish { border-color: #C7431D !important; }
.ld-finish .hd { color: #C7431D !important; }
.ld-wide { width: 100%; justify-content: center; min-height: 46px; font-size: 16px !important; }
.preset .chip { background: #fff; }
.preset .chip svg { display: block; }
/* settings only you can change (3D route, elevation, terrain): shown in workshop mode */
body:not(.ld-owner) .ld-owner-only { display: none !important; }
body.ld-owner .ld-owner-only { border-color: #C7431D; }
body.ld-owner .ld-owner-only > .hd::after { content: "Workshop"; color: #C7431D; font-size: 10px; letter-spacing: .1em; }
/* 3D route tab */
.ld3d { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ld3d-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #D9DDDA; background: #fff; min-height: 44px; box-sizing: border-box; }
.ld3d-bar button { padding: 6px 12px; border: 1.5px solid #D9DDDA; border-radius: 6px; background: #fff; font: 600 13px "Archivo", sans-serif; cursor: pointer; color: #1F2A30; }
.ld3d-bar button[aria-pressed="true"] { border-color: #1F2A30; }
.ld3d-check { display: inline-flex; align-items: center; gap: 6px; font: 600 13px "Archivo", sans-serif; margin-left: 6px; }
.ld3d-hint { margin-left: auto; font-size: 12px; color: #5B676C; }
.ld3d-canvas { display: block; touch-action: none; cursor: grab; }
.ld3d-canvas:active { cursor: grabbing; }
.ld3d-colour { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-left: 6px; }
.ld3d-colour .ld-swatches { display: inline-flex; gap: 6px; }
.ld3d-colour .ld-swatch { width: 26px; height: 26px; }
.ld-pages { border: 0; padding: 0; margin: 0 0 10px; }
.ld-pages legend { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.ld-pagechk { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 6px 0; font-size: 13px; }
/* product switch on the Preview tab */
.ld3d-prod { display: inline-flex; flex-wrap: wrap; border: 1px solid #D9DDDA; border-radius: 999px; padding: 3px; gap: 2px; background: #fff; }
.ld3d-prod button { border: 0; background: none; border-radius: 999px; padding: 6px 11px; font: 600 12.5px "Archivo", sans-serif; color: #1F2A30; cursor: pointer; min-height: 32px; }
.ld3d-prod button[aria-pressed="true"] { background: #1F2A30; color: #fff; }
/* while choosing in the drawer: the preview fills the rest of the screen */
body.ld-previewing .stage { position: fixed; top: 0; left: 0; bottom: 0; right: min(420px, 100vw); z-index: 49; background: var(--bg, #E6E9E4); }
body.ld-previewing .stage .tabs { display: none; }

/* Strava connect */
.ld-strava { margin-top: 10px; }
.ld-strava[hidden] { display: none; }
.ld-strava-btn { width: 100%; min-height: 40px; border: 0; border-radius: 8px; background: #FC5200; color: #fff; font: 600 14px/1.2 inherit; cursor: pointer; }
.ld-strava-btn:hover { background: #E34A00; }
.ld-strava-btn:focus-visible { outline: 2px solid #1F2A30; outline-offset: 2px; }
.ld-strava-who { margin: 6px 0 0; font-size: 12px; color: #5B676C; line-height: 1.4; }
.ld-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.ld-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 27, 34, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ld-modal-card { background: #fff; color: #1F2A30; border-radius: 14px; width: min(640px, 100%); max-height: min(720px, 92vh); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ld-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #E3E6E3; }
.ld-modal-hd h2 { margin: 0; font-size: 18px; }
.ld-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #5B676C; width: 36px; height: 36px; border-radius: 8px; }
.ld-x:hover { background: #F1F3F1; }
.ld-modal-bd { overflow: auto; padding: 8px 20px 16px; }
.ld-modal-ft { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #E3E6E3; font-size: 12px; color: #5B676C; }
.ld-pwr { font-weight: 700; color: #FC5200; white-space: nowrap; }
.ld-acts { list-style: none; margin: 0; padding: 0; }
.ld-act { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEF0EE; }
.ld-act-pic { width: 56px; height: 56px; background: #F4F5F2; border-radius: 8px; display: block; }
.ld-act-txt { min-width: 0; font-size: 14px; }
.ld-act-txt b { overflow-wrap: anywhere; }
.ld-act-txt small { display: block; color: #5B676C; margin-top: 2px; }
.ld-act-link { font-size: 12px; color: #FC5200; font-weight: 600; }
.ld-act-btns { display: flex; flex-direction: column; gap: 6px; }
.ld-tag { font-size: 11px; background: #EEF0EE; border-radius: 4px; padding: 1px 6px; color: #5B676C; }
.ld-acts-msg { color: #5B676C; font-size: 14px; margin: 12px 0; }
.ld-acts-msg:empty { display: none; }
@media (max-width: 560px) { .ld-act { grid-template-columns: 48px 1fr; } .ld-act-btns { grid-column: 1 / -1; flex-direction: row; } .ld-act-pic { width: 48px; height: 48px; } .ld-modal-ft { flex-direction: column; align-items: flex-start; gap: 4px; } }
.ld-modal [hidden] { display: none !important; }
