/* Teddy custom sizes (staff preview, mu-plugins/tt-custom-size.php): one look for the product page,
   the shop cards' pop-up and the size guide. Only the product page's own fonts and colours. */

/* The chip: exactly the product page size chips (.tt-picker .tt-size). */
.tt-picker .ttcs-chip { appearance: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgba(0, 0, 0, 0.18); background: #fff; color: #000; font: 700 14px/1 'Karla', sans-serif; padding: 10px 16px; min-width: 54px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.tt-picker .ttcs-chip:hover { background: #F7EBE1; border-color: #9F6357; color: #000; }
.tt-picker .ttcs-chip[aria-pressed="true"] { background: #000; border-color: #000; color: #F7EBE1; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.ttcs-tag { display: inline-block; padding: 3px 5px; border-radius: 999px; background: #F7EBE1; color: #9F6357; font: 700 9px/1 'Karla', sans-serif; letter-spacing: .08em; text-transform: uppercase; }

/* The boxes: the quantity box's height, border and radius; label inside on the left, "in" inside on the right. */
.ttcs { margin: 12px 0 0; }
.ttcs[hidden] { display: none !important; }
.ttcs__row { display: flex; align-items: center; gap: 8px; max-width: 400px; }
.ttcs__f { flex: 1 1 0; min-width: 0; box-sizing: border-box; height: 48px; margin: 0; padding: 0 16px; display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid rgba(0, 0, 0, 0.18); border-radius: 999px; cursor: text; }
.ttcs__f:focus-within { border-color: #9F6357; }
.ttcs__l { flex: 0 0 auto; color: #9F6357; font: 700 11px/1 'Karla', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.ttcs .ttcs__i { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: #000; font: 700 15px/1 'Karla', sans-serif; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.ttcs .ttcs__i::-webkit-inner-spin-button, .ttcs .ttcs__i::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ttcs__u { flex: 0 0 auto; color: #4A3328; font: 700 15px/1 'Karla', sans-serif; }
.ttcs__x { flex: 0 0 auto; color: #4A3328; font: 700 16px/1 'Karla', sans-serif; }

/* The size + price line: the product price's own font and colour, smaller. Errors take its place. */
.ttcs__line { margin: 10px 0 0 !important; color: var(--wp--preset--color--brand-dark, #4A2F27); font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 20px; line-height: 1.2; }
.ttcs__line span { font-size: 16px; }
.ttcs__line.is-hint { color: #4A3328; font: 400 14px/1.4 'Karla', sans-serif; }
.ttcs__line.is-bad { color: #9F6357; font: 700 14px/1.4 'Karla', sans-serif; }
.tt-picker .ttcs-set { margin: 0 0 10px !important; color: var(--wp--preset--color--brand-dark, #4A2F27); font: 700 14px/1.3 'Karla', sans-serif; }

/* Shop card pop-up. */
.ttcs-dlg { box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: #000; box-shadow: 0 20px 60px rgba(74, 47, 39, .35); overflow: visible; }
.ttcs-dlg::backdrop { background: rgba(74, 47, 39, .55); }
.ttcs-dlg__in { position: relative; padding: 20px; }
.ttcs-dlg__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #4A2F27; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ttcs-dlg__head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.ttcs-dlg__img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: #F7EBE1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ttcs-dlg__img.is-dark { background: #000; }
.ttcs-dlg__img img { width: 100%; height: 100%; object-fit: contain; }
.ttcs-dlg__eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 4px !important; color: #9F6357; font: 700 11px/1 'Karla', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.ttcs-dlg__name { margin: 0 !important; color: #4A2F27; font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-size: 20px; line-height: 1.15; }
.ttcs-dlg .ttcs { margin-top: 16px; }
.ttcs-dlg .ttcs__row { max-width: none; }
.ttcs-dlg__guide { display: inline-block; margin: 10px 0 0; padding: 4px 0; background: none; border: 0; color: #9F6357; font: 700 15px 'Karla', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The button: the product page's Add to cart button. */
.ttcs-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 14px 0 0; padding: 0 24px; border: 0; border-radius: 999px; background: #9F6357; color: #fff; font: 800 13.5px/1 'Karla', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 14px rgba(170, 111, 99, 0.32); transition: all .2s ease; }
.ttcs-go:hover:not(:disabled) { background: #000; }
.ttcs-go:disabled { opacity: .45; cursor: default; box-shadow: none; }

/* The size guide opened from a shop card. */
.ttcs-guide { box-sizing: border-box; width: min(1160px, calc(100vw - 16px)); height: calc(100dvh - 16px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; overflow: hidden; }
.ttcs-guide::backdrop { background: rgba(74, 47, 39, .55); }
.ttcs-guide iframe { display: block; width: 100%; height: 100%; border: 0; }
.ttcs-guide__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #4A2F27; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* Inside the size guide: the bar at the bottom, always in view. */
.tt-sg__csbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; box-sizing: border-box; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: #fff; border-top: 1.5px solid #eadbcf; box-shadow: 0 -6px 18px rgba(74, 47, 39, .12); }
.tt-sg__csin { box-sizing: border-box; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 18px; }
.tt-sg__csbar .ttcs { margin: 0; }
.tt-sg__csbar .ttcs__row { max-width: 400px; }
.tt-sg__csbar .ttcs__line { margin-top: 8px !important; font-size: 22px; }
.tt-sg__csslide { display: block; width: 100%; max-width: 400px; height: 28px; margin: 8px 0 0; accent-color: #4A2F27; }
.tt-sg__csgo { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 240px; }
.tt-sg__csgo .ttcs-go { margin: 0; }
.tt-sg__csnote { margin: 0 !important; color: #6E3F35; font: 400 13px/1.3 'Karla', sans-serif; text-align: center; }
@media (max-width: 720px) {
    .tt-sg__csbar { padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .tt-sg__csin { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tt-sg__csbar .ttcs__row, .tt-sg__csslide { max-width: none; }
    .tt-sg__csbar .ttcs__line { font-size: 19px; margin-top: 6px !important; }
    .tt-sg__csslide { margin-top: 6px; }
    .tt-sg__csgo { min-width: 0; }
}

/* 11/11: the DPI at this size, as a small badge under the size + price (green = prints sharp, amber = under 150 DPI) */
.ttcs__line .ttcs__dpi { display: inline-block; margin-top: 8px; padding: 4px 11px; border-radius: 99px; background: #E6F2EA; color: #2E7D52; font: 700 12px/1.3 'Karla', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.ttcs__line .ttcs__dpi.is-low { background: #FCEBDD; color: #9A4B1C; }
