@property --tg-rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 222deg;
}

:root {
  --tg-pine: #03251c;
  --tg-canvas: #0a382a;
  --tg-recess: #073125;
  --tg-photo-mat: #093629;
  --tg-enamel: linear-gradient(148deg, #155e40 0%, #0d533a 19%, #07432f 44%, #053326 71%, var(--tg-pine) 100%);
  --tg-panel: radial-gradient(ellipse at 4% -48%, #26835b50, transparent 66%),
              linear-gradient(140deg, #0b402f, #062f23 53%, #03231b);
}

[data-tg-button] {
  --tg-bottom: var(--tg-pine);
  --tg-face: var(--tg-enamel);
  --tg-state-face: linear-gradient(174deg, var(--tg-top), var(--tg-middle) 51%, var(--tg-bottom));
  --tg-ink: #ffe299;
  --tg-letter: linear-gradient(176deg, #fff0b4 12%, #ffdf83 37%, #f7bf54 64%, #ffe59c 90%);
  --tg-flash: #fff9da;
  --tg-depth: 3px;
  --tg-crest: -.19em;
  --tg-metal: conic-gradient(from var(--tg-rim-angle, 222deg), #a57434 0deg, #dfba75 54deg,
       #94622b 103deg, #d8ab62 149deg, #8c622e 200deg, #b18343 267deg, #e7bb6e 305deg,
       #ffd678 324deg, #ffefac 334deg, #ffffe4 339deg, #edc56b 345deg, #a57434 360deg);
}

/* Only the finish is shared. Each control retains its own layout, content and hit area. */
@layer tedyGoldControls {
  :is([data-tg-button="face"], [data-tg-button="value"]) {
    background-color: var(--tg-bottom) !important;
    background-image: var(--tg-face), var(--tg-metal) !important;
    background-clip: padding-box, border-box !important;
    background-origin: padding-box, border-box !important;
    background-size: 100% 100%, 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 2px solid transparent !important;
    box-shadow: inset 0 1px 0 #f9e9b45c, inset 0 -1px 1px #071a12,
         0 1px 0 #e7be77, 0 var(--tg-depth) 0 #795325,
         0 calc(var(--tg-depth) + 3px) 7px -4px #150f08a8 !important;
    color: var(--tg-ink) !important;
    text-shadow: 0 1px 1px #32200f !important;
    text-decoration: none !important;
  }
  [data-tg-button="art"] {
    outline: 1px solid #e4bf74 !important;
    outline-offset: -2px !important;
    box-shadow: inset 0 0 0 1px #95622e, 0 1px 3px #86612c99 !important;
  }
  @supports (width: calc(1px * sin(1deg))) {
    [data-tg-button="art"][data-tg-visible] {
      box-shadow: inset 0 0 0 1px #95622e,
          calc(2px * sin(var(--tg-rim-angle, 222deg))) calc(-2px * cos(var(--tg-rim-angle, 222deg)))
          3px #ffe9a6a6 !important;
    }
  }
  :is([data-tg-button="face"], [data-tg-button="value"]):active:not(:disabled):not([aria-disabled="true"]) {
    box-shadow: inset 0 2px 4px #04180fa3, 0 1px 0 #b48a4a !important;
  }
  [data-tg-button]:focus-visible {
    outline: 3px solid #fff0be !important;
    outline-offset: 3px !important;
  }
  [data-tg-button]:is(:disabled, [aria-disabled="true"], .disabled) {
    box-shadow: inset 0 1px 0 #c1c6b52e, 0 1px 0 #655f4d !important;
  }
}

:where([data-tg-button="face"], [data-tg-button="value"]) { border-radius: .85rem; }

[data-tg-button]:is(.active, .is-active, .selected, .is-selected, .current,
                    [aria-selected="true"], [aria-pressed="true"], [aria-checked="true"],
                    [aria-expanded="true"], [aria-current="page"], [aria-current="step"], [aria-current="true"]) {
  --tg-top: #ffedaa;
  --tg-middle: #e8bc6b;
  --tg-bottom: #c59950;
  --tg-face: var(--tg-state-face);
  --tg-ink: #2d210e;
  --tg-letter: linear-gradient(#30210e, #49310f);
  --tg-flash: #5c3c16;
}
[data-tg-button]:is(.danger, .btn-danger, .destructive, .recording, .is-recording,
                    [data-tg-danger], [data-recording="true"]) {
  --tg-top: #74483b;
  --tg-middle: #532b27;
  --tg-bottom: #341e1c;
  --tg-face: var(--tg-state-face);
  --tg-ink: #ffdfab;
  --tg-letter: linear-gradient(#fff0cc, #f6c893);
}
[data-tg-button="art"]:is(.active, .selected, [aria-selected="true"], [aria-pressed="true"]) {
  outline-width: 3px !important;
}
[data-tg-button]:is(:disabled, [aria-disabled="true"], .disabled) {
  --tg-top: #344b3f;
  --tg-middle: #243a2f;
  --tg-bottom: #1b2e25;
  --tg-face: var(--tg-state-face);
  --tg-ink: #d4d3c5;
  --tg-letter: linear-gradient(#dedccd, #c4c4b6);
  --tg-metal: linear-gradient(115deg, #827862, #b5aa8e 50%, #7b7568);
  --tg-depth: 1px;
  --tg-crest: 0em;
}
:where(nav a:not([class]), .tedy-live-header a:not([class]), a.back)[data-tg-button="face"] {
  padding-inline: .65em;
}

tedy-button-caption, tedy-button-word {
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
tedy-button-caption { display: inline; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
tedy-button-word {
  display: inline-block;
  vertical-align: baseline;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--tg-ink);
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  tedy-button-word {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-color: var(--tg-ink);
    background-image: linear-gradient(106deg, transparent 36%, var(--tg-flash) 50%, transparent 65%), var(--tg-letter);
    background-size: 270% 100%, 100% 100%;
    background-position: 115% 50%, center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-tg-visible]:not(:disabled):not([aria-disabled="true"]):not(.disabled) > :is(tedy-button-caption, :not([data-tg-button])) tedy-button-word {
    animation: tg-word-lift 4.8s ease-in-out infinite backwards;
    animation-delay: var(--tg-phase, -.55s);
  }
  input[data-tg-button="value"][data-tg-visible]:not(:disabled):not([aria-disabled="true"]) {
    animation: tg-native-caption 4.8s ease-in-out infinite;
  }
}
@keyframes tg-word-lift {
  0% { transform: translateY(0); background-position: 115% 50%, center; }
  16% { transform: translateY(var(--tg-crest)); }
  36%, 100% { transform: translateY(0); background-position: -15% 50%, center; }
}
@keyframes tg-native-caption {
  0%, 36%, 100% { text-indent: 0; }
  16% { text-indent: .22em; }
}

input[type="file"]::file-selector-button {
  border: 1px solid #dab66e;
  border-radius: .7em;
  background: var(--tg-pine) var(--tg-enamel);
  color: #ffe29d;
  font: inherit;
  box-shadow: 0 2px 0 #845d2b;
}
html:not([data-tg-installed]) :where(a.btn, a.download, a.back, button.btn, button.gold-btn, input[type="submit"]) {
  background: var(--tg-pine) var(--tg-enamel);
  color: #ffe29d;
  border: 2px solid #d5ac64;
  box-shadow: 0 2px 0 #815a2b;
}

@media (forced-colors: active) {
  @layer tedyGoldControls {
    [data-tg-button] {
      background: ButtonFace !important; border-color: ButtonText !important;
      color: ButtonText !important; text-shadow: none !important; box-shadow: none !important;
    }
    [data-tg-button="art"] { background: revert !important; outline-color: ButtonText !important; }
    [data-tg-button]:is([aria-selected="true"], [aria-pressed="true"], .active, .selected) {
      outline: 2px solid Highlight !important;
    }
    [data-tg-button]:focus-visible { outline-color: Highlight !important; }
    [data-tg-button]:disabled { color: GrayText !important; border-color: GrayText !important; }
  }
  [data-tg-visible] tedy-button-word, input[data-tg-button][data-tg-visible] {
    animation: none !important;
  }
  tedy-button-word { background: none; color: ButtonText; -webkit-text-fill-color: ButtonText; }
  :disabled tedy-button-word { color: GrayText; -webkit-text-fill-color: GrayText; }
}

/* Product drawer. The name and count come from the catalog renderer. */
#drawer #categoryLinks {
  row-gap: .52rem;
}
#categoryLinks > button[data-category] {
  --tg-depth: 4px;
  --tg-crest: -.20em;
  --tg-menu-radius: 16px;
  --tg-menu-pin: 1.72rem;
  --tg-menu-inset: .70rem;
  --tg-menu-outline: #bd965b;
}
#categoryLinks > button[data-category]:disabled {
  --tg-top: #304a3d;
  --tg-middle: #213c2f;
  --tg-bottom: #162e23;
  --tg-depth: 2px;
  --tg-ink: #dccb9e;
  --tg-letter: linear-gradient(180deg,#e1d5b4,#c6b88b);
  --tg-metal: linear-gradient(125deg,#797152,#ad9b6e 23%,#71694f 54%,#aa976e 83%,#776e53);
  --tg-menu-outline: #97865d;
}
@layer tedyGoldControls {
  #drawer #categoryLinks > button[data-category] {
    position: relative !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 3.45rem !important;
    height: auto !important;
    padding: .5rem .72rem .5rem calc(var(--tg-menu-inset) + var(--tg-menu-pin) + .61rem) !important;
    border-width: 2.5px !important;
    border-radius: var(--tg-menu-radius) !important;
    text-align: start !important;
    white-space: normal !important;
    overflow: visible !important;
    box-shadow: inset 0 1px 0 #fff1cf79, inset 0 0 0 1px #4a3c26, inset 0 -3px 6px #07190f77,
                0 1px 0 #e6c185, 0 var(--tg-depth) 0 #765123,
                0 calc(var(--tg-depth) + 3px) 7px -4px #060e0abf !important;
  }
  #drawer #categoryLinks > button[data-category]::before {
    content: attr(data-icon) !important;
    display: grid !important;
    place-items: center !important;
    position: absolute !important;
    inset: auto !important;
    inset-inline-start: var(--tg-menu-inset) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: var(--tg-menu-pin) !important;
    height: var(--tg-menu-pin) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--tg-menu-outline) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg,#155a40,#093526 56%,#031e17) !important;
    box-shadow: inset 0 1px 0 #fff1bf4a, 0 1px 2px #06180f !important;
    color: #f5d58a !important;
    font-size: 1.02rem !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    pointer-events: none !important;
  }
  #drawer #categoryLinks > button[data-category]:disabled {
    opacity: 1 !important;
    filter: none !important;
    box-shadow: inset 0 1px 0 #c0b07840, 0 2px 0 #554a35 !important;
  }
  #drawer #categoryLinks > button[data-category]:active:not(:disabled) {
    box-shadow: inset 0 2px 5px #061a10ba, 0 1px 0 #9f7b46 !important;
  }
}
#categoryLinks tedy-menu-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .54rem;
  pointer-events: none;
}
#categoryLinks .tg-menu-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(1.08rem, .98rem + .64vw, 1.2rem);
  font-weight: 800;
  line-height: 1.52;
  color: var(--tg-ink);
  filter: drop-shadow(0 1px 0 #654617) drop-shadow(0 1px .55px #171108);
}
#categoryLinks .tg-menu-word { display: inline-block; max-width: 100%; vertical-align: baseline; }
#categoryLinks .tg-menu-word tedy-button-word { font: inherit; }
#categoryLinks .tg-menu-count {
  box-sizing: border-box;
  min-width: 2.35em;
  justify-self: end;
  padding: .22em .53em;
  border: 1px solid var(--tg-menu-outline);
  border-radius: 999px;
  background: linear-gradient(150deg,#0b3527,#041d16);
  box-shadow: inset 0 1px 1px #060c086b;
  color: #f2d59b;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

/* Carry the shop canvas across the full viewport, including the catalog's outer gutters. */
@media not all and (forced-colors: active) {
  @layer tedyGoldControls {
    html:has(> body[data-tedy-bright]),
    body[data-tedy-bright] {
      background-color: var(--tg-canvas) !important;
      background-image: none !important;
    }
    body[data-tedy-bright] > #main {
      background-color: var(--tg-canvas) !important;
      background-image: radial-gradient(ellipse 68rem 25rem at 24% 0, #0d4230, transparent 94%) !important;
    }
    body[data-tedy-bright] > .ambient,
    #main > .content-page {
      background-color: transparent !important;
      background-image: none !important;
    }
    #ethClock {
      background-color: var(--tg-recess) !important;
      background-image: linear-gradient(145deg, #104832, #083627 70%, #073125) !important;
    }
    #page-catalog .catalog-tools {
      background-color: #0c412f !important;
      background-image: linear-gradient(145deg, #114e37, #0d432f 48%, #093727) !important;
    }
    #productSearch,
    #catalogSort option {
      background-color: var(--tg-recess) !important;
      background-image: none !important;
    }
    #catalogSort option:enabled { color: #fff0d2 !important; }
    #catalogSort option:disabled { color: #afbea9 !important; }
    #productSearch::placeholder { color: #d9cfb1 !important; }
    #productSearch:not(:focus-visible) { box-shadow: inset 0 1px 3px #02251985 !important; }
    :is(#productGrid, #favoriteGrid) .product-image-frame,
    :is(#productGrid, #favoriteGrid) .product-card img,
    #page-detail .detail-photo,
    #detailImage,
    #tedy-r70-lightbox {
      background-color: var(--tg-photo-mat) !important;
    }
    #page-detail .promise > span {
      background-color: var(--tg-recess) !important;
    }
    #drawerBackdrop,
    :is(#tedy-r70-lightbox, .piq-dialog)::backdrop {
      background-color: rgb(4 40 29 / 88%) !important;
      background-image: none !important;
    }
    #drawer.drawer {
      background-color: #041f18 !important;
      background-image: radial-gradient(ellipse 90% 44% at 0% 0%, #2076505c, transparent 78%),
                        linear-gradient(144deg, #093929, #052b20 38%, #032219 72%, #021a14) !important;
    }
    body[data-tedy-bright] > header.topbar {
      background-color: var(--tg-pine) !important;
      background-image: radial-gradient(ellipse 54% 210% at 7% -122%, #2b8e615e, transparent 86%),
                        linear-gradient(114deg, #0a3b2a, #062c20 53%, #031f17) !important;
    }
    #drawer .drawer-category-search {
      background-color: #04271d !important;
      background-image: linear-gradient(145deg, #063326, #032219 76%) !important;
    }
    #catalogSort {
      background-color: #093e2c !important;
    }
    #catalogSort:not(:focus-visible) {
      box-shadow: inset 0 1px 0 #89c89d35, inset 0 -8px 16px #01190e54 !important;
    }
    :is(#page-catalog, #page-favorites) .product-card,
    :is(#page-catalog, #page-favorites) .product-card .card-info,
    #page-detail .detail-body {
      background-color: var(--tg-pine) !important;
      background-image: var(--tg-panel) !important;
    }
    :is(#page-catalog, #page-favorites) .product-card .card-info {
      box-shadow: inset 0 1px 0 #93c59c30 !important;
    }
    button.piq-ask::before {
      background-color: var(--tg-pine) !important;
      background-image: radial-gradient(ellipse at 20% -60%, #68c68e40, transparent 70%),
                        var(--tg-enamel) !important;
    }
  }
}
#categoryLinks button:disabled .tg-menu-name { filter: none; }
#categoryLinks button:disabled .tg-menu-count { color: #d1c5a6; }
@supports (offset-path: inset(2px round 14px) border-box) {
  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    #drawer[aria-hidden="false"] #categoryLinks > button[data-category][data-tg-visible]:not(:disabled)::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 13px;
      height: 13px;
      pointer-events: none;
      background: radial-gradient(ellipse 12% 48%, #fffbe6, #ffe59b 38%, transparent),
                  radial-gradient(ellipse 48% 12%, #ffffed, #ffe59b 38%, transparent),
                  radial-gradient(circle closest-side,#fff5bf 10%,#ffd0717a 39%,transparent);
      offset-path: inset(1.3px round calc(var(--tg-menu-radius) - 1.3px)) border-box;
      offset-anchor: center;
      offset-rotate: 0deg;
      animation: tg-menu-rim 4.8s linear -1.08s infinite;
    }
  }
}
@keyframes tg-menu-rim { from { offset-distance: 0%; } to { offset-distance: 100%; } }
#drawer[aria-hidden="true"] #categoryLinks tedy-button-word { animation: none !important; }
@media (max-width: 370px) {
  #categoryLinks > button[data-category] { --tg-menu-inset: .42rem; --tg-menu-pin: 1.48rem; }
  #categoryLinks tedy-menu-row { gap: .32rem; }
}
@media (forced-colors: active) {
  @layer tedyGoldControls {
    #drawer #categoryLinks > button[data-category],
    #drawer #categoryLinks > button[data-category]::before {
      background: ButtonFace !important; border-color: ButtonText !important;
      color: ButtonText !important; box-shadow: none !important;
    }
    #drawer #categoryLinks > button[data-category]:disabled { border-color: GrayText !important; }
  }
  #categoryLinks .tg-menu-name { filter: none; }
  #categoryLinks .tg-menu-count { color: ButtonText; border-color: ButtonText; background: none; box-shadow: none; }
}
