/* Order Page Design System */

.order-skip-link {
  position: fixed;
  z-index: 1100;
  top: 0.5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--order-card);
  border: 2px solid var(--order-accent);
  border-radius: 0.5rem;
  transform: translateY(-200%);
}
.order-skip-link:focus { transform: translateY(0); }
body.order-page .order-summary-action {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  vertical-align: middle;
}
body.order-page .navbar-toggler { min-height: 44px; }
body.order-page .order-share-modal .close { min-width: 44px; min-height: 44px; }
body.order-page a:focus-visible,
body.order-page button:focus-visible {
  outline: 3px solid var(--order-accent);
  outline-offset: 3px;
}

body.order-page {
  --order-accent: #1F2933;
  --order-accent-muted: #3F4C5C;
  --order-accent-soft: #E6E9F4;
  --order-accent-dark: #111827;
  --order-text: #1F2933;
  --order-muted: #6B7280;
  --order-surface: #F6F7FB;
  --order-surface-alt: #FFFFFF;
  --order-card: #FFFFFF;
  --order-border: #E5E7EF;
  --order-shadow: 0 22px 45px rgba(15, 18, 36, 0.10);
  --order-card-radius: 18px;
  font-family: 'Inter', 'Roboto Slab', sans-serif;
  background: var(--order-surface);
  color: var(--order-text);
  min-height: 100vh;
}

body.order-page ::selection {
  background: var(--order-accent);
  color: #ffffff;
}

body.order-page a {
  color: var(--order-accent);
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.order-page a:hover,
body.order-page a:focus {
  color: var(--order-accent-dark);
  text-decoration: none;
}

body.order-page .order-page-surface {
  background: var(--order-surface);
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

body.order-page .order-page-surface-inner {
  position: relative;
  z-index: 1;
}

body.order-layout--minimal-ledger {
  background: #f0f2f8;
}

body.order-layout--minimal-ledger .order-page-surface {
  background: transparent;
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

body.order-layout--minimal-ledger .order-page-surface-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d3d8e7;
  box-shadow: 0 28px 48px rgba(17, 24, 39, 0.08);
  padding: 2.5rem 2.75rem 3rem;
}

body.order-page .order-page-section {
  padding: 2.25rem 0;
}

body.order-layout--classic-refined .order-page-section {
  padding: 1.5rem 0;
}

body.order-layout--minimal-ledger .order-page-section {
  padding: 1.75rem 0;
}

body.order-layout--minimal-ledger .order-page-section--summary {
  border-bottom: 1px solid #d9dce5;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

body.order-layout--minimal-ledger .order-page-section--items {
  padding-top: 1.25rem;
}

body.order-page .order-page-section:first-of-type {
  padding-top: 0;
}

body.order-page .order-page-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

body.order-layout--minimal-ledger .order-page-grid {
  margin-left: 0;
  margin-right: 0;
}

body.order-page .order-page-column {
  margin-bottom: 1.5rem;
}

body.order-layout--classic-refined .order-page-column {
  margin-bottom: 1rem;
}

body.order-layout--minimal-ledger .order-page-column {
  margin-bottom: 1.75rem;
}

body.order-page .order-page-column > * {
  height: 100%;
  width: 100%;
}

body.order-page .card {
  border: 1px solid var(--order-border);
  border-radius: var(--order-card-radius);
  background: var(--order-card);
  box-shadow: var(--order-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.order-layout--minimal-ledger .card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

body.order-page .card:hover,
body.order-page .card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(15, 18, 36, 0.14);
}

body.order-layout--minimal-ledger .card:hover,
body.order-layout--minimal-ledger .card:focus-within {
  transform: none;
  box-shadow: none;
}

body.order-page .card-header {
  border: none;
  background: var(--order-accent-soft);
  color: var(--order-accent-dark);
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.order-layout--minimal-ledger .card-header {
  background: transparent;
  border: none;
  color: #1f2933;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0 0.75rem;
  text-transform: uppercase;
  justify-content: flex-start;
}

body.order-page .card-header a,
body.order-page .card-header i {
  color: inherit;
}

body.order-page .card-body {
  padding: 1.75rem 1.75rem 1.5rem;
  color: var(--order-text);
}

body.order-layout--minimal-ledger .card-body {
  padding: 0;
  color: #364152;
}

body.order-page .card-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--order-text);
  margin-bottom: 0.85rem;
}

body.order-layout--minimal-ledger .card-text {
  font-size: 0.95rem;
  color: #364152;
  margin-bottom: 0.65rem;
}

body.order-page .card-text b {
  color: var(--order-accent-dark);
}

body.order-layout--minimal-ledger .card-text b {
  color: #1f2933;
}

body.order-layout--minimal-ledger .card-body > *:last-child {
  margin-bottom: 0;
}
body.order-page .card-body .badge {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: var(--order-accent-soft);
  color: var(--order-accent-dark);
}

body.order-layout--minimal-ledger .card-body .badge {
  border-radius: 4px;
  background: #e5e8f4;
  color: #1f2933;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.order-page .table-responsive {
  border-radius: calc(var(--order-card-radius) - 4px);
  border: 1px solid var(--order-border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

body.order-page .order-total-strip {
  background: var(--order-surface-alt);
  border-bottom: 1px solid var(--order-border);
}

body.order-page .order-total-strip .h5 {
  color: var(--order-accent-dark);
}

body.order-layout--minimal-ledger .order-total-strip {
  background: #ffffff;
  border: 1px solid #d9dce5;
  margin-bottom: 0.75rem;
}

body.order-layout--minimal-ledger .order-total-strip .h5 {
  color: #1f2933;
}

body.order-layout--minimal-ledger .table-responsive {
  border: none;
  overflow: visible;
}

body.order-page .table {
  margin-bottom: 0;
  color: var(--order-text);
}

body.order-layout--minimal-ledger .table {
  border-collapse: collapse;
  color: #1f2933;
}

body.order-page .table thead {
  background: var(--order-accent-soft);
  border-bottom: 1px solid var(--order-border);
}

body.order-layout--minimal-ledger .table thead {
  background: #f5f7fb;
  border-bottom: 1px solid #d9dce5;
}

body.order-page .table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--order-accent-dark);
  border: none;
  padding-top: 0.9rem;
  padding-bottom: 0.75rem;
}

body.order-layout--minimal-ledger .table thead th {
  border: 1px solid #d9dce5;
  color: #3d4f65;
  font-size: 0.78rem;
  padding: 0.85rem 0.9rem;
}

body.order-page .table tbody td {
  border-top: 1px solid rgba(229, 231, 239, 0.6);
  padding: 0.95rem 0.85rem;
  vertical-align: middle;
}

body.order-layout--minimal-ledger .table tbody td {
  border: 1px solid #d9dce5;
  padding: 0.85rem 0.9rem;
}

body.order-page .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(230, 233, 245, 0.28);
}

body.order-layout--minimal-ledger .table-striped tbody tr:nth-of-type(odd) {
  background-color: transparent;
}

body.order-layout--minimal-ledger .table th:nth-of-type(3),
body.order-layout--minimal-ledger .table td:nth-of-type(3) {
  text-align: center;
}

body.order-layout--minimal-ledger .table th:nth-of-type(4),
body.order-layout--minimal-ledger .table th:nth-of-type(5),
body.order-layout--minimal-ledger .table td:nth-of-type(4),
body.order-layout--minimal-ledger .table td:nth-of-type(5) {
  text-align: right;
}

body.order-page .cta {
  border-radius: var(--order-card-radius);
  background: var(--order-accent-dark);
  color: #ffffff;
  padding: 2.15rem 2rem !important;
  box-shadow: 0 28px 45px rgba(17, 24, 39, 0.26);
}

body.order-layout--minimal-ledger .cta {
  border-radius: 0;
  background: transparent;
  color: #1f2933;
  padding: 1.85rem 0 !important;
  box-shadow: none;
  text-align: left;
}

body.order-page .cta a,
body.order-page .cta i {
  color: inherit;
}

body.order-page .cta button,
body.order-page .cta .square_payment,
body.order-page .cta .stripe-button-el span {
  border: none;
  border-radius: 999px !important;
  background: var(--order-accent);
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 2.25rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 22px 38px rgba(31, 41, 51, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.order-layout--minimal-ledger .cta button,
body.order-layout--minimal-ledger .cta .square_payment,
body.order-layout--minimal-ledger .cta .stripe-button-el span {
  border-radius: 4px !important;
  background: #1f2933;
  box-shadow: none;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.65rem !important;
}

body.order-page .cta button:hover,
body.order-page .cta .square_payment:hover,
body.order-page .cta .stripe-button-el span:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 48px rgba(31, 41, 51, 0.4);
}

body.order-page pre {
  background: transparent;
  border: none;
  color: var(--order-muted);
  font-size: 0.82rem;
  margin-top: 1rem;
}

body.order-page .badge-primary,
body.order-page .badge-success {
  background: var(--order-accent);
  color: #ffffff;
}

body.order-page .badge-success {
  background: var(--order-accent-muted);
}

body.order-page .navybg {
  background: var(--order-accent);
  border: none;
}

body.order-page #payment i {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.order-page #payment .order-payment-lock {
  color: lightgreen !important;
}

body.order-page.order-payment-custom .order-page-payment {
  background: var(--order-payment-panel-bg);
  color: var(--order-payment-text);
}

body.order-page.order-payment-custom .order-page-payment pre {
  color: var(--order-payment-text);
}

body.order-page.order-payment-custom .order-page-payment .order-payment-deposit {
  background: var(--order-payment-deposit-bg) !important;
  color: var(--order-payment-text) !important;
}

body.order-page.order-payment-custom .order-page-payment #cardIcons i {
  color: var(--order-payment-icon) !important;
}

body.order-page.order-payment-custom #payment .order-payment-lock {
  color: var(--order-payment-text) !important;
}

/* Layout helpers */
body.order-layout--classic-refined #customerDetails,
body.order-layout--classic-refined #orderDetails {
  display: flex;
}

body.order-layout--classic-refined #customerDetails .card,
body.order-layout--classic-refined #orderDetails .card {
  flex: 1 1 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  body.order-page .order-page-section {
    padding: 1.75rem 0;
  }

  body.order-page .card-body {
    padding: 1.45rem 1.35rem 1.3rem;
  }

  body.order-page .cta {
    padding: 1.75rem 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  body.order-page .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Print adjustments */
@media print {
  body.order-page .order-page-surface {
    background: #ffffff !important;
    padding: 0;
  }
  body.order-page .card,
  body.order-page .cta {
    box-shadow: none !important;
  }
}

.order-layout--minimal-ledger #payment i.fa-brands {
  color: #444444 !important;
}
.order-layout--minimal-ledger .order-page-section.order-page-section--items .container,
.order-layout--minimal-ledger .order-page-section.order-page-section--summary .container{
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
.order-layout--minimal-ledger .order-page-column.order-page-column--items {
  padding-left: 0 !important;;
  padding-right:  0!important;;
}
.order-layout--minimal-ledger #payment {
  padding-left: 0 !important;;
  padding-right: 0 !important;;
}
.order-layout--minimal-ledger .cta{
  margin-top: 0 !important;
}
