/* Size guide (inc/size-guide.php). */
@font-face { font-family: 'Riffic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/wp-content/uploads/fonts/riffic-bold-webfont.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('https://www.teddytransfers.com/wp-content/uploads/fonts/karla-latin-var.woff2') format('woff2'); }
.tt-sg-body { margin: 0; background: #fff; color: #4A3328; font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.tt-sg { --sg-brand: #9F6357; --sg-dark: #4A2F27; --sg-cream: #FFF4EE; --sg-pink: #FBE6DF; --sg-line: #E9C9BE; box-sizing: border-box; width: 100%; max-width: 1160px; margin: 0 auto; padding: clamp(20px, 3vw, 44px) clamp(16px, 2vw, 20px) 60px; color: #4A3328; line-height: 1.45; }
.tt-sg *, .tt-sg *::before, .tt-sg *::after { box-sizing: border-box; }
.tt-sg h1, .tt-sg h2, .tt-sg h3, .tt-sg p { margin: 0; }
.tt-sg__head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.tt-sg__eyebrow { color: var(--sg-brand); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.tt-sg__title { font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-weight: 700; color: var(--sg-brand); font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin-bottom: 10px; }
.tt-sg__lead { font-size: 17px; }
.tt-sg--embed .tt-sg__head { margin-bottom: 18px; padding: 0 44px; }
.tt-sg__tool { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tt-sg__stagewrap { position: sticky; top: 90px; background: var(--sg-cream); border-radius: 24px; padding: 14px 14px 16px; }
.tt-sg--embed .tt-sg__stagewrap { top: 12px; }
.tt-sg__stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.tt-sg__shirt { position: absolute; inset: 0; width: 100%; height: 100%; display: block;  user-select: none; pointer-events: none; }
.tt-sg__art { position: absolute; background-position: center top; background-repeat: no-repeat; background-size: 100% 100%; }
.tt-sg__art.is-box { background-size: contain; background-position: center; outline: 1.5px dashed #9F6357; outline-offset: 2px; }
.tt-sg__art.is-side { transform: rotate(-7deg) skewY(5deg); }
.tt-sg__ruler { position: absolute; height: 0; border-top: 2px solid var(--sg-dark); }
.tt-sg__ruler::before, .tt-sg__ruler::after { content: ""; position: absolute; top: -6px; width: 2px; height: 10px; background: var(--sg-dark); }
.tt-sg__ruler::before { left: 0; } .tt-sg__ruler::after { right: 0; }
.tt-sg__ruler span, .tt-sg__drop span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 9px; border-radius: 99px; background: var(--sg-dark); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.tt-sg__ruler span { top: 5px; }
.tt-sg__drop { position: absolute; width: 0; border-left: 2px dotted var(--sg-brand); }
.tt-sg__drop span { top: 50%; transform: translate(10px, -50%); left: 0; background: var(--sg-brand); }
.tt-sg__colors { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.tt-sg__swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--sg-line); cursor: pointer; }
.tt-sg__swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--sg-dark); }
.tt-sg__swatch--white { background: #F4F2EE; } .tt-sg__swatch--black { background: #232221; } .tt-sg__swatch--sand { background: #D9CDBA; } .tt-sg__swatch--pink { background: #EFC3CE; }
.tt-sg__result { background: var(--sg-pink); border-radius: 18px; outline: 1.5px dashed #D9A596; outline-offset: -6px; padding: 20px 22px; text-align: center; margin-bottom: 20px; }
.tt-sg__for { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-brand); }
.tt-sg__pick { font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-weight: 700; color: var(--sg-dark); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin: 4px 0 6px !important; }
.tt-sg__pick span { display: block; font-family: 'Karla', system-ui, sans-serif; font-size: 15px; color: #6E3F35; }
.tt-sg__why { font-size: 15.5px; }
.tt-sg__facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; padding: 0; }
.tt-sg__facts li { padding: 5px 12px; border-radius: 99px; background: #fff; font-size: 14px; }
.tt-sg__facts b { color: var(--sg-dark); }
.tt-sg__small { font-size: 13.5px; color: #6E5145; margin-top: 8px !important; }
.tt-sg__step { margin-bottom: 18px; }
.tt-sg__step h2 { font-family: 'Karla', system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-brand); margin-bottom: 8px; }
.tt-sg__chips, .tt-sg__places { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-sg__chip { min-height: 44px; padding: 8px 17px; border-radius: 99px; border: 1.5px solid var(--sg-line); background: #fff; color: var(--sg-dark); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.tt-sg__chip[aria-pressed="true"] { background: var(--sg-dark); border-color: var(--sg-dark); color: #fff; }
.tt-sg__designs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-sg__design { width: 56px; height: 56px; padding: 2px; border-radius: 12px; border: 1.5px solid var(--sg-line); background: #fff; cursor: pointer; }
.tt-sg__design img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tt-sg__design[aria-pressed="true"] { border-color: var(--sg-dark); box-shadow: 0 0 0 1.5px var(--sg-dark); }
.tt-sg__own { display: inline-flex; align-items: center; height: 56px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--sg-brand); color: var(--sg-brand); font-weight: 700; font-size: 14px; cursor: pointer; }
.tt-sg__own input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tt-sg__own:focus-within { outline: 2px solid var(--sg-dark); outline-offset: 2px; }
.tt-sg__block { margin-top: clamp(36px, 5vw, 60px); }
.tt-sg__h2 { font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-weight: 700; color: var(--sg-brand); font-size: clamp(23px, 3vw, 30px); text-align: center; margin-bottom: 18px !important; }
.tt-sg__glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tt-sg__card { display: block; padding: 10px 10px 14px; border: 1.5px solid #F7D9D0; border-radius: 18px; background: var(--sg-cream); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.tt-sg__card[aria-pressed="true"] { border-color: var(--sg-dark); }
.tt-sg__ministage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 6px; }
.tt-sg__card strong { display: block; color: var(--sg-dark); font-size: 15.5px; }
.tt-sg__card span { display: block; font-size: 14px; }
.tt-sg__chart { overflow-x: auto; max-width: 760px; margin: 0 auto; }
.tt-sg__chart table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1.5px solid #F7D9D0; border-radius: 16px; overflow: hidden; font-size: 15.5px; }
.tt-sg__chart th, .tt-sg__chart td { padding: 11px 12px; text-align: center; border-bottom: 1px solid #F7E3DC; }
.tt-sg__chart thead th { background: var(--sg-pink); color: var(--sg-dark); font-size: 13.5px; }
.tt-sg__chart tbody th { color: var(--sg-dark); }
.tt-sg__chart tr:last-child th, .tt-sg__chart tr:last-child td { border-bottom: 0; }
.tt-sg__chart tr.is-on th, .tt-sg__chart tr.is-on td { background: var(--sg-cream); font-weight: 700; }
.tt-sg__block + .tt-sg__block .tt-sg__small, .tt-sg__chart + .tt-sg__small { text-align: center; }
.tt-sg__tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tt-sg__tip { background: var(--sg-cream); border-radius: 18px; padding: 18px 20px; }
.tt-sg__tip h3 { font-family: 'Riffic', 'Fredoka', system-ui, sans-serif; font-weight: 700; color: var(--sg-brand); font-size: 19px; margin-bottom: 6px; }
.tt-sg__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.tt-sg__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 26px; border-radius: 99px; background: var(--sg-brand); border: 1.5px solid var(--sg-brand); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.tt-sg__btn--line { background: #fff; color: var(--sg-brand) !important; }
@media (max-width: 860px) {
    .tt-sg__tool { grid-template-columns: minmax(0, 1fr); }
    .tt-sg__stagewrap { position: relative; top: 0; }
    .tt-sg__stage { max-width: 440px; margin: 0 auto; }
    .tt-sg__glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-sg__tips { grid-template-columns: minmax(0, 1fr); }
    .tt-sg__chart th, .tt-sg__chart td { padding: 10px 7px; font-size: 14px; }
}
/* On the page the theme's content column is narrow: the guide takes the same width as the shop pages. */
.tt-sg:not(.tt-sg--embed) { --sg-w: min(1160px, calc(100vw - 8px)); position: relative; left: calc((100% - var(--sg-w)) / 2); width: var(--sg-w); max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Phones: the shirt stays in view while you tap sizes and placements. */
@media (max-width: 860px) {
    .tt-sg__tool { display: block; }
    .tt-sg__stagewrap { position: sticky; top: 64px; z-index: 5; padding: 8px; margin-bottom: 14px; box-shadow: 0 10px 18px -14px rgba(74,47,39,.5); }
    .tt-sg--embed .tt-sg__stagewrap { top: 4px; }
    .tt-sg__stage { width: min(100%, 36vh); }
    .tt-sg__colors { margin-top: 4px; }
    .tt-sg__swatch { width: 28px; height: 28px; }
    .tt-sg__ruler span, .tt-sg__drop span { font-size: 11.5px; padding: 1px 7px; }
}
/* 11/1 Meg: the theme's own "Size Guide" page title sat above the guide's. The guide's heading is the only one, on one line. */
body.page-id-14523 h1.wp-block-post-title { display: none !important; }
.tt-sg__head { max-width: 820px; }
.tt-sg__tip { text-align: center; }
/* 11/1 Meg: type a size, compare sizes. */
.tt-sg__type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.tt-sg__type label { font-weight: 700; color: var(--sg-dark); font-size: 15px; }
.tt-sg__type input[type="number"] { width: 84px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--sg-line); border-radius: 12px; background: #fff; color: var(--sg-dark); font: inherit; font-size: 16px; font-weight: 700; text-align: center; }
.tt-sg__type input[type="number"]:focus { outline: 2px solid var(--sg-dark); outline-offset: 1px; }
.tt-sg__type input[type="range"] { flex: 1 1 150px; min-width: 140px; height: 32px; accent-color: #4A2F27; }
.tt-sg__verdict { display: inline-block; margin: 2px 0 6px !important; padding: 3px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #fff; }
.tt-sg__verdict--ok { background: #2F8F5A; }
.tt-sg__verdict--warn { background: #B25A36; }
.tt-sg__reset { display: block; margin: 10px auto 0; padding: 4px 8px; background: none; border: 0; color: var(--sg-brand); font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tt-sg__name { font-size: 15px; margin-bottom: 6px !important; }
.tt-sg__name b { color: var(--sg-dark); }
/* Opened from a premade product: only that product's own sizes. */
.tt-sg--premade .tt-sg__type, .tt-sg--premade .tt-sg__step:has(> [data-designs]) { display: none; }
.tt-sg__typenote { flex: 0 0 100%; margin-top: 0 !important; }
