:root {
  --bg: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(245, 249, 255, 0.86);
  --ink: #111827;
  --muted: #566176;
  --line: rgba(111, 132, 174, 0.28);
  --primary: #315ee8;
  --primary-dark: #173bb8;
  --accent: #e65778;
  --glass-line: rgba(255, 255, 255, 0.72);
}

body {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(226, 244, 255, 0.94), rgba(247, 247, 255, 0.94) 34%, rgba(240, 255, 250, 0.92) 68%, rgba(255, 243, 246, 0.92)),
    #f5f8ff;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(246, 249, 255, 0.72);
  box-shadow: 0 16px 44px rgba(46, 59, 111, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
}

.service-strip {
  color: #fff;
  background: linear-gradient(100deg, #2456db 0%, #5d5fe9 42%, #8058d9 70%, #cf527f 100%);
}

.header-main {
  grid-template-columns: minmax(210px, 0.62fr) minmax(250px, 1fr) auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(105deg, #2458db 0%, #506bea 35%, #745fe6 67%, #c35691 100%);
}

.search-box input {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 12px 30px rgba(29, 39, 118, 0.13);
  backdrop-filter: blur(12px) saturate(140%);
}

.category-nav,
.proof-panel,
.trust-row span,
.hero-studio,
.hero-order-card,
.product-card,
.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card,
.upload-box,
.design-choice label,
.mobile-nav,
.vc-template-card,
.designer-sidebar,
.designer-stage,
.designer-toolbar {
  border-color: var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.58)),
    rgba(240, 247, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(115, 135, 181, 0.08),
    0 20px 54px rgba(41, 56, 112, 0.13);
  backdrop-filter: blur(16px) saturate(145%);
}

.category-nav {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.primary-action,
.cart-action {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 44%),
    linear-gradient(112deg, #2458db, #655de7 58%, #a755c7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 15px 34px rgba(49, 74, 190, 0.25);
}

.secondary-action,
.glass-action,
.icon-button {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 255, 0.76));
  color: #2347bd;
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(37, 58, 120, 0.12);
}

.summary-head,
.bulk-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.23), transparent 42%),
    linear-gradient(112deg, #2458db 0%, #5a62e6 48%, #b44f9a 100%);
}

.product-card:nth-child(4n + 1) { border-color: rgba(57, 126, 231, 0.3); }
.product-card:nth-child(4n + 2) { border-color: rgba(35, 170, 154, 0.32); }
.product-card:nth-child(4n + 3) { border-color: rgba(226, 87, 120, 0.3); }
.product-card:nth-child(4n) { border-color: rgba(132, 82, 204, 0.3); }

.product-visual.image-thumb {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 255, 0.72));
}

.product-visual.image-thumb img,
.mockup-stage img {
  display: block;
  max-width: 100%;
  height: auto;
}

.catalog-section,
.builder-section,
.workflow-section,
.bulk-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.product-card,
.vc-template-card,
.company-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

#cartButton {
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  overflow: hidden;
}

#cartButton svg {
  width: 19px;
  height: 19px;
}

#cartCount {
  top: 3px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #e65778;
  padding: 0 3px;
  font-size: 0.61rem;
  line-height: 1;
}

.header-actions {
  min-width: 0;
  max-width: 100%;
}

.drawer-card {
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 18px;
}

.drawer-head .icon-button { flex: 0 0 44px; }

@media (max-width: 1240px) {
  .header-actions .utility-link { display: none; }
}

@media (max-width: 900px) {
  .header-main,
  .vc-header .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }

  .header-actions {
    justify-content: flex-end;
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .hero-section,
  .catalog-section,
  .builder-section,
  .workflow-section,
  .bulk-section {
    width: min(100% - 24px, 720px);
    max-width: none;
  }

  .header-main,
  .vc-header .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    width: auto;
    overflow: visible;
  }

  .header-actions .primary-action { display: none; }

  .mobile-nav {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .service-strip {
    gap: 24px;
    padding-inline: 14px;
  }

  .service-strip span:nth-child(n + 3) { display: none; }
  .header-main { padding-inline: 12px; }

  .drawer-card {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
}

body.payment-open {
  overflow: hidden;
}

.payment-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 50, 0.48);
  backdrop-filter: blur(10px) saturate(125%);
}

.payment-dialog {
  position: relative;
  display: grid;
  width: min(510px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 244, 255, 0.87)),
    rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 34px 90px rgba(18, 26, 76, 0.3);
  padding: clamp(18px, 3vw, 26px);
  backdrop-filter: blur(24px) saturate(160%);
}

.payment-dialog-head,
.payment-total-row,
.payment-brand-line,
.payment-security-row {
  display: flex;
  align-items: center;
}

.payment-dialog-head {
  justify-content: space-between;
  gap: 16px;
}

.payment-dialog-head span {
  color: #315ee8;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payment-dialog-head h2 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(1.32rem, 4vw, 1.75rem);
  line-height: 1.12;
}

.payment-total-row {
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(80, 102, 170, 0.16);
  border-radius: 12px;
  background: rgba(239, 245, 255, 0.75);
  padding: 13px 15px;
}

.payment-total-row span {
  min-width: 0;
  overflow: hidden;
  color: #59657a;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-total-row strong {
  flex: 0 0 auto;
  color: #173bb8;
  font-size: 1.22rem;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid rgba(80, 102, 170, 0.16);
  border-radius: 12px;
  background: rgba(226, 235, 250, 0.7);
  padding: 5px;
}

.payment-tabs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #59657a;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.payment-tabs button.active {
  background: rgba(255, 255, 255, 0.96);
  color: #173bb8;
  box-shadow: 0 8px 20px rgba(35, 55, 120, 0.12);
}

.payment-panel {
  display: grid;
  gap: 13px;
}

.payment-panel p,
.payment-panel small {
  margin: 0;
  color: #59657a;
  line-height: 1.5;
}

.payment-brand-line {
  gap: 12px;
}

.payment-brand-line strong,
.payment-brand-line small {
  display: block;
}

.payment-brand-line strong {
  color: #111827;
  font-size: 1.08rem;
}

.payment-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #315ee8, #725ee4);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
  box-shadow: 0 12px 25px rgba(49, 94, 232, 0.24);
}

.wallet-topup-trigger {
  display: inline-flex;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(49, 94, 232, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(229, 238, 255, 0.82));
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(35, 55, 120, 0.12);
  color: #173bb8;
  padding: 5px 13px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.wallet-topup-trigger:hover {
  border-color: rgba(49, 94, 232, 0.42);
  background: #fff;
  transform: translateY(-1px);
}

.wallet-button-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wallet-button-main span,
.wallet-button-main strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.wallet-button-main strong {
  color: #111827;
}

.wallet-offer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #e52f62;
  box-shadow: 0 5px 12px rgba(229, 47, 98, 0.25);
  color: #fff;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1.1;
}

.wallet-brand-mark {
  background: linear-gradient(145deg, #173bb8, #0f9f91);
}

.wallet-credit-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 159, 145, 0.26);
  border-radius: 12px;
  background: rgba(231, 250, 247, 0.88);
  padding: 13px 15px;
}

.wallet-credit-box span {
  color: #4f5c73;
  font-size: 0.8rem;
  font-weight: 850;
}

.wallet-credit-box strong {
  color: #08766f;
  font-size: 1.2rem;
}

.wallet-offer-pop {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(229, 47, 98, 0.2);
  border-radius: 10px;
  background: rgba(255, 238, 244, 0.9);
  padding: 10px 12px;
}

.wallet-offer-pop strong {
  flex: 0 0 auto;
  border-radius: 5px;
  background: #e52f62;
  color: #fff;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.wallet-offer-pop span {
  color: #6f2440;
  font-size: 0.8rem;
  font-weight: 850;
}

.wallet-payment-embed {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(49, 94, 232, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px;
}

.wallet-payment-embed form {
  display: grid;
  width: 100%;
  place-items: center;
}

.wallet-payment-embed .razorpay-payment-button {
  display: block !important;
  width: 100% !important;
}

.wallet-payment-embed .PaymentButton,
.wallet-payment-embed input[type="submit"],
.wallet-payment-embed button {
  display: flex !important;
  width: 100% !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #315ee8, #173bb8) !important;
  box-shadow: 0 14px 28px rgba(49, 94, 232, 0.22) !important;
  color: #fff !important;
  cursor: pointer !important;
  font: inherit !important;
  font-weight: 900 !important;
}

.wallet-verification-note {
  border-radius: 9px;
  background: rgba(255, 248, 225, 0.9);
  color: #73510d !important;
  padding: 10px 12px;
  text-align: center;
}

.product-card {
  align-content: start;
  gap: 12px;
  cursor: default;
}

.product-card h3 {
  margin-top: 0;
}

.product-card-copy {
  min-height: 92px;
}

.product-card .product-meta {
  margin-top: auto;
}

.product-card .product-meta > span:first-child {
  display: grid;
  gap: 2px;
}

.product-card .product-meta strong {
  color: #111827;
  font-size: 1rem;
}

.product-card-order {
  display: grid;
  grid-template-columns: minmax(66px, 0.7fr) minmax(70px, 0.8fr) minmax(96px, 1.15fr);
  gap: 7px;
  align-items: end;
}

.product-card-order label {
  display: grid;
  gap: 4px;
  color: #59657a;
  font-size: 0.7rem;
  font-weight: 900;
}

.product-card-order input,
.product-card-order button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.product-card-order input {
  border: 1px solid rgba(80, 102, 170, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 8px;
  font: inherit;
  font-weight: 850;
}

.product-card-order button {
  padding: 0 8px;
  font-size: 0.76rem;
}

.cart-item-head,
.cart-item-detail,
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-head > strong:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-detail {
  margin-top: 9px;
  border-radius: 8px;
  background: rgba(239, 245, 255, 0.8);
  padding: 8px 10px;
  color: #59657a;
  font-size: 0.8rem;
}

.cart-item-detail strong {
  color: #173bb8;
}

.cart-remove-button {
  min-height: 34px;
  margin-top: 9px;
  border: 1px solid rgba(229, 47, 98, 0.2);
  border-radius: 7px;
  background: rgba(255, 238, 244, 0.86);
  color: #a51f49;
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.cart-total-row {
  border-top: 1px solid rgba(80, 102, 170, 0.16);
  padding: 14px 2px 2px;
  color: #59657a;
  font-weight: 850;
}

.cart-total-row strong {
  color: #173bb8;
  font-size: 1.22rem;
}

.shared-cart-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.shared-cart-trigger strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: #e52f62;
  padding-inline: 4px;
  color: #fff;
  font-size: 0.68rem;
}

.shared-add-cart,
.wallet-payment-shortcut {
  width: 100%;
}

.wallet-payment-shortcut {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(15, 159, 145, 0.25);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(238, 255, 252, 0.98), rgba(220, 245, 255, 0.9));
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(35, 55, 120, 0.1);
  color: #08766f;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.wallet-payment-shortcut strong {
  border-radius: 5px;
  background: #e52f62;
  color: #fff;
  padding: 3px 7px;
  font-size: 0.66rem;
}

.wallet-payment-shortcut.compact {
  width: auto;
  min-height: 44px;
  white-space: nowrap;
}

.template-actions .wallet-payment-shortcut {
  grid-column: 1 / -1;
}

.shared-cart-drawer .drawer-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
}

.razorpay-amount-box,
.upi-amount-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(49, 94, 232, 0.22);
  border-radius: 12px;
  background: rgba(235, 241, 255, 0.88);
  padding: 13px 15px;
}

.razorpay-amount-box span,
.upi-amount-banner span {
  color: #4f5c73;
  font-size: 0.8rem;
  font-weight: 850;
}

.razorpay-amount-box strong,
.upi-amount-banner strong {
  flex: 0 0 auto;
  color: #173bb8;
  font-size: 1.2rem;
}

.upi-qr-frame {
  display: grid;
  width: min(260px, 76vw);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(80, 102, 170, 0.18);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 35px rgba(35, 55, 120, 0.12);
}

.upi-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upi-qr-empty {
  display: grid;
  max-width: 190px;
  gap: 8px;
  color: #59657a;
  text-align: center;
}

.upi-qr-empty strong {
  color: #173bb8;
  font-size: 1.35rem;
}

.upi-payee {
  color: #111827;
  text-align: center;
}

.upi-qr-id {
  color: #173bb8 !important;
  font-weight: 900;
  text-align: center;
}

.upi-poster-details {
  border: 1px solid rgba(80, 102, 170, 0.18);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.9);
  overflow: hidden;
}

.upi-poster-details summary {
  min-height: 44px;
  padding: 12px 14px;
  color: #173bb8;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.upi-poster-details img {
  display: block;
  width: min(300px, calc(100% - 28px));
  height: auto;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.upi-poster-details small {
  display: block;
  padding: 0 14px 14px;
  text-align: center;
}

.upi-id-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(80, 102, 170, 0.18);
  border-radius: 12px;
  background: rgba(239, 245, 255, 0.78);
  padding: 15px;
}

.upi-id-box span {
  color: #59657a;
  font-size: 0.76rem;
  font-weight: 900;
}

.upi-id-box strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #173bb8;
  font-size: 1.08rem;
}

.payment-panel button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.48;
  box-shadow: none;
}

.payment-config-note {
  text-align: center;
}

.payment-feedback {
  min-height: 20px;
  margin: 0;
  color: #08766f;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.payment-security-row {
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(80, 102, 170, 0.14);
  padding-top: 14px;
}

.payment-security-row span {
  color: #657086;
  font-size: 0.69rem;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 520px) {
  .payment-sheet {
    align-items: end;
    padding: 0;
  }

  .payment-dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 22px 22px 0 0;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  }

  .payment-tabs button {
    min-height: 40px;
    font-size: 0.7rem;
  }

  .wallet-topup-trigger {
    min-height: 50px;
    padding-inline: 11px;
  }

  .product-card-order {
    grid-template-columns: 70px 1fr;
  }

  .product-card-order [data-card-add] {
    grid-column: 1 / -1;
  }

  .wallet-payment-shortcut.compact span {
    display: none;
  }

  .payment-security-row span {
    font-size: 0.62rem;
  }
}

/* Direct lanyard and holder customizer */
.accessory-customizer {
  display: grid;
  width: min(1480px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: start;
  margin: 24px auto 72px;
}

.accessory-editor-stage,
.accessory-control-panel {
  border: 1px solid rgba(76, 98, 173, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(30, 53, 124, 0.1), inset 0 1px 0 #fff;
}

.accessory-editor-stage {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.accessory-editor-head {
  display: grid;
  gap: 6px;
}

.accessory-editor-head > span,
.accessory-control-label {
  color: #315ee8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.accessory-editor-head h2 {
  margin: 0;
  color: #101629;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  letter-spacing: 0;
}

.accessory-editor-head p {
  max-width: 62ch;
  margin: 0;
  color: #5b6578;
  line-height: 1.55;
}

.accessory-control-panel {
  top: 92px;
  gap: 16px;
  padding: 20px;
}

@media (min-width: 981px) {
  .accessory-control-panel {
    max-height: calc(100dvh - 116px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(49, 94, 232, 0.55) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .accessory-control-panel::-webkit-scrollbar {
    width: 8px;
  }

  .accessory-control-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .accessory-control-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(49, 94, 232, 0.5);
    background-clip: padding-box;
  }

  .accessory-control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 94, 232, 0.72);
    background-clip: padding-box;
  }
}

.accessory-control-section {
  display: grid;
  gap: 10px;
}

.accessory-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.accessory-size-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 68px;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(76, 98, 173, 0.2);
  border-radius: 7px;
  background: rgba(248, 250, 255, 0.92);
  padding: 10px;
  color: #151b2d;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.accessory-size-option:hover,
.accessory-size-option.active {
  border-color: #315ee8;
  background: #f2f6ff;
  box-shadow: inset 0 0 0 1px #315ee8, 0 8px 18px rgba(49, 94, 232, 0.1);
}

.accessory-size-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.accessory-size-option strong,
.accessory-size-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.accessory-size-option strong {
  font-size: 0.8rem;
}

.accessory-size-option span {
  color: #667085;
  font-size: 0.67rem;
  font-weight: 800;
}

.accessory-color-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 7px;
}

.accessory-color-option {
  display: grid;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(76, 98, 173, 0.16);
  border-radius: 7px;
  background: rgba(250, 251, 255, 0.94);
  padding: 7px 5px;
  color: #273044;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.accessory-color-option:hover {
  transform: translateY(-1px);
}

.accessory-color-option.active {
  border-color: #315ee8;
  box-shadow: inset 0 0 0 1px #315ee8, 0 7px 16px rgba(49, 94, 232, 0.12);
}

.accessory-color-option > span {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.48);
}

.accessory-color-option small {
  width: 100%;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accessory-custom-color {
  display: grid;
  grid-template-columns: minmax(110px, 0.72fr) minmax(0, 1.28fr);
  gap: 8px;
}

.accessory-custom-color label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #596174;
  font-size: 0.7rem;
  font-weight: 900;
}

.accessory-custom-color input[type="color"] {
  width: 100%;
  height: 45px;
  border: 1px solid rgba(76, 98, 173, 0.22);
  border-radius: 7px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}

.accessory-custom-color input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 4px;
}

.accessory-text-color {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.accessory-text-color > label:first-child {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #596174;
  font-size: 0.7rem;
  font-weight: 900;
}

.accessory-text-color-input {
  display: grid;
  min-height: 45px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(76, 98, 173, 0.22);
  border-radius: 7px;
  background: #fff;
  padding: 4px 10px 4px 4px;
}

.accessory-text-color-input input[type="color"] {
  width: 54px;
  height: 35px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.accessory-text-color-input input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 4px;
}

.accessory-text-color-input output {
  color: #273044;
  font-size: 0.72rem;
  font-weight: 900;
}

.accessory-text-color-auto {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(76, 98, 173, 0.2);
  border-radius: 7px;
  background: #f8faff;
  padding: 8px 10px;
  color: #273044;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
}

.accessory-text-color-auto input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #315ee8;
}

.accessory-details-grid label:nth-child(-n + 4) {
  grid-column: auto;
}

.accessory-details-grid label:nth-child(-n + 2) {
  grid-column: 1 / -1;
}

.accessory-details-grid > .accessory-wide-field {
  grid-column: 1 / -1;
}

.accessory-company-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.accessory-company-field > label {
  color: #596174;
  font-size: 0.78rem;
  font-weight: 900;
}

.accessory-company-tools {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(180px, 1.28fr);
  gap: 8px;
  align-items: end;
}

.accessory-fit-toggle {
  display: flex !important;
  min-height: 46px;
  grid-column: auto !important;
  flex-direction: row;
  align-items: center;
  gap: 9px !important;
  border: 1px solid rgba(76, 98, 173, 0.2);
  border-radius: 7px;
  background: #f8faff;
  padding: 9px 11px;
  cursor: pointer;
}

.accessory-fit-toggle input {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #aab4c8;
  border-radius: 999px;
  background: #dce2ed;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.accessory-fit-toggle input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(16, 24, 40, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.accessory-fit-toggle input:checked {
  border-color: #315ee8;
  background: #315ee8;
}

.accessory-fit-toggle input:checked::after {
  transform: translateX(16px);
}

.accessory-fit-toggle span {
  color: #273044;
  font-size: 0.7rem;
  font-weight: 900;
}

.accessory-repeat-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  border: 0;
  padding: 0;
}

.accessory-repeat-field[hidden] {
  display: none;
}

.accessory-repeat-field legend {
  padding: 0;
  color: #596174;
  font-size: 0.68rem;
  font-weight: 900;
}

.accessory-repeat-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(76, 98, 173, 0.2);
  border-radius: 7px;
  background: #f3f6fc;
  padding: 4px;
}

.accessory-repeat-options label {
  position: relative;
  display: block !important;
  grid-column: auto !important;
  cursor: pointer;
}

.accessory-repeat-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.accessory-repeat-options span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #4e596e;
  font-size: 0.74rem;
  font-weight: 950;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.accessory-repeat-options input:checked + span {
  border-color: rgba(49, 94, 232, 0.18);
  background: #fff;
  color: #2452d4;
  box-shadow: 0 3px 10px rgba(49, 94, 232, 0.12);
}

.accessory-details-grid label > small {
  justify-self: end;
  color: #315ee8;
  font-size: 0.62rem;
  font-weight: 900;
}

.accessory-details-grid output {
  justify-self: end;
  color: #315ee8;
  font-size: 0.68rem;
}

.accessory-details-grid input[type="range"] {
  width: 100%;
  accent-color: #315ee8;
}

.custom-accessory-preview {
  display: grid;
  min-height: 390px;
  align-content: center;
  gap: 20px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(78, 103, 183, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(74, 98, 170, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 98, 170, 0.055) 1px, transparent 1px),
    #f8faff;
  background-size: 24px 24px;
  padding: clamp(18px, 4vw, 38px);
}

.lanyard-editor-ruler {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  color: #657086;
  font-size: 0.7rem;
  font-weight: 850;
}

.lanyard-editor-ruler::before,
.lanyard-editor-ruler::after {
  height: 1px;
  flex: 1;
  background: rgba(74, 98, 170, 0.28);
  content: "";
}

.lanyard-strip-space {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  padding-right: 42px;
}

.lanyard-print-strip {
  display: flex;
  width: var(--strip-length);
  max-width: 100%;
  height: var(--strip-height);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 3px;
  background: var(--strip-color);
  color: var(--strip-text);
  box-shadow: 0 16px 28px rgba(31, 42, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lanyard-print-unit {
  display: flex;
  min-width: 0;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.65vw, 8px);
  overflow: hidden;
  padding: 0 clamp(3px, 0.7vw, 8px);
}

.lanyard-boundary-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-inline: clamp(3px, 0.45vw, 6px);
}

.lanyard-boundary-logo img,
.lanyard-logo-placeholder {
  flex: 0 0 auto;
  max-width: min(calc(var(--strip-height) - 8px), 48px);
  max-height: calc(var(--strip-height) - 8px);
  object-fit: contain;
}

.lanyard-logo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--strip-contrast);
  font-size: 0.42rem;
  font-weight: 950;
}

.lanyard-print-unit b {
  display: block;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
  overflow: hidden;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lanyard-width-label {
  position: absolute;
  right: 0;
  display: grid;
  height: var(--strip-height);
  min-height: 38px;
  place-items: center;
  color: #5e687c;
  font-size: 0.66rem;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.accessory-preview-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.accessory-preview-meta > * {
  max-width: 100%;
  border: 1px solid rgba(76, 98, 173, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 9px;
  color: #596174;
  font-size: 0.68rem;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.accessory-preview-meta strong {
  color: #173bb8;
}

.custom-holder-shell {
  --holder-color: #2458db;
  --holder-text: #fff;
  position: relative;
  display: grid;
  width: min(260px, 72vw);
  aspect-ratio: 0.67;
  justify-self: center;
  place-items: center;
  border: 10px solid var(--holder-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 38px rgba(31, 42, 72, 0.2);
}

.custom-holder-shell.horizontal {
  width: min(360px, 82vw);
  aspect-ratio: 1.58;
}

.custom-holder-slot {
  position: absolute;
  top: -6px;
  width: 48px;
  height: 8px;
  border-radius: 5px;
  background: #151b2d;
}

.custom-holder-card {
  display: grid;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  background: var(--holder-color);
  padding: 16px;
  color: var(--holder-text);
  text-align: center;
}

.custom-holder-card img,
.holder-logo-placeholder {
  max-width: 38%;
  object-fit: contain;
}

.holder-logo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-weight: 950;
}

.custom-holder-card strong {
  width: 100%;
  max-width: 100%;
  color: var(--holder-text);
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.custom-holder-card img,
.custom-holder-card .holder-logo-placeholder,
.custom-holder-card small {
  color: var(--holder-contrast);
}

.custom-holder-card small {
  font-weight: 850;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .accessory-customizer {
    width: min(calc(100% - 28px), 760px);
    grid-template-columns: 1fr;
  }

  .accessory-editor-stage,
  .accessory-control-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .accessory-customizer {
    width: calc(100% - 20px);
    gap: 12px;
    margin-top: 14px;
  }

  .accessory-editor-stage,
  .accessory-control-panel {
    padding: 14px;
  }

  .accessory-size-options {
    grid-template-columns: 1fr;
  }

  .accessory-size-option {
    min-height: 54px;
  }

  .accessory-color-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .accessory-custom-color,
  .accessory-details-grid,
  .accessory-company-tools {
    grid-template-columns: 1fr;
  }

  .accessory-details-grid label,
  .accessory-details-grid label:nth-child(-n + 2) {
    grid-column: 1;
  }

  .custom-accessory-preview {
    min-height: 310px;
    padding: 16px 10px;
  }

  .lanyard-strip-space {
    min-height: 108px;
    padding-right: 30px;
  }

  .lanyard-print-unit {
    gap: 3px;
    padding-inline: 3px;
  }

  .lanyard-logo-placeholder {
    font-size: 0.34rem;
  }

  .lanyard-width-label {
    font-size: 0.58rem;
  }

  .accessory-preview-meta {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}
