/* TryyCart Core 1.13.3 — professional courier-style shopping-bag rail. */
:root {
  --tcw-orange: #f56416;
  --tcw-orange-dark: #d94b05;
  --tcw-navy: #0d2c57;
  --tcw-blue: #215fc0;
  --tcw-ink: #112b49;
  --tcw-muted: #60758c;
  --tcw-line: #c9d7e5;
  --tcw-surface: #f2f6fa;
  --tcw-rail-width: 76px;
  --tcw-drawer-width: min(540px, calc(100vw - 380px));
}

body.tcw-wallet-enabled {
  box-sizing: border-box;
  max-width: 100%;
  padding-right: var(--tcw-rail-width) !important;
  overflow-x: clip;
  transition: padding-right 280ms cubic-bezier(0.22, 0.75, 0.25, 1);
}

body.tcw-wallet-enabled *,
body.tcw-wallet-enabled *::before,
body.tcw-wallet-enabled *::after {
  box-sizing: border-box;
}

body.tcw-wallet-enabled > #tryycart-app,
body.tcw-wallet-enabled > .tc-wp-main,
body.tcw-wallet-enabled > .site,
body.tcw-wallet-enabled > footer {
  width: auto !important;
  max-width: 100% !important;
}

/* The legacy quick-tools/cart control is replaced by this single wallet. */
body.tcw-wallet-enabled [data-tc-side-tools] {
  display: none !important;
}

@media (min-width: 1200px) {
  body.tcw-wallet-enabled.tcw-wallet-open {
    padding-right: calc(var(--tcw-rail-width) + var(--tcw-drawer-width)) !important;
  }
}

.tcw-wallet {
  position: relative;
  z-index: 99980;
  color: var(--tcw-ink);
  font-family: inherit;
}

.tcw-rail {
  position: fixed;
  z-index: 99992;
  inset: 0 0 0 auto;
  display: block;
  width: var(--tcw-rail-width);
  min-width: var(--tcw-rail-width);
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #d6e0ea;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 58%, #edf2f7 100%);
  box-shadow: -8px 0 26px rgba(13, 44, 87, 0.13);
  color: var(--tcw-ink);
  cursor: pointer;
  font: inherit;
  isolation: isolate;
}

.admin-bar .tcw-rail {
  top: 32px;
  height: calc(100dvh - 32px);
}

.tcw-rail:focus-visible {
  outline: 3px solid var(--tcw-orange);
  outline-offset: -4px;
}

.tcw-rail::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tcw-orange), #ff9a55 45%, var(--tcw-navy));
  content: "";
}

.tcw-rail > span {
  pointer-events: none;
}

.tcw-rail-bag {
  position: absolute;
  top: 12px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  padding-bottom: 13px;
  border: 1px solid #d94b05;
  border-radius: 15px;
  background: linear-gradient(145deg, #ff7a2c, #ed570d 68%, #d94803);
  box-shadow: 0 9px 22px rgba(218, 76, 6, 0.3), inset 0 1px rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translateX(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: tcw-bag-attention 3.4s ease-in-out infinite;
}

.tcw-rail-bag svg {
  width: 35px;
  height: 35px;
}

.tcw-rail-bag::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  color: rgba(255, 255, 255, 0.96);
  content: "OPEN  ›";
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
}

.tcw-rail:hover .tcw-rail-bag,
.tcw-rail[aria-expanded="true"] .tcw-rail-bag {
  background: linear-gradient(145deg, #ff843c, #ee5c12 62%, #cf4200);
  box-shadow: 0 13px 30px rgba(218, 76, 6, 0.4), inset 0 1px rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) translateY(-3px) scale(1.025);
  animation-play-state: paused;
}

@keyframes tcw-bag-attention {
  0%, 72%, 100% { box-shadow: 0 9px 22px rgba(218, 76, 6, 0.3), inset 0 1px rgba(255, 255, 255, 0.42); }
  82% { box-shadow: 0 11px 27px rgba(218, 76, 6, 0.44), 0 0 0 5px rgba(245, 100, 22, 0.09), inset 0 1px rgba(255, 255, 255, 0.46); }
}

.tcw-rail-meter {
  position: absolute;
  inset: 88px 5px 68px;
  min-height: 170px;
}

.tcw-rail-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 45px;
  overflow: hidden;
  border: 1px solid #b9c7d5;
  border-radius: 11px;
  background: repeating-linear-gradient(to top, #f8fafc 0 17px, #e8eef4 17px 18px);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.72),
    0 7px 18px rgba(16, 45, 82, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tcw-rail-track::after {
  position: absolute;
  z-index: 1;
  inset: 6px;
  border: 1px dashed rgba(86, 109, 134, 0.2);
  border-radius: 6px;
  content: "";
}

.tcw-rail:hover .tcw-rail-track,
.tcw-rail[aria-expanded="true"] .tcw-rail-track {
  border-color: #ef8a51;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.72),
    0 9px 22px rgba(232, 82, 8, 0.18);
}

.tcw-rail-fill {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 0;
  max-height: calc(100% - 8px);
  overflow: hidden;
  border-radius: 6px;
  background: repeating-linear-gradient(to top, #ed5b16 0 13px, #c94408 13px 14px, transparent 14px 18px);
  filter: drop-shadow(0 2px 3px rgba(175, 55, 0, 0.18));
  opacity: 1;
  transition: height 520ms cubic-bezier(0.22, 0.75, 0.25, 1), opacity 180ms ease;
}

.tcw-rail-fill::before {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 50%;
  width: 14px;
  height: 6px;
  border: 1px solid rgba(163, 57, 6, 0.42);
  border-radius: 1px;
  background: #fff4e9;
  transform: translateX(-50%);
  content: "";
}

.tcw-rail-fill::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(to top, rgba(125, 42, 4, 0.35) 0 14px, transparent 14px 18px);
  content: "";
}

.tcw-rail-fill.is-empty {
  opacity: 0;
}

.tcw-rail-scale {
  position: absolute;
  inset: 0;
}

.tcw-rail-scale i {
  position: absolute;
  right: 0;
  bottom: var(--tcw-level);
  left: 51px;
  height: 0;
  border-top: 1px solid #d2dce6;
  font-style: normal;
}

.tcw-rail-scale i::before {
  position: absolute;
  top: -1px;
  left: -8px;
  width: 8px;
  height: 1px;
  background: #aeb9c6;
  content: "";
}

.tcw-rail-scale b {
  position: absolute;
  top: -7px;
  right: 0;
  padding: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #67798d;
  font-size: 7.5px;
  font-weight: 900;
  line-height: 1;
}

.tcw-rail-scale b::after {
  color: #9aa7b5;
  content: " kg";
  font-size: 6px;
}

.tcw-rail-price {
  position: absolute;
  right: 6px;
  bottom: 12px;
  left: 6px;
  display: grid;
  place-items: center;
  min-height: 43px;
  padding: 5px 3px;
  overflow: hidden;
  border: 1px solid #ffd2b8;
  border-radius: 10px;
  background: #fff;
  color: #bd4308;
  box-shadow: 0 5px 14px rgba(16, 45, 82, 0.08);
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
}

.tcw-rail-kg {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 37px;
  min-height: 34px;
  padding: 4px 2px 3px;
  border: 1px solid rgba(13, 44, 87, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tcw-navy);
  box-shadow: 0 4px 12px rgba(16, 45, 82, 0.16);
  transform: translate(-50%, -50%);
}

.tcw-rail-kg b {
  color: var(--tcw-orange-dark);
  font-size: 10px;
  line-height: 1;
}

.tcw-rail-kg small {
  margin-top: 1px;
  color: #718297;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tcw-drawer {
  position: fixed;
  z-index: 99990;
  top: 0;
  right: var(--tcw-rail-width);
  bottom: 0;
  width: var(--tcw-drawer-width);
  max-width: calc(100vw - var(--tcw-rail-width));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid #b9cadb;
  background:
    radial-gradient(circle at 100% 0, rgba(40, 101, 203, 0.12), transparent 31%),
    var(--tcw-surface);
  box-shadow: -22px 0 56px rgba(7, 30, 61, 0.2);
  visibility: hidden;
  transform: translateX(calc(100% + var(--tcw-rail-width)));
  transition:
    transform 280ms cubic-bezier(0.22, 0.75, 0.25, 1),
    visibility 280ms;
}

.admin-bar .tcw-drawer {
  top: 32px;
}

.tcw-wallet.is-open .tcw-drawer {
  visibility: visible;
  transform: translateX(0);
}

.tcw-scrim {
  position: fixed;
  z-index: 99989;
  inset: 0 var(--tcw-rail-width) 0 0;
  display: none;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: rgba(3, 20, 45, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.tcw-drawer-head {
  position: sticky;
  z-index: 6;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 116px;
  padding: 24px 25px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 130, 47, 0.28), transparent 30%),
    linear-gradient(135deg, #092850, #174b8d 68%, #2564bf);
  color: #fff;
}

.tcw-drawer-head small {
  display: block;
  margin-bottom: 5px;
  color: #ffb375;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.tcw-drawer-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tcw-drawer-head p {
  margin: 7px 0 0;
  color: #cbdcf0;
  font-size: 11px;
  line-height: 1.4;
}

.tcw-drawer-head > button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
}

.tcw-drawer-head > button:hover,
.tcw-drawer-head > button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.tcw-drawer-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 28px;
}

.tcw-panel,
.tcw-bag-dashboard {
  padding: 16px;
  border: 1px solid var(--tcw-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 50, 88, 0.07);
}

.tcw-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
}

.tcw-panel-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #fff0e7;
  color: var(--tcw-orange-dark);
  font-size: 10px;
  font-weight: 900;
}

.tcw-panel-heading small,
.tcw-bag-dashboard > header small {
  display: block;
  color: var(--tcw-orange-dark);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tcw-panel-heading h3,
.tcw-bag-dashboard > header h3 {
  margin: 3px 0 0;
  color: var(--tcw-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tcw-panel-heading p {
  margin: 5px 0 0;
  color: var(--tcw-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.tcw-destination-form {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.8fr;
  gap: 8px;
}

.tcw-destination-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.tcw-destination-form label > span {
  color: #3f5a76;
  font-size: 9px;
  font-weight: 850;
}

.tcw-destination-form :is(select, input) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid #adc0d4;
  border-radius: 9px;
  background: #fff;
  color: var(--tcw-ink);
  font: inherit;
  font-size: 11px;
}

.tcw-destination-form :is(select, input):focus {
  border-color: #3973d3;
  box-shadow: 0 0 0 3px rgba(45, 105, 202, 0.13);
  outline: none;
}

.tcw-destination-form > button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  margin-top: 2px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #ff711f, #e84c00);
  box-shadow: 0 8px 18px rgba(215, 76, 4, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.tcw-destination-form > button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.tcw-destination-form > button b {
  font-size: 15px;
}

.tcw-button-bag {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
}

.tcw-button-bag svg {
  width: 19px;
  height: 19px;
}

.tcw-service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tcw-service-option {
  position: relative;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  min-width: 0;
  min-height: 112px;
  padding: 11px;
  border: 1px solid #c5d4e3;
  border-radius: 13px;
  background: #f7fafd;
  color: var(--tcw-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.tcw-service-option:hover,
.tcw-service-option:focus-visible {
  border-color: #4e7fd5;
  outline: none;
  transform: translateY(-2px);
}

.tcw-service-option.is-selected {
  border-color: var(--tcw-orange);
  background: #fff5ee;
  box-shadow: inset 0 0 0 1px var(--tcw-orange);
}

.tcw-service-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #e7eef7;
  color: #3666b7;
  font-size: 9px;
  font-weight: 900;
}

.tcw-service-option.is-selected .tcw-service-number {
  background: var(--tcw-orange);
  color: #fff;
}

.tcw-service-copy {
  display: block;
  min-width: 0;
}

.tcw-service-copy small,
.tcw-service-copy strong,
.tcw-service-copy em {
  display: block;
}

.tcw-service-copy small {
  color: #52719a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tcw-service-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.tcw-service-copy em {
  margin-top: 4px;
  color: var(--tcw-muted);
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.35;
}

.tcw-service-price {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid #d7e1eb;
}

.tcw-service-price small {
  color: var(--tcw-muted);
  font-size: 8px;
}

.tcw-service-price b {
  color: var(--tcw-blue);
  font-size: 13px;
}

.tcw-service-price i {
  padding: 3px 5px;
  border-radius: 99px;
  background: #fff0e6;
  color: #bf4809;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.tcw-plan-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.tcw-plan-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 112px;
  padding: 10px 5px;
  border: 1px solid #bfd0e0;
  border-radius: 13px;
  background: #f5f8fb;
  color: var(--tcw-ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.tcw-plan-option:hover,
.tcw-plan-option:focus-visible {
  border-color: #4e7fd5;
  outline: none;
  transform: translateY(-2px);
}

.tcw-plan-option.is-selected {
  border-color: var(--tcw-orange);
  background: #fff3ea;
  box-shadow: inset 0 0 0 1px var(--tcw-orange);
}

.tcw-plan-option.is-unavailable {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.55;
}

.tcw-plan-bag {
  position: relative;
  display: block;
  width: 31px;
  height: 29px;
  border: 2px solid #3869c6;
  border-top: 0;
  border-radius: 3px 3px 10px 10px;
}

.tcw-plan-bag::before {
  position: absolute;
  top: -8px;
  left: 8px;
  width: 12px;
  height: 10px;
  border: 2px solid #3869c6;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.tcw-plan-option.is-selected .tcw-plan-bag,
.tcw-plan-option.is-selected .tcw-plan-bag::before {
  border-color: var(--tcw-orange-dark);
}

.tcw-plan-option strong {
  font-size: 12px;
}

.tcw-plan-option b {
  max-width: 100%;
  overflow: hidden;
  color: var(--tcw-blue);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcw-plan-option small {
  color: var(--tcw-muted);
  font-size: 7.5px;
  line-height: 1.25;
}

.tcw-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px;
  border: 1px dashed #b8cadc;
  border-radius: 11px;
  background: #f4f8fc;
  color: var(--tcw-muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.tcw-bag-dashboard[hidden] {
  display: none !important;
}

.tcw-bag-dashboard {
  border-color: #aac0d8;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ff7424, #306bd1) border-box;
}

.tcw-bag-dashboard > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #d6e1ec;
}

.tcw-bag-dashboard > header > span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 9px;
  background: #fff0e7;
  color: var(--tcw-orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.tcw-weight-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.tcw-weight-summary article {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d3dfeb;
  border-radius: 9px;
  background: #f7fafd;
}

.tcw-weight-summary article.is-orange {
  border-color: #ffd0b2;
  background: #fff4eb;
}

.tcw-weight-summary article.is-navy {
  border-color: var(--tcw-navy);
  background: var(--tcw-navy);
}

.tcw-weight-summary small,
.tcw-weight-summary strong {
  display: block;
}

.tcw-weight-summary small {
  color: var(--tcw-muted);
  font-size: 7.5px;
  line-height: 1.25;
}

.tcw-weight-summary strong {
  margin-top: 4px;
  color: var(--tcw-ink);
  font-size: 10px;
  white-space: nowrap;
}

.tcw-weight-summary .is-navy :is(small, strong) {
  color: #fff;
}

.tcw-weight-rule {
  margin: 8px 0 13px;
  color: var(--tcw-muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.tcw-service-groups {
  display: grid;
  gap: 8px;
}

.tcw-service-group {
  padding: 12px;
  border: 1px solid #ccd9e5;
  border-radius: 13px;
  background: #f9fbfd;
}

.tcw-service-group > header,
.tcw-service-group > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tcw-service-group > header small,
.tcw-service-group > header h4 {
  display: block;
  margin: 0;
}

.tcw-service-group > header small {
  color: var(--tcw-muted);
  font-size: 7.5px;
}

.tcw-service-group > header h4 {
  margin-top: 2px;
  color: var(--tcw-ink);
  font-size: 12px;
}

.tcw-service-group > header > span {
  padding: 5px 7px;
  border-radius: 99px;
  background: #e7eef7;
  color: #315c9f;
  font-size: 8px;
  font-weight: 850;
}

.tcw-thumbnails {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  margin: 9px 0;
  padding: 6px;
  border: 1px dashed #c5d4e3;
  border-radius: 10px;
  background: #fff;
}

.tcw-thumbnails > small {
  color: #8394a7;
  font-size: 8.5px;
}

.tcw-empty-package {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #eef3f8;
  color: #68809a;
}

.tcw-empty-package svg {
  width: 26px;
  height: 26px;
}

.tcw-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: visible;
  border: 1px solid #d0dce7;
  border-radius: 9px;
  background: #f4f7fa;
}

.tcw-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.tcw-thumbnail > b {
  color: #5d738b;
  font-size: 7px;
}

.tcw-thumbnail > em {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--tcw-orange);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.tcw-group-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.tcw-group-metrics span {
  padding: 6px;
  border-radius: 7px;
  background: #edf3f8;
  color: var(--tcw-muted);
  font-size: 7px;
}

.tcw-group-metrics b {
  display: block;
  margin-top: 2px;
  color: var(--tcw-ink);
  font-size: 8.5px;
}

.tcw-service-group > footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #d8e2eb;
}

.tcw-service-group > footer span {
  color: var(--tcw-muted);
  font-size: 8.5px;
}

.tcw-service-group > footer strong {
  color: var(--tcw-blue);
  font-size: 11px;
}

.tcw-declared {
  display: block;
  margin-top: 7px;
  color: #7a6428;
  font-size: 7.5px;
  line-height: 1.4;
}

.tcw-declared[hidden] {
  display: none !important;
}

.tcw-totals {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #c8d7e5;
  border-radius: 12px;
}

.tcw-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #dce5ed;
  background: #fff;
}

.tcw-totals > div:last-child {
  border-bottom: 0;
}

.tcw-totals span {
  color: var(--tcw-muted);
  font-size: 8.5px;
}

.tcw-totals b {
  color: var(--tcw-ink);
  font-size: 10px;
}

.tcw-totals .tcw-grand-total {
  background: linear-gradient(120deg, #0d2d59, #1c4b87);
}

.tcw-grand-total span,
.tcw-grand-total strong {
  color: #fff;
}

.tcw-grand-total span small {
  display: block;
  margin-top: 3px;
  color: #c6d7eb;
  font-size: 7px;
}

.tcw-grand-total strong {
  font-size: 15px;
}

.tcw-status {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cbd9e7;
  border-radius: 11px;
  background: #e9f0f7;
  color: #435b74;
  font-size: 10px;
  line-height: 1.45;
}

.tcw-status[data-status="ready"] {
  border-color: #a8ddca;
  background: #e5f8f0;
  color: #11684f;
}

.tcw-status[data-status="service"],
.tcw-status[data-status="bag"] {
  border-color: #b7cced;
  background: #eaf2ff;
  color: #285caa;
}

.tcw-status[data-status="warning"],
.tcw-status[data-status="pending"] {
  border-color: #efd18d;
  background: #fff8df;
  color: #765b15;
}

.tcw-status[data-status="error"],
.tcw-status[data-status="invalid_format"],
.tcw-status[data-status="not_served"],
.tcw-status[data-status="no_rates"],
.tcw-status[data-status="unavailable"] {
  border-color: #efb7a8;
  background: #fff0eb;
  color: #973a1d;
}

.tcw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tcw-actions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 9px;
  border: 1px solid #abc0d6;
  border-radius: 10px;
  background: #fff;
  color: #17427f;
  font-size: 10.5px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.tcw-actions a.is-primary {
  border-color: var(--tcw-orange);
  background: var(--tcw-orange);
  color: #fff;
}

.tcw-wallet.is-loading .tcw-drawer::after {
  position: fixed;
  top: 3px;
  right: var(--tcw-rail-width);
  width: var(--tcw-drawer-width);
  max-width: calc(100vw - var(--tcw-rail-width));
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff9a53, #fff, #ff9a53, transparent);
  background-size: 180% 100%;
  content: "";
  animation: tcw-loading 1.1s linear infinite;
}

@keyframes tcw-loading {
  to { background-position: -180% 0; }
}

/*
 * Homepage sequence:
 * hero -> compact proof line (without country chips) -> shopping-bag launcher.
 * The explicit flex orders override the theme's earlier marquee position.
 */
body.tcw-wallet-enabled #tc-page-home > .brand-marquee.tc-proof-marquee {
  order: 15 !important;
  min-height: 48px !important;
  padding-block: 4px !important;
}

body.tcw-wallet-enabled #tc-page-home .tc-proof-marquee .tc-country-chip {
  display: none !important;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line > .brand-marquee-track {
  animation-duration: 36s;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-proof-marquee-group {
  gap: 8px;
  padding-right: 12px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line :is(.tc-worldwide-block, .tc-proof-block) {
  gap: 5px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line :is(.tc-marquee-lead, .tc-proof-chip, .tc-marquee-trust) {
  min-height: 34px;
  border-radius: 8px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-lead {
  min-width: 146px;
  padding: 4px 9px 4px 7px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-proof-chip {
  min-width: 78px;
  padding: 3px 7px 3px 5px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-proof-chip:nth-child(4) {
  min-width: 96px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line :is(.tc-marquee-lead > .tc-line-icon, .tc-proof-chip > .tc-line-icon, .tc-proof-symbol) {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 6px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line :is(.tc-marquee-lead, .tc-proof-chip) .tc-line-icon svg {
  width: 12px;
  height: 12px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-copy b,
body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-lead .tc-marquee-copy b {
  font-size: 0.64rem;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-copy small,
body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-lead .tc-marquee-copy small {
  font-size: 0.45rem;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-divider {
  height: 27px;
}

body.tcw-wallet-enabled #tc-page-home .tcw-home-proof-line .tc-marquee-trust {
  min-width: 208px;
  padding-block: 3px;
}

.tcw-launcher {
  order: 20 !important;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 15px;
  width: min(1180px, calc(100% - 38px));
  margin: 10px auto 0;
  padding: 12px 15px;
  border: 1px solid #cad8e5;
  border-left: 4px solid var(--tcw-orange);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 112, 30, 0.12), transparent 29%),
    linear-gradient(110deg, #fff, #f6f9fc);
  box-shadow: 0 10px 28px rgba(14, 48, 86, 0.08);
}

.tcw-launcher-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tcw-bag-mark {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff792b, #e64b00);
  box-shadow: 0 10px 24px rgba(221, 76, 5, 0.23);
  color: #fff;
}

.tcw-bag-mark svg {
  width: 29px;
  height: 29px;
}

.tcw-launcher-copy small {
  display: block;
  color: var(--tcw-orange-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tcw-launcher-copy h2 {
  margin: 3px 0 0;
  color: var(--tcw-navy);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tcw-launcher-copy p {
  margin: 3px 0 0;
  color: var(--tcw-muted);
  font-size: 9.5px;
  line-height: 1.3;
}

.tcw-launcher .tcw-destination-form {
  grid-template-columns: 1fr 1fr 0.78fr auto;
  align-items: end;
}

.tcw-launcher .tcw-destination-form > button {
  grid-column: auto;
  min-width: 138px;
  min-height: 40px;
  margin: 0;
}

.tcw-launcher .tcw-destination-form :is(select, input) {
  min-height: 40px;
  padding-block: 6px;
}

@media (max-width: 1199px) {
  :root {
    --tcw-rail-width: 72px;
    --tcw-drawer-width: min(540px, calc(100vw - var(--tcw-rail-width)));
  }

  body.tcw-wallet-enabled.tcw-wallet-open {
    overflow: hidden;
  }

  .tcw-scrim {
    display: block;
  }

  .tcw-wallet.is-open .tcw-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .tcw-launcher {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 782px) {
  .admin-bar .tcw-rail {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  .admin-bar .tcw-drawer {
    top: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --tcw-rail-width: 66px;
    --tcw-drawer-width: calc(100vw - var(--tcw-rail-width));
  }

  .tcw-rail-bag {
    top: 12px;
    width: 48px;
    height: 58px;
    padding-bottom: 12px;
    border-radius: 13px;
  }

  .tcw-rail-bag svg {
    width: 30px;
    height: 30px;
  }

  .tcw-rail-meter {
    inset: 82px 4px 62px;
  }

  .tcw-rail-track {
    left: 3px;
    width: 37px;
  }

  .tcw-rail-scale i {
    left: 42px;
  }

  .tcw-rail-scale i::before {
    left: -6px;
    width: 6px;
  }

  .tcw-rail-scale b {
    padding: 2px;
    font-size: 7.5px;
  }

  .tcw-rail-scale b::after {
    display: none;
  }

  .tcw-rail-price {
    right: 4px;
    bottom: 10px;
    left: 4px;
    min-height: 40px;
    padding: 5px 2px;
    font-size: 7px;
  }

  .tcw-rail-kg {
    width: 30px;
    min-height: 31px;
    padding-inline: 1px;
  }

  .tcw-rail-kg b {
    font-size: 8.5px;
  }

  .tcw-drawer-head {
    min-height: 103px;
    padding: 19px 16px;
  }

  .tcw-drawer-head h2 {
    font-size: 24px;
  }

  .tcw-drawer-body {
    padding: 12px 11px 22px;
  }

  .tcw-panel,
  .tcw-bag-dashboard {
    padding: 13px;
    border-radius: 15px;
  }

  .tcw-service-options {
    grid-template-columns: 1fr;
  }

  .tcw-service-option {
    min-height: 102px;
  }

  .tcw-weight-summary {
    grid-template-columns: 1fr 1fr;
  }

  .tcw-launcher {
    width: calc(100% - 22px);
    margin-top: 8px;
    padding: 12px;
  }

  .tcw-launcher .tcw-destination-form {
    grid-template-columns: 1fr 1fr;
  }

  .tcw-launcher .tcw-destination-form > button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  :root {
    --tcw-rail-width: 60px;
  }

  .tcw-rail-meter {
    right: 4px;
    left: 4px;
  }

  .tcw-rail-track {
    width: 32px;
  }

  .tcw-rail-scale i {
    left: 36px;
  }

  .tcw-destination-form,
  .tcw-launcher .tcw-destination-form {
    grid-template-columns: 1fr;
  }

  .tcw-destination-form > button,
  .tcw-launcher .tcw-destination-form > button {
    grid-column: 1;
  }

  .tcw-plan-options {
    grid-template-columns: 1fr 1fr;
  }

  .tcw-plan-option {
    min-height: 102px;
  }

  .tcw-actions {
    grid-template-columns: 1fr;
  }

  .tcw-launcher-copy {
    align-items: flex-start;
  }

  .tcw-bag-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .tcw-bag-mark svg {
    width: 31px;
    height: 31px;
  }

  .tcw-launcher-copy h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tcw-wallet-enabled,
  .tcw-drawer,
  .tcw-scrim,
  .tcw-rail-fill,
  .tcw-service-option,
  .tcw-plan-option {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .tcw-rail-bag,
  .tcw-wallet.is-loading .tcw-drawer::after {
    animation: none;
  }
}
