/* General Layout Architecture */
.main-content {
  width: 100%;
  background-color: #fdfeff;
  padding: 40px 0 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Page Typography Title Contexts */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 4px 0;
}

.page-subtitle {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Master Grid Structure Definition */
.trolley-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
}

.trolley-items-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trolley-summary-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Delivery Progress Card Component Layout */
.delivery-progress-card {
  background-color: #f0faf4;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-message {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.text-primary {
  color: var(--color-primary);
  font-weight: 900;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: rgba(25, 27, 32, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
}

.progress-caption {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Line Item Interface Component Rows */
.line-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trolley-item-card {
  background-color: var(--color-white);
  border: 1px solid #eef1f0;
  border-radius: var(--radius-card);
  padding: 18px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

.item-thumbnail-box {
  width: 64px;
  height: 64px;
  background-color: #f0faf4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.thumbnail-icon {
  font-family: var(--font-display);
  font-size: 26px;
}

.item-details-block {
  flex-grow: 1;
}

.item-title {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 4px 0;
}

.item-meta {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Quantity Control Operational Module layout */
.quantity-control-module {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid rgba(1, 68, 45, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 38px;
  margin-right: 40px;
}

.qty-btn {
  background: none;
  border: none;
  width: 36px;
  height: 100%;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.qty-btn:hover {
  background-color: #f4f6f5;
}

.qty-display-box {
  width: 56px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.qty-input-field {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input-field::-webkit-outer-spin-button,
.qty-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input-field:focus {
  background-color: rgba(1, 68, 45, 0.04);
  outline: none;
}

/* Item Column Financial Indicators */
.item-pricing-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 90px;
  margin-right: 20px;
}

.item-total-price {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.item-unit-calc {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.action-remove-item {
  background: none;
  border: none;
  color: rgba(25, 27, 32, 0.3);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  padding: 4px;
  outline: none;
  transition: color 0.15s ease;
}

.action-remove-item:hover {
  color: #ff4d4d;
}

/* Inline Action Utilities */
.continue-shopping-inline {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.btn-link-action {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  display: inline-block;
}

.btn-link-action:hover {
  color: var(--color-primary);
}

/* Order Ledger Card System Formatting */
.summary-card {
  background-color: var(--color-white);
  border: 1px solid #eef1f0;
  border-radius: var(--radius-card);
  padding: 28px;
}

.summary-card h2 {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0 0 24px 0;
}

.ledger-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text-muted);
}

.ledger-val {
  font-weight: 600;
  color: var(--color-text-dark);
}

.rewards-row .ledger-val {
  color: var(--color-primary);
}

.ledger-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f4f6f5;
  padding-top: 18px;
  margin-top: 6px;
}

.total-label {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-dark);
}

.total-val {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.summary-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.action-checkout-submit {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  font-size: 14px;
}

.action-continue-navigation {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Incentives Marketing Module Code */
.coupon-redemption-card {
  background-color: var(--color-white);
  border: 1px solid #eef1f0;
  border-radius: var(--radius-card);
  padding: 24px;
}

.coupon-redemption-card h3 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 14px 0;
}

.coupon-input-group {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
}

.coupon-input-group input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(1, 68, 45, 0.15);
  background-color: #fafbfc;
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.btn-apply-coupon {
  height: 42px;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-apply-coupon:hover {
  background-color: var(--color-primary);
}

/* Eco-Compliance Information Pillar Layout */
.eco-compliance-pill {
  background-color: #f0faf4;
  border-radius: var(--radius-card);
  padding: 14px;
  text-align: center;
}

.eco-message {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-muted);
}