/* Cart drawer: the WooCommerce mini-cart remains the canonical data/rendering source. */

body.tlc-cart-open {
  overflow: hidden;
}

.tlc-cart-drawer {
  position: fixed;
  z-index: 12000;
  inset: 0;
  pointer-events: none;
}

.tlc-cart-drawer[hidden] {
  display: none;
}

.tlc-cart-drawer.is-open {
  pointer-events: auto;
}

.tlc-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  background: rgb(18 18 18 / 38%);
  cursor: default;
  transition: opacity 220ms ease;
}

.tlc-cart-drawer.is-open .tlc-cart-drawer__backdrop {
  opacity: 1;
}

.tlc-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 30vw;
  height: 100%;
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--tlc-color-border, #e1e1e1);
  border-radius: 0;
  background: var(--tlc-color-paper, #fff);
  box-shadow: -18px 0 44px rgb(0 0 0 / 10%);
  outline: none;
  transform: translate3d(100%, 0, 0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tlc-cart-drawer.is-open .tlc-cart-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.tlc-cart-drawer__header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 104px;
  padding: 24px clamp(20px, 2vw, 32px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tlc-color-border, #e1e1e1);
  background: var(--tlc-color-paper, #fff);
}

.tlc-cart-drawer__eyebrow,
.tlc-cart-upsells__heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--tlc-color-muted, #737373);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tlc-cart-drawer__header h2 {
  margin: 0;
  color: var(--tlc-color-ink, #202020);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.tlc-cart-drawer__header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tlc-cart-drawer__header .tlc-cart-count {
  position: static;
  flex: 0 0 auto;
  border: 0;
}

.tlc-cart-drawer__close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--tlc-color-ink, #202020);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.tlc-cart-drawer__close:hover {
  background: #f4f4f4;
}

.tlc-cart-drawer__close:active {
  transform: scale(0.94);
}

.tlc-cart-drawer__close:focus-visible,
.tlc-cart-drawer a:focus-visible,
.tlc-cart-drawer button:focus-visible {
  outline: 2px solid var(--tlc-color-ink, #202020);
  outline-offset: 2px;
}

.tlc-cart-drawer .widget_shopping_cart_content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bcbcbc transparent;
}

.tlc-cart-shipping {
  padding: 18px clamp(20px, 2vw, 32px) 20px;
  border-bottom: 1px solid var(--tlc-color-border, #e1e1e1);
  background: #fbfbfb;
}

.tlc-cart-shipping__message {
  margin: 0 0 11px;
  color: var(--tlc-color-ink, #202020);
  font-size: 0.85rem;
  line-height: 1.45;
}

.tlc-cart-shipping__message .amount {
  font-weight: 800;
}

.tlc-cart-shipping__track {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: #dedede;
}

.tlc-cart-shipping__track span {
  display: block;
  width: var(--tlc-cart-progress, 0%);
  height: 100%;
  background: var(--tlc-color-brand, #f7bd45);
  transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tlc-cart-drawer .woocommerce-mini-cart {
  margin: 0;
  padding: 0 clamp(20px, 2vw, 32px);
  list-style: none;
}

.tlc-cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  min-height: 116px;
  margin: 0;
  padding: 22px 38px 22px 104px;
  border-bottom: 1px solid var(--tlc-color-border, #e1e1e1);
  color: var(--tlc-color-ink, #202020);
  font-size: 0.88rem;
  line-height: 1.4;
}

.tlc-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  display: block;
  padding: 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.tlc-cart-drawer .woocommerce-mini-cart-item > a:not(.remove):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tlc-cart-drawer .woocommerce-mini-cart-item img {
  position: absolute;
  top: 22px;
  left: 0;
  width: 82px;
  height: 82px;
  margin: 0;
  float: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tlc-cart-drawer .woocommerce-mini-cart-item .remove {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--tlc-color-muted, #737373) !important;
  background: transparent !important;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.tlc-cart-drawer .woocommerce-mini-cart-item .remove:hover {
  color: var(--tlc-color-ink, #202020) !important;
  background: #f4f4f4 !important;
}

.tlc-cart-drawer .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 9px;
  color: var(--tlc-color-muted, #737373);
  font-size: 0.82rem;
}

.tlc-cart-drawer .woocommerce-mini-cart-item .quantity .amount {
  color: var(--tlc-color-ink, #202020);
  font-weight: 750;
}

.tlc-cart-drawer .variation {
  display: grid;
  margin: 8px 0 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  color: var(--tlc-color-muted, #737373);
  font-size: 0.76rem;
}

.tlc-cart-drawer .variation dt,
.tlc-cart-drawer .variation dd,
.tlc-cart-drawer .variation p {
  margin: 0;
  padding: 0;
}

.tlc-cart-drawer .variation dt {
  font-weight: 700;
}

.tlc-cart-drawer .tlc-cart-item--configuration {
  border-bottom-color: #cdcdcd;
}

.tlc-cart-drawer .tlc-cart-item--addon {
  min-height: 90px;
  margin-inline: 18px 0;
  padding-top: 17px;
  padding-bottom: 17px;
  padding-left: 80px;
  background: #fafafa;
  font-size: 0.81rem;
}

.tlc-cart-drawer .tlc-cart-item--addon img {
  top: 17px;
  width: 62px;
  height: 62px;
}

.tlc-cart-drawer .tlc-pa-cart-child {
  color: var(--tlc-color-brand-strong, #d69312);
  font-weight: 800;
}

@keyframes tlc-cart-item-added {
  0% { background: rgb(247 189 69 / 28%); }
  100% { background: transparent; }
}

.tlc-cart-drawer .tlc-cart-item--added {
  animation: tlc-cart-item-added 1.4s ease-out both;
}

.tlc-cart-upsells {
  margin: 0;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--tlc-color-border, #e1e1e1);
}

.tlc-cart-upsells__heading {
  margin-bottom: 14px;
}

.tlc-cart-upsells__heading strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.tlc-cart-upsells__list {
  display: grid;
  gap: 10px;
}

.tlc-cart-upsell {
  display: grid;
  min-width: 0;
  padding: 10px 0;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #ededed;
}

.tlc-cart-upsell__media,
.tlc-cart-upsell__media img {
  display: block;
  width: 58px;
  height: 58px;
}

.tlc-cart-upsell__media img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tlc-cart-upsell__details {
  min-width: 0;
}

.tlc-cart-upsell__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tlc-color-ink, #202020);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tlc-cart-upsell__price {
  display: block;
  margin-top: 4px;
  color: var(--tlc-color-brand-strong, #b97800);
  font-size: 0.76rem;
  font-weight: 750;
}

.tlc-cart-upsell__action {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tlc-color-ink, #202020);
  border-radius: 0;
  color: var(--tlc-color-ink, #202020);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.tlc-cart-upsell__action:hover,
.tlc-cart-upsell__action.loading {
  color: var(--tlc-color-paper, #fff);
  background: var(--tlc-color-ink, #202020);
}

.tlc-cart-drawer .woocommerce-mini-cart__total {
  position: sticky;
  z-index: 3;
  bottom: 76px;
  display: flex;
  min-height: 64px;
  margin: 0;
  padding: 18px clamp(20px, 2vw, 32px);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tlc-color-border, #e1e1e1);
  background: var(--tlc-color-paper, #fff);
  box-shadow: 0 -10px 22px rgb(0 0 0 / 4%);
}

.tlc-cart-drawer .woocommerce-mini-cart__total strong {
  font-size: 0.84rem;
}

.tlc-cart-drawer .woocommerce-mini-cart__total .amount {
  color: var(--tlc-color-ink, #202020);
  font-size: 1.12rem;
  font-weight: 800;
}

.tlc-cart-drawer .woocommerce-mini-cart__buttons {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: grid;
  min-height: 76px;
  margin: 0;
  padding: 10px clamp(20px, 2vw, 32px) 14px;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  background: var(--tlc-color-paper, #fff);
}

.tlc-cart-drawer .woocommerce-mini-cart__buttons .button {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tlc-color-ink, #202020);
  border-radius: 0;
  color: var(--tlc-color-ink, #202020);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.tlc-cart-drawer .woocommerce-mini-cart__buttons .checkout {
  border-color: var(--tlc-color-brand, #f7bd45);
  background: var(--tlc-color-brand, #f7bd45);
}

.tlc-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
  color: var(--tlc-color-paper, #fff);
  border-color: var(--tlc-color-ink, #202020);
  background: var(--tlc-color-ink, #202020);
}

.tlc-cart-drawer .woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: clamp(70px, 15vh, 150px) clamp(20px, 2vw, 32px);
  color: var(--tlc-color-muted, #737373);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

@keyframes tlc-cart-trigger-added {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.14); }
}

.tlc-header-action--cart.is-added {
  animation: tlc-cart-trigger-added 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.single-product form.cart .single_add_to_cart_button {
  transition: transform 180ms ease, filter 180ms ease;
}

.single-product form.cart.tlc-cart-submit-pending .single_add_to_cart_button {
  filter: saturate(0.82);
  transform: scale(0.985);
}

/* Product add-to-cart confirmation: compact, readable and secondary to the drawer. */
.single-product .woocommerce-notices-wrapper {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
}

.single-product .woocommerce-notices-wrapper:empty {
  display: none;
}

.single-product .woocommerce-message {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: min(100%, 760px);
  min-height: 58px;
  margin: 0;
  padding: 14px 18px 14px 54px;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  border: 0;
  border-left: 3px solid var(--tlc-color-success, #367b43);
  border-radius: 0;
  color: var(--tlc-color-ink, #202020);
  background: #f5faf6;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
  font-size: 0.9rem;
  line-height: 1.45;
  animation: tlc-product-notice-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.single-product .woocommerce-message::before {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tlc-color-success, #367b43);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.single-product .woocommerce-message:focus {
  outline: 0;
}

.single-product .woocommerce-message.tlc-cart-notice--enhanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 28px;
}

.tlc-cart-notice__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tlc-cart-notice__title {
  color: var(--tlc-color-success, #367b43);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tlc-cart-notice__body {
  display: block;
}

.single-product .woocommerce-message .button,
.single-product .woocommerce-message a.wc-forward {
  min-height: 0;
  margin: 0 0 0 auto;
  padding: 5px 0;
  order: 1;
  border: 0;
  border-bottom: 1px solid currentcolor;
  border-radius: 0;
  color: var(--tlc-color-ink, #202020);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.single-product .woocommerce-message .button:hover,
.single-product .woocommerce-message a.wc-forward:hover {
  color: var(--tlc-color-brand-strong, #b97800);
  border-color: currentcolor;
  background: transparent;
}

.single-product .woocommerce-message.tlc-cart-notice--enhanced .button,
.single-product .woocommerce-message.tlc-cart-notice--enhanced a.wc-forward {
  margin: 0;
  order: initial;
  align-self: center;
}

@keyframes tlc-product-notice-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .single-product .woocommerce-notices-wrapper {
    margin-bottom: 22px;
  }

  .single-product .woocommerce-message {
    display: grid;
    width: 100%;
    padding: 14px 16px 14px 50px;
    gap: 8px;
  }

  .single-product .woocommerce-message.tlc-cart-notice--enhanced {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .woocommerce-message .button,
  .single-product .woocommerce-message a.wc-forward {
    width: fit-content;
    margin: 0;
    justify-self: start;
  }

  .tlc-cart-drawer__panel {
    width: 100vw;
    border-left: 0;
    box-shadow: none;
  }

  .tlc-cart-drawer__header {
    min-height: 84px;
    padding: 16px 18px;
  }

  .tlc-cart-drawer__header h2 {
    font-size: 1.45rem;
  }

  .tlc-cart-shipping,
  .tlc-cart-drawer .woocommerce-mini-cart {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tlc-cart-drawer .woocommerce-mini-cart-item {
    padding-right: 34px;
  }

  .tlc-cart-drawer .woocommerce-mini-cart__total {
    padding-inline: 18px;
  }

  .tlc-cart-drawer .woocommerce-mini-cart__buttons {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 390px) {
  .tlc-cart-drawer .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr;
  }

  .tlc-cart-drawer .woocommerce-mini-cart__total {
    bottom: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlc-cart-drawer__backdrop,
  .tlc-cart-drawer__panel,
  .tlc-cart-shipping__track span,
  .tlc-cart-drawer__close {
    transition-duration: 0.01ms;
  }

  .tlc-cart-drawer .tlc-cart-item--added,
  .tlc-header-action--cart.is-added,
  .single-product .woocommerce-message {
    animation: none;
  }
}
