/* ==========================================================================
   Blosbox Luxury Packaging - Mobile-First Configurator Design System
   Exact blosbox.com Color Palette & Typography
   ========================================================================== */

:root {
  /* Official blosbox.com Colors */
  --color-dark-top: #302C27;        /* Deep Charcoal Espresso */
  --color-dark-bottom: #2D2924;     /* Dark modal background */
  --color-cream-bg: #F1EADD;        /* Warm luxury cream main background */
  --color-cream-card: #FAF7F2;      /* Soft light cream container */
  --color-white: #FFFFFF;           /* Crisp card background */
  
  --color-bronze: #A48C77;          /* Warm bronze / gold accent */
  --color-bronze-dark: #8C7461;     /* Darkened bronze */
  --color-bronze-light: #C5B3A3;    /* Light champagne bronze */
  --color-bronze-glow: rgba(164, 140, 119, 0.35);

  --color-text-dark: #1E1B18;       /* Primary dark text */
  --color-text-muted: #55514A;      /* Secondary dark text */
  --color-text-light: #F9F7F3;      /* Off-white text on dark background */
  --color-text-light-muted: rgba(249, 247, 243, 0.7);

  --color-green: #2E7D32;           /* Total price accent */
  --color-blue: #3E6B89;            /* Dimension tag */

  --border-subtle: rgba(48, 44, 39, 0.12);
  --border-accent: rgba(164, 140, 119, 0.5);
  --border-accent-strong: #A48C77;

  --shadow-sm: 0 2px 8px rgba(48, 44, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(48, 44, 39, 0.12);
  --shadow-lg: 0 16px 40px rgba(48, 44, 39, 0.25);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* body handled by styles.css */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bronze);
  border-radius: var(--radius-full);
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
/* .navbar handled by styles.css */

/* .navbar-container */

/* .navbar-brand */

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-bronze);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--color-text-light-muted);
  letter-spacing: 0.4px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(164, 140, 119, 0.15);
  border: 1px solid var(--color-bronze);
  color: var(--color-text-light);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-order-pill:hover {
  background: var(--color-bronze);
  color: var(--color-dark-top);
  box-shadow: 0 0 12px var(--color-bronze-glow);
}

.nav-order-pill svg {
  color: var(--color-bronze);
}

.nav-order-pill:hover svg {
  color: var(--color-dark-top);
}

.nav-order-divider {
  opacity: 0.5;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--color-bronze);
  color: var(--color-bronze);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--color-bronze);
  color: var(--color-text-light);
}

.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bronze);
  color: var(--color-text-light);
  border: 1px solid var(--color-bronze);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn-primary:hover {
  background: var(--color-bronze-dark);
}

/* ==========================================================================
   Main Container & Two-Column Configurator Layout
   ========================================================================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 1.4rem 1.5rem;
}

.configurator-wrapper {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 1.8rem;
  align-items: start;
}

/* ==========================================================================
   Left Column: Controls & Dropdowns Panel
   ========================================================================== */
.controls-panel {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel-header {
  border-bottom: 2px solid var(--color-dark-top);
  padding-bottom: 0.8rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-dark-top);
  line-height: 1.15;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.dropdown-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-dark-top);
}

/* Material Mode Toggle (Uniform vs Mix) */
.material-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-mode-toggle {
  display: flex;
  background: #E8E0D2;
  border-radius: var(--radius-xs);
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  background: transparent;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--color-dark-top);
  color: var(--color-bronze);
  box-shadow: var(--shadow-sm);
}

/* Interactive Material Selector Card Button */
.material-selector-card {
  width: 100%;
}

.material-pick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-cream-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.material-pick-btn:hover {
  background: var(--color-white);
  border-color: var(--color-dark-top);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pick-thumb-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.pick-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pick-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pick-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark-top);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-tier {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-bronze-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pick-action-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-bronze);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.split-materials-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--color-bronze-dark);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-cream-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 0.65rem 2.2rem 0.65rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.custom-select:focus {
  border-color: var(--color-dark-top);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(164, 140, 119, 0.2);
}

/* ==========================================================================
   Price & Calculation Summary Card
   ========================================================================== */
.price-calc-card {
  background: var(--color-cream-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.tier-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--color-dark-top);
  color: var(--color-bronze);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

.calc-value-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark-top);
  font-family: var(--font-serif);
}

.qty-row {
  align-items: center;
}

.qty-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.6rem;
}

.qty-input {
  width: 70px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: right;
  outline: none;
}

.qty-unit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.calc-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.2rem 0;
}

.total-row {
  align-items: baseline;
}

.total-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark-top);
}

.total-price {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-green);
}

.calc-row.mold-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #B26A00;
}

.calc-fee-val {
  font-family: var(--font-sans);
  font-weight: 700;
}

.sub-fee-applied-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(46, 125, 50, 0.12);
  color: #2E7D32;
  border: 1px solid rgba(46, 125, 50, 0.35);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.25rem;
  width: fit-content;
  animation: badgeFadeIn 0.25s ease-out;
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes priceHighlightPulse {
  0% {
    transform: scale(1);
    background-color: transparent;
  }
  50% {
    transform: scale(1.02);
    background-color: rgba(178, 106, 0, 0.14);
  }
  100% {
    transform: scale(1);
    background-color: transparent;
  }
}

.price-pulse-highlight {
  animation: priceHighlightPulse 0.5s ease;
  border-radius: 4px;
}

/* Ensure controls in dropdown-form flow logically: Box -> Material -> Logo -> Price -> Actions */
.size-config-group { order: 1; }
.material-config-group { order: 2; }
#logo-customization-card { order: 3; }
.price-calc-card { order: 4; }
.config-actions-wrap { order: 5; }

/* ==========================================================================
   Custom Logo Hot Foil Stamping Options Card
   ========================================================================== */
.logo-customization-card {
  background: #FAF7F2;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.luxury-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom-indicator {
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--color-bronze);
  border-radius: 4px;
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.luxury-checkbox:checked + .checkbox-custom-indicator {
  background: var(--color-dark-top);
  border-color: var(--color-dark-top);
}

.checkbox-custom-indicator::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.luxury-checkbox:checked + .checkbox-custom-indicator::after {
  opacity: 1;
}

.checkbox-text-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.checkbox-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-dark-top);
  line-height: 1.25;
}

.tag-included {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2E7D32;
}

.logo-suboptions {
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(164, 140, 119, 0.4);
  margin-left: 0.4rem;
}

.sub-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.sub-checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-dark-top);
}

.sub-fee {
  font-size: 0.78rem;
  font-weight: 700;
  color: #B26A00;
}

.sub-size {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.sub-email {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.link-custom-email {
  color: var(--color-bronze);
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.15s;
}

.link-custom-email:hover {
  color: var(--color-dark-top);
}

/* Logo Upload Dropzone */
.logo-upload-zone {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(164, 140, 119, 0.4);
}

.logo-upload-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.45rem;
}

.upload-label-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-dark-top);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.upload-label-formats {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.dropzone-box {
  display: block;
  width: 100%;
  position: relative;
  border: 1.5px dashed var(--color-bronze);
  border-radius: var(--radius-sm);
  background: #FDFBF8;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: var(--color-dark-top);
  background: #F5EFE6;
}

.hidden-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-unselected {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}

.btn-upload-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-dark-top);
  color: var(--color-white);
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

.dropzone-box:hover .btn-upload-action {
  background: var(--color-bronze);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prompt-main {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark-top);
}

.prompt-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.dropzone-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
}

.selected-file-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
}

.file-icon-badge {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-text-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.selected-file-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark-top);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.selected-file-size {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.selected-file-status {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2E7D32;
  margin-top: 1px;
}

.btn-clear-file {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-dark-top);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-file:hover {
  background: #FFCDD2;
  color: #D32F2F;
}

/* Modal Attachment Row */
.modal-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #FDFBF8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  margin-top: 0.25rem;
}

.attachment-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.attachment-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark-top);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.attachment-status {
  font-size: 0.78rem;
  color: var(--color-green);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-status.empty {
  color: var(--color-text-muted);
  font-weight: 400;
}

.btn-modal-upload-alt {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark-top);
  background: var(--color-white);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn-modal-upload-alt:hover {
  background: var(--color-bronze);
  color: var(--color-white);
}

.config-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.6rem;
}

.config-actions-wrap .btn-add-to-order {
  flex: 1;
  margin-top: 0;
}

.btn-reset-choices {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.88rem 1rem;
  background: var(--color-white);
  color: var(--color-text-muted);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-reset-choices:hover {
  background: #FFF5F5;
  color: #D32F2F;
  border-color: #EF9A9A;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.12);
  transform: translateY(-1px);
}

.btn-reset-choices svg {
  transition: transform 0.25s ease;
}

.btn-reset-choices:hover svg {
  transform: rotate(-45deg);
}

.btn-add-to-order {
  width: 100%;
  padding: 0.88rem 1.4rem;
  background: linear-gradient(135deg, var(--color-dark-top) 0%, #201D1A 100%);
  color: var(--color-text-light);
  border: 1.5px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(48, 44, 39, 0.2);
  transition: all 0.25s ease;
  margin-top: 0.6rem;
}

.btn-add-to-order:hover {
  background: var(--color-bronze);
  color: var(--color-dark-top);
  border-color: var(--color-bronze-dark);
  box-shadow: 0 6px 20px rgba(164, 140, 119, 0.4);
  transform: translateY(-1px);
}

.btn-add-to-order:active {
  transform: translateY(0);
}

.btn-add-to-order.btn-update-mode {
  background: linear-gradient(135deg, #1C4428 0%, #0E2916 100%);
  border-color: #4CAF50;
}

.order-summary-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-clear-header {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  background: var(--color-white);
  color: var(--color-text-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-header:hover {
  background: #FFF5F5;
  color: #D32F2F;
  border-color: #EF9A9A;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.1);
}

/* ==========================================================================
   Right Column: Visuals & Technical Drawings Panel
   ========================================================================== */
.visuals-panel {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.visuals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 2px solid var(--color-dark-top);
  padding-bottom: 0.8rem;
}

.visuals-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-dark-top);
}

.visuals-model-tag {
  background: var(--color-cream-card);
  border: 1px solid var(--border-accent);
  color: var(--color-blue);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
}

/* 3 Drawings Grid */
.drawings-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  gap: 1.1rem;
}

.drawing-box-card {
  background: var(--color-cream-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.drawing-box-card:hover {
  border-color: var(--color-dark-top);
  box-shadow: var(--shadow-md);
}

.card-caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.35rem;
}

.caption-type {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.caption-detail {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark-top);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PROPORTIONAL DIE-CUT FOAM INSERT CARD (Matching User Layout) */
.insert-config-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--color-cream-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.insert-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.insert-card-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-bronze-dark);
}

.insert-inline-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.inline-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inline-control-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.mini-select-wrap.select-wrapper::after {
  font-size: 0.6rem;
  right: 10px;
}

.custom-select.mini-select {
  padding: 0.45rem 1.6rem 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background-color: var(--color-white);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
}

/* Watch Box Unique Insert Notice & Disabled Choice Styling */
.watch-insert-notice {
  background: rgba(164, 140, 119, 0.12);
  border: 1px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--color-dark-top);
  line-height: 1.35;
  margin-top: 0.4rem;
}

.watch-insert-notice .notice-icon {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.notice-email-link {
  color: var(--color-bronze-dark);
  font-weight: 700;
  text-decoration: underline;
}

.select-wrapper.disabled-select-wrap {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #ECE7DF;
  border-radius: var(--radius-xs);
}

.select-wrapper.disabled-select-wrap select {
  cursor: not-allowed;
  color: var(--color-text-muted);
}

.drawing-image-container.insert-drawing-frame.watch-insert-frame {
  background: #FFFFFF !important;
  border: 1.5px solid var(--border-accent) !important;
  border-radius: var(--radius-xs);
}

.drawing-image-container.insert-drawing-frame {
  height: 205px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.drawing-image-container.insert-drawing-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(48, 44, 39, 0.16);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.drawing-image-container.insert-drawing-frame:hover img {
  transform: scale(1.02);
}

/* Exact Insert Color Filters (Applied directly to img, no container frame) */
.insert-filter-black,
img.insert-filter-black {
  filter: url(#insert-filter-black);
}

.insert-filter-dark-brown,
img.insert-filter-dark-brown {
  filter: url(#insert-filter-dark-brown);
}

.insert-filter-cream,
img.insert-filter-cream {
  filter: url(#insert-filter-cream);
}

.drawing-image-container {
  width: 100%;
  height: 190px;
  background: #1F1C19;
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawing-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.3s ease;
}

.drawing-image-container.vector-container {
  background: #FFFFFF;
  border: 1.5px solid var(--border-accent);
  padding: 6px;
}

.drawing-image-container.vector-container svg {
  width: 100%;
  height: 100%;
}

.drawing-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(48, 44, 39, 0.88);
  color: var(--color-text-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  pointer-events: none;
}

.split-material-display {
  display: flex;
  width: 100%;
  height: 100%;
}

.split-mat-half {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.split-mat-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-mat-label {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(48, 44, 39, 0.85);
  color: var(--color-text-light);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Wholesale Volume Discounts Card (Right to Add Box to Order)
   ========================================================================== */
.wholesale-discounts-card {
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE6 100%);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0.2rem;
}

.discounts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.discounts-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark-top);
}

.discounts-title-group svg {
  color: var(--color-bronze);
}

.discounts-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-top);
  letter-spacing: 0.2px;
}

.discounts-live-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-bronze-dark);
  background: var(--color-white);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.discounts-live-tag.active-discount {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #81C784;
}

.discounts-tiers-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.discount-tier-item {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.7rem;
  text-align: center;
  transition: all 0.25s ease;
}

.discount-tier-item.active-tier {
  border: 2px solid #2E7D32;
  background: #F1F8F2;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.15);
  transform: translateY(-2px);
}

.discount-tier-item.active-tier .tier-pct {
  color: #2E7D32;
}

.tier-pct {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-dark-top);
  letter-spacing: 0.3px;
  margin-bottom: 0.15rem;
}

.tier-desc {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.25;
}

.tier-desc strong {
  color: var(--color-dark-top);
}

.discounts-footer-note {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* Savings badges & side discount display styles */
.total-price-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.single-savings-tag {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}

.calc-discount-val {
  font-weight: 700;
  color: #2E7D32;
  font-size: 0.95rem;
}

.discount-side-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-discount-value {
  font-weight: 700;
  color: #2E7D32;
  font-size: 1.15rem;
}

.stat-savings-badge {
  display: inline-block;
  background: #2E7D32;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

/* ==========================================================================
   POPUP SLIDING PHOTO GALLERY MODAL (Matching User Diagram)
   ========================================================================== */
.modal-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-gallery-overlay.open {
  opacity: 1;
  visibility: visible;
}

.gallery-dialog {
  background: var(--color-dark-top);
  border: 1.5px solid var(--color-bronze);
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--color-text-light);
}

/* Top Dark Header with Two Category Tabs (Textured & Pearl vs Luxe) */
.gallery-top-header {
  background: #23201C;
  padding: 0.85rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-category-tabs {
  display: flex;
  gap: 0.8rem;
  flex: 1;
}

.gallery-tab {
  flex: 1;
  background: #3A3530;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-light-muted);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-tab:hover {
  color: #fff;
  background: #453F39;
}

.gallery-tab.active {
  background: var(--color-bronze);
  border-color: var(--color-bronze-light);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gallery-close-btn {
  background: transparent;
  border: none;
  color: var(--color-bronze);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding-left: 0.8rem;
}

.gallery-close-btn:hover {
  color: #fff;
}

/* Slot Target Bar */
.gallery-slot-bar {
  background: #2C2824;
  padding: 0.4rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-light-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-slot-badge {
  background: var(--color-bronze);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

/* Sliding Photo Carousel Section */
.gallery-slider-wrapper {
  position: relative;
  background: var(--color-cream-bg);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.slider-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 480px;
  animation: slideFadeIn 0.25s ease-out;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.slide-image-card {
  width: 100%;
  height: 250px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.slide-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slide-info-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.slide-title-group {
  display: flex;
  flex-direction: column;
}

.slide-material-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-top);
  line-height: 1.2;
}

.slide-material-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-bronze-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Big Navigation Arrows (< and > matching user drawing) */
.slider-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(48, 44, 39, 0.7);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  width: 46px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
}

.slider-nav-arrow:hover {
  background: var(--color-dark-top);
  border-color: var(--color-bronze);
  color: var(--color-bronze);
  transform: translateY(-50%) scale(1.06);
}

.arrow-prev {
  left: 12px;
}

.arrow-next {
  right: 12px;
}

/* Bottom Gallery Bar with Thumbnails & Apply Button */
.gallery-bottom-bar {
  background: #23201C;
  padding: 0.75rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumbs-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-bronze) rgba(255, 255, 255, 0.08);
}

.gallery-thumbs-strip::-webkit-scrollbar {
  height: 5px;
}

.gallery-thumbs-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.gallery-thumbs-strip::-webkit-scrollbar-thumb {
  background: var(--color-bronze);
  border-radius: 3px;
}

.gallery-thumbs-strip::-webkit-scrollbar-thumb:hover {
  background: var(--color-bronze-dark);
}

.gallery-thumb-item {
  flex: 0 0 50px;
  height: 38px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.gallery-thumb-item:hover {
  opacity: 1;
  border-color: #fff;
}

.gallery-thumb-item.active {
  opacity: 1;
  border: 2px solid var(--color-bronze);
  transform: scale(1.08);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-apply-material {
  width: 100%;
  background: var(--color-bronze);
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-material:hover {
  background: var(--color-bronze-dark);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Lightbox Modal for Blueprints
   ========================================================================== */
.modal-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 17, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.modal-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  background: #231f1c;
  border: 1.5px solid var(--brown-accent, #a48c77);
  border-radius: 8px;
  max-width: 820px;
  width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  position: relative;
}

.lightbox-header {
  background: #1c1815;
  padding: 0.85rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(164, 140, 119, 0.3);
  flex-shrink: 0;
}

.lightbox-titles h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.lightbox-titles p {
  font-size: 0.80rem;
  color: #d1beaa;
  margin: 0.2rem 0 0 0;
}

.lightbox-close {
  background: transparent;
  border: none;
  color: #e0c9a6;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.lightbox-body {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: calc(85vh - 75px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: #151311;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox-body img,
#lightbox-img {
  max-width: 100% !important;
  max-height: calc(85vh - 105px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  display: block;
  margin: auto;
}

.lightbox-body .vector-lightbox-wrap {
  width: 100%;
  max-width: 650px;
  max-height: calc(85vh - 105px);
  background: #FAF7F2;
  padding: 1.2rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lightbox-body .vector-lightbox-wrap svg {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  height: auto;
  width: auto;
}

/* ==========================================================================
   Submit Order Modal (Shipping & Production Timeline)
   ========================================================================== */
.modal-submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 25, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-submit-overlay.open {
  opacity: 1;
  visibility: visible;
}

.submit-dialog {
  background: var(--color-white);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 1.8rem 2.2rem;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-submit-overlay.open .submit-dialog {
  transform: scale(1);
}

.submit-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1.5px solid var(--border-subtle);
  margin-bottom: 1.1rem;
}

.submit-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #81C784;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-header-titles h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-dark-top);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.submit-header-titles p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.submit-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 0.4rem;
  transition: color 0.15s ease;
}

.submit-modal-close:hover {
  color: var(--color-dark-top);
}

.submit-order-recap {
  display: flex;
  justify-content: space-around;
  background: #FAF7F2;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.recap-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recap-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.recap-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark-top);
}

.recap-val.price-val {
  color: var(--color-green);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.submit-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-field-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark-top);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.3rem;
  display: block;
}

.form-field-group .req {
  color: #D32F2F;
}

.form-field-group input,
.form-field-group textarea {
  width: 100%;
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field-group input:focus,
.form-field-group textarea:focus {
  border-color: var(--color-bronze);
  box-shadow: 0 0 0 3px rgba(164, 140, 119, 0.15);
}

.form-field-group.full-width {
  margin-bottom: 0.85rem;
}

.submit-dialog-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.btn-submit-send-email {
  flex: 1.3;
  min-width: 220px;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, #1C4428 0%, #0E2916 100%);
  color: #FFFFFF;
  border: 1.5px solid #4CAF50;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(28, 68, 40, 0.25);
}

.btn-submit-send-email:hover {
  background: #235532;
  border-color: #81C784;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  transform: translateY(-1px);
}

.btn-submit-copy-fallback {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1rem;
  background: transparent;
  color: var(--color-dark-top);
  border: 1.5px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-submit-copy-fallback:hover {
  background: var(--color-bronze);
  color: var(--color-white);
}

.submit-guarantee-note {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 0.9rem;
  text-align: center;
}

.submit-guarantee-note strong {
  color: var(--color-dark-top);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-dark-top);
  color: #FFFFFF;
  border-left: 4px solid var(--color-bronze);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Registered Order Selections & Summary Table
   ========================================================================== */
.order-summary-section {
  margin-top: 2rem;
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
}

.order-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-dark-top);
  margin-bottom: 1.2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-summary-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark-top);
  line-height: 1.2;
}

.order-summary-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.order-summary-badge {
  background: #E8E0D2;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark-top);
  white-space: nowrap;
}

.order-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.4rem;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 860px;
}

.order-table thead tr {
  background: #FAF7F2;
  border-bottom: 1.5px solid var(--border-accent);
}

.order-table th {
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
}

.order-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  vertical-align: middle;
}

.order-table tbody tr:hover {
  background-color: rgba(241, 234, 221, 0.35);
}

.order-table tbody tr.editing-row {
  background-color: rgba(164, 140, 119, 0.15);
  border-left: 3px solid var(--color-bronze);
}

.order-item-box-title {
  font-weight: 700;
  color: var(--color-dark-top);
  font-size: 0.95rem;
  line-height: 1.2;
}

.order-item-box-dim {
  font-size: 0.75rem;
  color: var(--color-blue);
  font-family: monospace;
  font-weight: 600;
  margin-top: 3px;
}

.order-material-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.order-material-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-thumb-mini {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.order-material-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-material-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--color-text-dark);
}

.order-material-tier-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-bronze-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-insert-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.order-insert-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
  flex-shrink: 0;
}

.order-insert-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-insert-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--color-text-dark);
}

.order-insert-color-name {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.order-price-unit {
  font-weight: 600;
  color: var(--color-text-dark);
}

.order-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  overflow: hidden;
}

.order-qty-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.order-qty-btn:hover {
  background: #E8E0D2;
  color: var(--color-dark-top);
}

.order-qty-val {
  width: 54px;
  border: none;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  outline: none;
}

.order-subtotal-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark-top);
}

.order-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-item-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
  color: var(--color-text-dark);
}

.btn-item-edit:hover {
  border-color: var(--color-bronze);
  background: #FAF7F2;
  color: var(--color-bronze-dark);
}

.btn-item-delete:hover {
  border-color: #D32F2F;
  background: #FFEBEE;
  color: #D32F2F;
}

.order-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.order-empty-state svg {
  color: var(--color-bronze);
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.order-empty-state .empty-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-top);
  margin-bottom: 0.3rem;
}

.order-empty-state .empty-desc {
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto;
}

.order-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.2rem 1.6rem;
  background: #FAF7F2;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
}

.order-footer-totals {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark-top);
}

.footer-stat.total-stat .stat-label {
  color: var(--color-dark-top);
}

.stat-value-price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-green);
  line-height: 1.1;
}

.order-footer-actions {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-order-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.submit-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1B5E20;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.submit-modal-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1B5E20;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.85rem;
  text-align: center;
}

.order-logo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #F4EFEA;
  border: 1px solid #D8CFC4;
  color: #5D4037;
  margin-top: 0.35rem;
}

.order-logo-tag.has-mold {
  background: #FFF8E1;
  border-color: #FFE082;
  color: #B26A00;
}

.btn-submit-order {
  background: linear-gradient(135deg, #1C4428 0%, #0E2916 100%);
  border: 1.5px solid #4CAF50;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(28, 68, 40, 0.25);
}

.btn-submit-order:hover {
  background: #235532;
  border-color: #81C784;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
  transform: translateY(-1px);
}

.btn-copy-order {
  background: transparent;
  border: 1.5px solid var(--color-bronze);
  color: var(--color-dark-top);
}

.btn-copy-order:hover {
  background: var(--color-bronze);
  color: var(--color-white);
}

.btn-print-order {
  background: var(--color-dark-top);
  border: 1.5px solid var(--color-dark-top);
  color: #FFFFFF;
}

.btn-print-order:hover {
  background: #1C1916;
  border-color: #1C1916;
}

.btn-clear-order {
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  color: var(--color-text-muted);
}

.btn-clear-order:hover {
  border-color: #D32F2F;
  color: #D32F2F;
  background: #FFEBEE;
}

@media print {
  .navbar-actions,
  .controls-panel,
  .visuals-panel,
  .btn-item-action,
  .order-qty-btn,
  .order-footer-actions,
  .toast,
  .modal-gallery-overlay,
  .modal-lightbox {
    display: none !important;
  }

  /* body handled by styles.css */

  .main-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .configurator-wrapper {
    display: none !important;
  }

  .order-summary-section {
    margin-top: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .order-table th {
    background: #EEEEEE !important;
    color: #000000 !important;
  }

  .order-table td {
    border-bottom: 1px solid #CCCCCC !important;
  }

  .order-footer-bar {
    background: #F9F9F9 !important;
    border: 1px solid #CCCCCC !important;
  }
}

/* ==========================================================================
   Mobile & Responsive Adaptations (Customer Guided Journey)
   ========================================================================== */
@media (max-width: 1024px) {
  .configurator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Flatten panel wrappers on mobile to interleave controls & visual blueprints in the exact user-specified order */
  .controls-panel,
  .dropdown-form,
  .visuals-panel,
  .drawings-grid {
    display: contents;
  }

  /* 0. Panel Header (Title & Subtitle) */
  .panel-header {
    order: 1;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
  }

  /* 1. Step 1: Choose Box Size */
  .size-config-group {
    order: 2;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
  }

  /* 2. Step 2: Preview Technical Drawing of the Box */
  #card-box-drawing {
    order: 3;
    width: 100%;
    box-sizing: border-box;
  }

  /* 3. Step 3: Choose Foam Insert (Options, Colors & Proportional Preview) */
  #card-insert-drawing {
    order: 4;
    width: 100%;
    box-sizing: border-box;
  }

  /* 4. Step 4: Choose Finishing Materials & Preview Texture */
  .material-config-group {
    order: 5;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
  }

  #card-material-preview {
    order: 6;
    width: 100%;
    box-sizing: border-box;
  }

  /* 5. Step 5: Custom Logo Hot Foil Stamping & Mold Options */
  #logo-customization-card {
    order: 7;
    width: 100%;
    box-sizing: border-box;
  }

  /* 6. Step 6: Quantity & Price calculation (Right below the logo options!) */
  .price-calc-card {
    order: 8;
    width: 100%;
    box-sizing: border-box;
  }

  /* 6. Step 6: Hit Button "ADD BOX TO ORDER" */
  .config-actions-wrap {
    order: 9;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
  }

  /* 7. Step 7: Wholesale Volume Discounts */
  #wholesale-discounts-card {
    order: 10;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hide redundant visuals header on mobile since each card has its own header */
  .visuals-header {
    display: none;
  }
}

@media (max-width: 650px) {
  html {
    font-size: 14px;
  }
  .main-container {
    padding: 0.8rem 0.7rem;
  }
  .calculator-page-wrapper {
    padding: 1rem 0.5rem 3rem 0.5rem;
  }
  .controls-panel, .visuals-panel {
    padding: 1rem 1rem;
  }
  .drawing-image-container {
    height: 180px;
  }
  .gallery-dialog {
    max-height: 98vh;
  }
  .slide-image-card {
    height: 190px;
  }
  .slider-nav-arrow {
    width: 40px;
    height: 48px;
  }
  .config-actions-wrap {
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn-add-to-order {
    width: 100%;
    justify-content: center;
  }
  .btn-reset-choices {
    width: 100%;
    justify-content: center;
  }
}


/* Integration Overrides for Blosbox Main Site */
.calculator-page-wrapper {
    background-color: var(--cream-main, #f5f0eb);
    min-height: calc(100vh - 10.5vh - 8vh);
    padding: 2rem 3% 4rem 3%;
    box-sizing: border-box;
}

.calc-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(164, 140, 119, 0.2);
    border: 1px solid var(--brown-accent, #a48c77);
    color: var(--text-light, #f5f0eb);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-family: var(--font-body, 'Lato', sans-serif);
    cursor: pointer;
    transition: all 0.25s ease;
}

.calc-nav-pill:hover {
    background: var(--brown-accent, #a48c77);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Submit Modal Alert, Success View & Logo Download Helpers
   ========================================================================== */
.attachment-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-modal-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  background: #F4EFEA;
  border: 1px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark-top);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-download:hover {
  background: var(--color-bronze);
  color: #FFFFFF;
}

.submit-modal-alert {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeIn 0.25s ease;
}

.submit-modal-alert.warning {
  background: #FFF8E1;
  border: 1.5px solid #FFE082;
  color: #5D4037;
}

.submit-modal-alert.info {
  background: #E3F2FD;
  border: 1.5px solid #90CAF9;
  color: #0D47A1;
}

.submit-modal-alert.success {
  background: #E8F5E9;
  border: 1.5px solid #81C784;
  color: #1B5E20;
}

.submit-modal-alert strong {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.submit-modal-alert p {
  margin: 0;
}

.btn-download-logo-helper {
  align-self: flex-start;
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--color-dark-top);
  color: #FFFFFF;
  border: 1px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-logo-helper:hover {
  background: var(--color-bronze);
}

.submit-success-view {
  text-align: center;
  padding: 1.5rem 1rem;
  animation: fadeIn 0.3s ease;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #E8F5E9;
  border: 2px solid #81C784;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
}

.submit-success-view h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-top);
  margin-bottom: 0.5rem;
}

.submit-success-view p {
  font-size: 0.92rem;
  color: var(--color-text-dark);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 0.5rem auto;
}

.submit-success-view .success-reply-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.success-logo-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: #F9F6F2;
  border: 1px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  padding: 0.55rem 1rem;
  margin: 0.75rem auto 1rem auto;
  max-width: 480px;
  font-size: 0.84rem;
  color: var(--color-dark-top);
  flex-wrap: wrap;
}

.btn-success-view-file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-bronze);
  color: #FFFFFF !important;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-success-view-file:hover {
  background: var(--color-dark-top);
  transform: translateY(-1px);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.btn-success-done {
  padding: 0.75rem 1.8rem;
  background: linear-gradient(135deg, #1C4428 0%, #0E2916 100%);
  color: #FFFFFF;
  border: 1.5px solid #4CAF50;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success-done:hover {
  background: #235532;
  transform: translateY(-1px);
}

.btn-success-print {
  padding: 0.75rem 1.4rem;
  background: transparent;
  color: var(--color-dark-top);
  border: 1.5px solid var(--color-bronze);
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success-print:hover {
  background: var(--color-bronze);
  color: #FFFFFF;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

