/**
 * SIXPRINT PRODUCT CALCULATOR COMMON STYLES
 *
 * Shared across: Greeting Cards, Postcards, Bookmarks, Business Cards
 * NOT used by: Giclee (has its own calculator structure)
 *
 * Contains: Calculator sections, form inputs, pricing summaries, buttons,
 * quantity discounts, template downloads, features grid
 */

/* ==================== CALCULATOR SECTION ==================== */
.calculator-section {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.calculator-section h2 {
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

.calculator-explanation {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.card-calculator-container {
  font-family: inherit;
}

/* ==================== DESIGN ITEMS ==================== */
.design-entry,
.design-item {
  background: var(--brand-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.design-entry:hover,
.design-item:hover {
  border-color: var(--brand-pink);
}

.design-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  max-width: 100%;
  overflow: visible;
}

/* ==================== FORM INPUTS ==================== */
.input-field {
  display: flex;
  flex-direction: column;
}

.input-field label {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.input-field input[type="text"],
.input-field select {
  padding: 10px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  background: var(--brand-white);
  transition: border-color 0.3s ease;
}

.input-field input[type="text"]:focus,
.input-field select:focus {
  border-color: var(--brand-pink);
  outline: none;
}

/* ==================== QUANTITY CONTROLS ==================== */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border-light);
  background: var(--brand-white);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  color: var(--brand-dark);
}

.quantity-btn:hover:not(:disabled) {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 80px;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--brand-white);
  transition: all 0.3s ease;
}

.quantity-input:focus {
  border-color: var(--brand-pink);
  outline: none;
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ==================== DELETE DESIGN BUTTON ==================== */
.delete-design {
  padding: 10px 16px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  align-self: end;
}

.delete-design:hover {
  background: #cc3333;
  transform: translateY(-1px);
}

/* ==================== CHECKBOXES ==================== */
.checkbox-group {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-pink);
}

.checkbox-item label {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--brand-dark);
  margin: 0;
  font-weight: normal;
  user-select: none;
}

/* ==================== DELIVERY SECTION ==================== */
.delivery-section {
  margin: 1.5rem 0;
}

.delivery-section input,
.delivery-section select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.9rem;
}

.delivery-section input:focus,
.delivery-section select:focus {
  outline: none;
  border-color: var(--brand-pink);
}

.delivery-info {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==================== PRICING SUMMARY ==================== */
.pricing-summary {
  background: var(--brand-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.summary-title {
  font-size: 1.2rem;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.summary-row,
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-row.total,
.total-row {
  border-top: 2px solid var(--brand-dark);
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.product-group {
  background: var(--brand-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.product-group-header {
  font-weight: 600;
  color: var(--brand-pink);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-discount-line {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

#card-calc-price-breakdown {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

#card-calc-price-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

#card-calc-price-breakdown th,
#card-calc-price-breakdown td {
  padding: 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#card-calc-price-breakdown th {
  font-weight: 500;
  color: var(--brand-dark);
}

#card-calc-total-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-pink);
  margin-top: 1rem;
  text-align: right;
}

/* ==================== QUANTITY DISCOUNTS ==================== */
.quantity-discounts {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quantity-discounts h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.viewing-discounts-heading {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-left: 3px solid var(--brand-pink);
  border-radius: 4px;
}

.viewing-discounts-heading strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.discount-table {
  background: var(--brand-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.discount-table table {
  width: 100%;
  border-collapse: collapse;
}

.discount-table th {
  background: var(--brand-pink);
  color: white;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.discount-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.discount-table tr:hover {
  background: var(--brand-light);
}

.discount-badge {
  background: var(--brand-purple);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}

.strikethrough {
  text-decoration: line-through;
  color: var(--brand-pink);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.total-col {
  font-weight: 600;
}

.show-more-btn {
  background: var(--brand-purple);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.show-more-btn:hover {
  background: #7a42d4;
}

.price-note {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ==================== ERROR & NOTIFICATIONS ==================== */
.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.discount-notification {
  background: linear-gradient(135deg, rgba(255, 38, 158, 0.05), rgba(146, 78, 255, 0.05));
  border: 1px solid rgba(255, 38, 158, 0.2);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--brand-dark);
}

/* ==================== TOOLTIPS ==================== */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--brand-dark);
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--brand-pink);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(146, 78, 255, 0.3);
  color: white;
}

.btn-secondary {
  background: var(--brand-pink);
}

.btn-secondary:hover {
  background: var(--brand-purple);
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--brand-white);
  color: var(--brand-dark);
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-pink));
  background-size: 200% 100%;
  border-radius: 9px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: gradientShift 3s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 38, 158, 0.2);
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--brand-white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f7f7f7, #e8e8e8);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand-dark);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.feature-card h3 {
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==================== TEMPLATE DOWNLOAD SECTION ==================== */
.gc-templates {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.gc-head {
  text-align: center;
  margin-bottom: 16px;
}

.btn-download-all {
  position: relative;
  display: inline-block;
  padding: 18px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform 180ms, filter 180ms, box-shadow 180ms;
  isolation: isolate;
}

.btn-download-all::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-pink), var(--brand-purple));
  background-size: 300% 300%;
  animation: moveGradient 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.btn-download-all:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(146,78,255,.12), 0 6px 14px rgba(255,38,158,.10);
}

.gc-sub {
  margin: 10px 0 0 0;
  color: var(--text-muted);
  font-size: .95rem;
}

.size-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.size-btn {
  position: relative;
  padding: 12px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .2px;
  transition: box-shadow 180ms, transform 180ms, background 180ms, border-color 180ms, color 180ms;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.size-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-pink), var(--brand-purple));
  background-size: 300% 300%;
  animation: moveGradient 6s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 180ms;
  z-index: 0;
}

.size-btn:hover {
  transform: translateY(-1px);
}

.size-btn:hover::before {
  opacity: 1;
}

.size-btn.active {
  background: var(--brand-purple);
  color: white;
}

.size-btn.active::before {
  opacity: 1;
}

.size-row.has-active .size-btn:not(.active) {
  background: #f6f5f4;
  color: #777;
  box-shadow: none;
}

.content-wrap {
  margin-top: 18px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 180ms, transform 180ms, height 180ms;
  position: relative;
}

.content-wrap.hidden {
  opacity: 0;
  transform: translateY(-4px);
  height: 0;
  border-width: 0;
}

.content-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.close-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms;
  z-index: 10;
  padding: 0;
  font-family: Arial, sans-serif;
}

.close-panel:hover {
  background: var(--brand-pink);
  color: white;
  border-color: var(--brand-pink);
  transform: rotate(90deg);
}

.content-inner {
  display: block;
  padding: 18px;
  background: #fff;
}

.dl-col h3 {
  margin: 0 0 15px 0;
  font-size: 1.05rem;
  text-align: center;
}

.tpl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tpl-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--brand-dark);
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: background 180ms, transform 180ms, border-color 180ms;
  white-space: nowrap;
}

.tpl-link:hover {
  background: #f7f6f5;
  transform: translateY(-2px);
  border-color: var(--brand-pink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge {
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  width: 28px;
  height: 24px;
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg, var(--brand-pink), var(--brand-purple)) border-box;
  border: 2px solid transparent;
  color: #333;
}

.note {
  margin-top: 15px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

.guide-col {
  display: none; /* Hidden until video is ready */
  border-left: 1px dashed var(--border-light);
  padding-left: 18px;
  min-height: 180px;
}

.guide-col h4 {
  margin: 0 0 10px 0;
}

.ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  border: 1px solid var(--border-light);
  background: #000;
}

.ratio iframe,
.ratio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-points {
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: #4a4a4a;
}

/* ==================== PRICING TABLES ==================== */
.pricing-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--brand-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-table th {
  background: var(--brand-pink);
  color: white;
  padding: 1rem;
  font-weight: 500;
  text-align: center;
}

.pricing-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.pricing-table tr:hover {
  background: var(--brand-light);
}

/* ==================== HOW TO ORDER STEPS ==================== */
.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.order-step {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.order-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.order-step p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 968px) {
  .calculator-section {
    position: static;
  }
}

@media (max-width: 900px) {
  .content-inner {
    grid-template-columns: 1fr;
  }

  .guide-col {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 840px) {
  .size-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .design-controls {
    grid-template-columns: 1fr !important;
  }

  .delete-design {
    width: 100%;
    margin-top: 1rem;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Stack sides buttons on mobile */
  .sides-options-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sides-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== VAT TOGGLE SWITCH ==================== */
.vat-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin: 1rem 0;
}

.vat-toggle-text {
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.vat-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vat-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: #ccc;
  border-radius: 28px;
  transition: background-color 0.3s ease;
}

.vat-toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vat-toggle-label input[type="checkbox"]:checked + .vat-toggle-slider {
  background: var(--brand-purple);
}

.vat-toggle-label input[type="checkbox"]:checked + .vat-toggle-slider::before {
  transform: translateX(24px);
}

.vat-toggle-label input[type="checkbox"]:focus + .vat-toggle-slider {
  box-shadow: 0 0 0 3px rgba(146, 78, 255, 0.2);
}

.vat-toggle-label:hover .vat-toggle-slider {
  opacity: 0.9;
}

@media (max-width: 520px) {
  .size-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== PROOF BUTTON ==================== */
.proof-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-light);
  background: var(--brand-white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-dark);
  margin: 1rem 0 0 0;
  text-align: center;
  display: block;
  box-sizing: border-box;
  grid-column: 1 / -1;
}

.proof-btn:hover {
  border-color: var(--brand-pink);
  background: #fff5f7;
  color: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.proof-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  font-weight: 600;
}

.proof-btn.active:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  box-shadow: 0 2px 8px rgba(146, 78, 255, 0.3);
}

/* ==================== SIDES OPTIONS (SINGLE/DOUBLE) ==================== */
.sides-options-container {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

/* When there are checkbox extras too */
.extras-checkbox-container {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.extras-checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-pink);
}

.extras-checkbox-container label {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
  margin: 0;
  user-select: none;
  flex: 1;
}

.extras-checkbox-container .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.sides-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sides-field-label .main-label {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.sides-field-label .sub-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.sides-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-light);
  background: var(--brand-white);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: inherit;
  min-width: 160px;
  min-height: 64px;
  position: relative;
}

.sides-btn:hover {
  border-color: var(--brand-pink);
  background: #fff5f7;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.sides-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.sides-btn.active:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
}

.sides-btn-icon {
  height: 60%;
  width: auto;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.sides-btn.active .sides-btn-icon {
  filter: brightness(0) invert(1);
}

.sides-btn-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}

.sides-btn-label:empty {
  display: none;
}

.sides-btn.active .sides-btn-label {
  color: white;
}

/* ==================== PAPER SELECTOR ==================== */
.paper-selector-container {
  grid-column: 1 / -1;
  margin-top: 1rem;
  max-width: 100%;
  overflow: visible;
}

.paper-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.paper-selector-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.label-with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.learn-more-link {
  font-size: 0.85rem;
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.learn-more-link:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.paper-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.paper-thumbnail {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  background: white;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paper-thumbnail:hover {
  border-color: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
  z-index: 10000;
}

.paper-thumbnail.active {
  border-color: var(--brand-pink);
  background: #fff5f7;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.paper-thumbnail-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  position: relative;
  flex-shrink: 0;
}

.paper-info-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: help;
}

.paper-thumbnail-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.paper-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-dark);
  color: white;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  margin-bottom: 0.5rem;
}

.paper-thumbnail:hover .paper-tooltip {
  opacity: 1;
}

.paper-tooltip-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.paper-tooltip-finish {
  color: #ddd;
  margin-bottom: 0.25rem;
}

.paper-tooltip-best-for {
  font-style: italic;
  color: #ccc;
}

/* ==================== SAVINGS MESSAGE ==================== */
.savings-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(146, 78, 255, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--brand-pink);
  font-size: 0.9rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: normal;
  margin-right: 0.5rem;
}

.summary-qty {
  font-weight: 600;
  color: var(--brand-pink);
}

.warning-row {
  background: #fff3cd;
  border-color: #ffc107 !important;
  padding: 0.75rem !important;
}

/* ==================== MEDIA FILTER BUTTONS ==================== */
.media-filter-buttons {
  margin-bottom: 1.5rem;
}

.media-group {
  margin-bottom: 1rem;
}

.media-group-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.size-filter-btn:hover {
  border-color: var(--brand-pink);
  background: #fff5f7;
  transform: translateY(-1px);
}

.size-filter-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  font-weight: 600;
}
