.duv-page {
  --duv-primary: #1a73e8;
  --duv-primary-strong: #1652f0;
  --duv-success: #16a34a;
  --duv-success-strong: #15803d;
  --duv-bg-canvas: #f3f4f5;
  --duv-bg-white: #ffffff;
  --duv-bg-subtle: #f3f4f6;
  --duv-bg-active: #eff6ff;
  --duv-text-heading: #0f172a;
  --duv-text-body: #475569;
  --duv-text-muted: #64748b;
  --duv-border: #e2e8f0;
  --duv-border-active: #1a73e8;
  padding-top: 84px;
  background: var(--duv-bg-canvas);
}

.duv-shell {
  background: var(--duv-bg-canvas);
  padding-top: 0.9rem;
}

.duv-container {
  max-width: 1400px;
}

.duv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e1e8f2;
}

.duv-step-pill {
  background: var(--duv-bg-active);
  color: var(--duv-primary);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.duv-breadcrumb-home {
  font-size: 0.86rem;
  vertical-align: text-bottom;
  margin-right: 0.22rem;
  color: #7b889a;
}

.duv-section-card {
  border: 1px solid var(--duv-border);
  border-radius: 0.65rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
  background: var(--duv-bg-white);
}

.duv-section-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.duv-section-title .material-icons,
.duv-section-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--duv-primary);
  margin-right: 0.4rem;
}

.duv-soft-badge {
  color: var(--duv-text-body);
  background: var(--duv-bg-subtle);
  border: 1px solid var(--duv-border);
  font-weight: 600;
}

.duv-choice-btn {
  border: 1px solid var(--duv-border);
  background: var(--duv-bg-white);
  min-height: 148px;
  border-radius: 0.5rem;
  padding: 0.8rem;
  position: relative;
  text-transform: none;
  white-space: normal;
  display: flex;
  flex-direction: column;
}

.duv-delivery-row > [class*="col-"] {
  display: flex;
}

.duv-delivery-row .duv-choice-btn {
  min-height: 196px;
  height: 100%;
}

.duv-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.duv-choice-icon {
  font-size: 1.2rem;
  color: var(--duv-text-body);
}

.duv-choice-select-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: var(--duv-bg-white);
}

.duv-postage-btn {
  min-height: 124px;
}

.duv-postage-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

.duv-postage-pill {
  border-radius: 4px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 5px 2px;
  letter-spacing: 0.03em;
}

.duv-postage-pill--value {
  background: #dcfce7;
  color: #166534;
}

.duv-postage-pill--primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.duv-postage-days {
  color: var(--duv-text-body);
  font-size: 0.72rem;
  font-weight: 600;
}

.duv-choice-btn:hover,
.duv-choice-btn:focus {
  border-color: #b9c9de;
  box-shadow: none;
}

.duv-choice-btn.is-active {
  border-color: var(--duv-border-active);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.duv-choice-btn.is-active .duv-choice-icon {
  color: var(--duv-primary);
}

.duv-choice-btn.is-active .duv-choice-select-dot {
  border-color: var(--duv-primary);
  box-shadow: inset 0 0 0 3px #ffffff;
  background: var(--duv-primary);
}

.duv-choice-btn.is-active::after {
  content: none;
}

.duv-choice-btn:disabled {
  opacity: 0.65;
}

.duv-choice-btn--locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.duv-choice-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.42rem;
  color: var(--duv-text-heading);
  letter-spacing: -0.01em;
}

.duv-choice-copy {
  color: var(--duv-text-body);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.duv-choice-meta {
  color: var(--duv-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
}

.duv-segment-btn {
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid #d7e0ec;
  background: #ffffff;
  color: #4b5f79;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.42rem 0.58rem;
}

.duv-segment-btn .material-symbols-outlined {
  font-size: 0.92rem;
  color: var(--duv-text-body);
}

.duv-segment-btn.active {
  border-color: #c9dbf8;
  background: #edf4ff;
  color: #1a73e8;
}

.duv-segment-btn.active .material-symbols-outlined {
  color: var(--duv-primary);
}

.duv-segment-btn:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.duv-segment-btn:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.duv-orientation-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce5f1;
  border-radius: 0.4rem;
  background: #f9fbff;
  padding: 0.2rem;
  gap: 0.25rem;
}

.duv-orientation-switch .duv-segment-btn {
  border-radius: 0.3rem;
}

.duv-size-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--duv-border);
  border-radius: 0.6rem;
  background: var(--duv-bg-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-transform: none;
  white-space: normal;
}

.duv-size-option:hover:not(:disabled) {
  border-color: #b8cbe6;
}

.duv-size-option.is-active {
  border-color: var(--duv-border-active);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
  background: var(--duv-bg-active);
}

.duv-size-option:disabled {
  opacity: 0.62;
}

.duv-size-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duv-size-left {
  display: flex;
  align-items: flex-start;
}

.duv-size-thumb {
  width: 46px;
  height: 46px;
  border: 1px solid #d9e2ed;
  border-radius: 0.35rem;
  background: #f6f8fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  overflow: hidden;
}

.duv-size-thumb .express-upload-thumb-svg {
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.duv-size-thumb .express-upload-thumb-svg__art {
  width: 36px;
  height: 36px;
  filter: none;
}

.duv-size-option.is-active .duv-size-thumb {
  border-color: #bfdbfe;
  background: var(--duv-bg-active);
}

.duv-size-title {
  font-weight: 700;
  color: #222e43;
}

.duv-size-badge {
  display: inline-block;
  margin-left: 0.45rem;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.duv-size-badge--primary {
  background: #1d4ed8;
}

.duv-size-badge--other {
  background: #e0f2fe;
  color: #0369a1;
}

.duv-size-badge--value {
  background: #dcfce7;
  color: #166534;
}

.duv-size-meta {
  margin-top: 0.15rem;
  font-size: 0.79rem;
  color: var(--duv-text-body);
}

.duv-size-dims {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--duv-text-muted);
}

.duv-size-radio {
  width: 18px;
  height: 18px;
  border: 1px solid #bbc8d9;
  border-radius: 50%;
  margin-left: 0.65rem;
  margin-top: 0.15rem;
  position: relative;
  flex-shrink: 0;
}

.duv-size-option.is-active .duv-size-radio {
  border-color: var(--duv-primary);
}

.duv-size-option.is-active .duv-size-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--duv-primary);
  position: absolute;
  top: 4px;
  left: 4px;
}

.duv-scope-pill {
  border: 1px solid var(--duv-border);
  border-radius: 0.6rem;
  background: var(--duv-bg-subtle);
  color: var(--duv-text-heading);
  padding: 0.75rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.duv-scope-icon {
  color: var(--duv-primary-strong);
  font-size: 21px;
}

.duv-scope-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.duv-scope-label {
  color: #58667a;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
}

.duv-scope-value {
  margin-top: 0.06rem;
  color: #222f42;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.duv-sticky-card {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--duv-border);
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
  border-radius: 0.7rem;
}

.duv-sticky-card .card-body {
  padding: 1.6rem;
}

.duv-summary-kicker {
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #1d4ed8 !important;
}

.duv-sticky-card h3.h4 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.1;
}

.duv-price-calc-wrap {
  border: 1px solid #d8e1ee;
  border-radius: 1rem;
  background: var(--duv-bg-subtle);
  overflow: hidden;
  margin-top: 0.2rem;
}

.duv-price-calc-toggle {
  width: 100%;
  border: 0;
  background: var(--duv-bg-subtle);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 0;
  border-radius: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.duv-price-calc-toggle:hover,
.duv-price-calc-toggle:focus,
.duv-price-calc-toggle:active {
  background: var(--duv-bg-subtle);
  outline: none;
  box-shadow: none;
}

.duv-price-calc-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.duv-price-calc-title .material-symbols-outlined {
  color: #1a73e8;
  font-size: 1.35rem;
}

.duv-price-calc-chevron {
  color: #596a7f;
  font-size: 1.65rem;
  transition: transform 0.18s ease;
}

.duv-price-calc-wrap.is-open .duv-price-calc-chevron {
  transform: rotate(180deg);
}

.duv-price-calc-wrap.is-open .duv-price-calc-toggle {
  border-bottom: 1px solid #dde6f2;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.duv-price-calc-body {
  padding: 0.95rem 1.1rem 1rem;
  background: var(--duv-bg-subtle);
}

.duv-postage-btn--compact {
  min-height: 114px;
  padding: 0.72rem 0.72rem;
  border-radius: 0.72rem;
}

.duv-postage-btn--compact .duv-choice-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.duv-postage-btn--compact .duv-postage-meta {
  margin-top: 0;
  margin-bottom: 0;
  gap: 0.5rem;
}

.duv-postage-btn--compact .duv-postage-pill {
  font-size: 0.62rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.duv-postage-btn--compact .duv-postage-pill--value {
  color: #21a66c;
}

.duv-postage-btn--compact .duv-postage-pill--primary {
  color: #2f66d8;
}

.duv-postage-btn--compact .duv-postage-days {
  font-size: 0.78rem;
}

.duv-postage-btn--compact.duv-choice-btn.is-active {
  border-width: 2px;
  box-shadow: none;
}

.duv-eddm-postage-tile {
  border: 1px solid #d7e1ee;
  border-radius: 0.72rem;
  background: #ffffff;
  padding: 0.82rem 0.9rem;
}

.duv-eddm-postage-tile .duv-choice-title {
  font-size: 1rem;
  margin-bottom: 0.12rem;
}

.duv-eddm-postage-tile .duv-postage-days {
  font-size: 0.82rem;
}

.duv-templates-section {
  background: var(--duv-bg-white);
  border-top: 1px solid #e8edf4;
  padding-top: 2.75rem !important;
  padding-bottom: 2.75rem !important;
}

.duv-templates-inner {
  max-width: 100%;
}

.duv-template-cta-card,
.duv-checklist-card {
  border: 1px solid var(--duv-border);
  border-radius: 0.65rem;
  background: var(--duv-bg-subtle);
}

.duv-template-cta-card {
  margin-top: 1rem;
  margin-bottom: 1.3rem !important;
}

.duv-checklist-card {
  margin-top: 1.1rem;
}

.duv-template-icon {
  font-size: 1.8rem;
  color: var(--duv-primary);
  margin-right: 0.7rem;
  margin-top: 0.15rem;
}

.duv-template-btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: normal;
}

.duv-checklist-item {
  display: flex;
  align-items: flex-start;
  padding-right: 0.45rem;
}

.duv-check-index {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--duv-bg-active);
  color: var(--duv-primary);
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.duv-total-card {
  border: 1px solid var(--duv-border);
  border-radius: 0.72rem;
  background: #ffffff;
  padding: 0.9rem 0.95rem;
}

.duv-custom-qty-note {
  font-size: 0.82rem;
  line-height: 1.3;
  color: #475569 !important;
  margin-top: 0.16rem;
  margin-bottom: 0.3rem !important;
}

.duv-custom-qty-note .material-symbols-outlined {
  font-size: 13px;
  vertical-align: text-bottom;
}

.duv-print-note {
  font-size: 0.72rem;
  line-height: 1.36;
  color: #475569 !important;
  margin-bottom: 0 !important;
}

.duv-gallery-link {
  color: #334155;
  font-size: 0.84rem;
  text-decoration: underline;
}

.duv-status-slot {
  min-height: 1.35rem;
  margin-top: 0.45rem;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.2;
}

.duv-gallery-link:hover,
.duv-gallery-link:focus {
  color: #0f172a;
}

.duv-trust-row {
  border-top: 1px solid #e4eaf4;
  padding-top: 0.75rem;
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.5rem;
  text-align: center;
}

.duv-trust-row span.material-icons,
.duv-trust-row span.material-symbols-outlined {
  display: block;
  font-size: 16px;
  color: var(--duv-text-body);
  margin-bottom: 0.15rem;
}

.duv-trust-row small {
  font-size: 0.72rem;
  color: var(--duv-text-body);
  line-height: 0.9;
}

#orientationGroup {
  display: inline-flex;
}

#orientationGroup .duv-segment-btn {
  width: auto;
  margin: 0;
}

.duv-summary-list dt,
.duv-summary-list dd {
  margin-bottom: 0.34rem;
  border-top: 1px solid #edf1f6;
  padding-top: 0.5rem;
}

.duv-summary-list dt:first-of-type,
.duv-summary-list dd:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.duv-summary-list dt {
  color: var(--duv-text-body) !important;
  font-size: 1rem;
  font-weight: 600;
}

.duv-summary-list dd {
  color: var(--duv-text-heading);
  font-size: 1.02rem;
  font-weight: 700;
}

.duv-summary-divider {
  border-top: 1px solid #e8edf4;
  margin: 0.75rem 0 1rem;
}

.duv-total-divider {
  margin: 0.82rem 0 0.92rem;
}

.duv-mail-volume-title {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.duv-volume-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b !important;
  line-height: 1.2;
}

.duv-input-label {
  display: block;
  color: var(--duv-text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  font-weight: 700;
}

#quantityPresetWrap .duv-qty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 0.35rem;
}

#quantityPresetWrap .duv-qty-btn {
  border: 1px solid var(--duv-border);
  background: var(--duv-bg-white);
  color: #334155;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 0.45rem;
  padding: 0.58rem 0.1rem;
  text-transform: none;
}

#quantityPresetWrap .duv-qty-btn.is-active {
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

#customQuantityInput {
  height: 2.65rem;
  font-size: 1.1rem;
  font-weight: 600;
}

#customQuantityInput + .input-group-append .input-group-text {
  height: 2.65rem;
  background: #ffffff;
  color: var(--duv-text-body);
  font-size: 1.1rem;
  font-weight: 600;
  border-color: #c2d0e4;
}

#summaryTotal {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--duv-text-heading);
  line-height: 1;
}

.duv-total-label {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 500;
}

.duv-total-sub {
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 500;
}

.duv-total-per {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

#continueToUploadBtn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--duv-success);
  border-color: var(--duv-success);
}

#continueToUploadBtn:hover,
#continueToUploadBtn:focus {
  background: var(--duv-success-strong);
  border-color: var(--duv-success-strong);
}

@media (max-width: 991.98px) {
  .duv-sticky-card {
    position: static;
  }

  .duv-section-title {
    font-size: 1.2rem;
  }

  .duv-choice-btn {
    min-height: 132px;
  }

  .duv-delivery-row .duv-choice-btn {
    min-height: 172px;
  }

  .duv-choice-title {
    font-size: 0.95rem;
  }

  .duv-choice-copy {
    font-size: 0.83rem;
  }

  .duv-choice-meta {
    font-size: 0.8rem;
  }

  .duv-mail-volume-title {
    font-size: 1rem;
  }

  .duv-sticky-card .card-body {
    padding: 1.3rem;
  }

  .duv-sticky-card h3.h4 {
    font-size: 1.75rem;
  }

  .duv-summary-list dt {
    font-size: 0.9rem;
  }

  .duv-summary-list dd {
    font-size: 0.92rem;
  }

  .duv-total-label {
    font-size: 1rem;
  }

  .duv-total-sub,
  .duv-total-per {
    font-size: 0.84rem;
  }

  #orientationGroup {
    display: inline-flex;
  }

  #orientationGroup .duv-segment-btn {
    width: auto;
    font-size: 0.87rem;
    line-height: 1.25;
    padding: 0.48rem 0.35rem;
  }

  #quantityPresetWrap .duv-qty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .duv-page {
    padding-top: 88px;
  }

  .duv-shell {
    padding-top: 0.8rem;
  }

  .duv-step-pill {
    font-size: 0.73rem;
    padding: 0.3rem 0.7rem;
  }

  .duv-orientation-switch {
    margin-top: 0.4rem;
    width: 100%;
    justify-content: flex-end;
  }

  .duv-delivery-row .duv-choice-btn {
    min-height: 156px;
  }

  .duv-size-badge {
    margin-left: 0;
    margin-top: 0.2rem;
  }

  #orientationGroup .duv-segment-btn {
    width: auto;
    border-radius: 0.25rem !important;
  }

  #orientationGroup {
    display: inline-flex;
    row-gap: 0;
  }

  .duv-price-calc-body {
    padding: 0.8rem;
  }

  .duv-postage-btn--compact {
    min-height: 104px;
  }

  #summaryTotal {
    font-size: 1rem;
  }

  .duv-template-btn {
    width: 100%;
  }
}
