/* Basildon Delivery legacy shared stylesheet.
 * Interface-specific rules are being migrated into assets/css/*.css.
 * Shared foundations now live in assets/css/core.css.
 */

.storefront-page {
  background: linear-gradient(180deg, #edf5ff 0%, var(--bg) 180px);
}
.storefront-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.storefront-meta {
  display: grid;
  gap: 12px;
}
.storefront-layout {
  grid-template-columns: 280px 1fr;
}
.category-nav {
  display: grid;
  gap: 10px;
}
.category-nav .button.is-active {
  background: var(--accent-soft);
  border-color: #bfd4ea;
}
.storefront-section {
  display: grid;
  gap: 16px;
}
.storefront-item-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.storefront-item-card {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.storefront-item-card.is-unavailable {
  opacity: .88;
}
.price-tag {
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}
.price-tag.large {
  font-size: 1.1rem;
  padding: 11px 16px;
}
.badge.success {
  background: var(--success-soft);
  color: var(--success);
}
.badge.warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
@media (max-width: 960px) {
  .storefront-layout,
  .storefront-item-grid {
    grid-template-columns: 1fr;
  }
}


/* Storefront customer polish - April 2026 */
.storefront-page {
  background:
    radial-gradient(circle at top left, rgba(24, 111, 175, 0.18), transparent 34rem),
    linear-gradient(180deg, #eef7ff 0%, #f6f8fb 260px, #f4f7fb 100%);
}

.storefront-page .app-shell {
  width: min(1220px, calc(100% - 28px));
  padding-top: 18px;
}

.shop-empty-basket.has-pending-payment-order {
  border-color: rgba(173, 106, 0, 0.28);
  background: linear-gradient(180deg, #fffaf0, rgba(255, 255, 255, 0.96));
}


.shop-hero-pro,
.shop-account-nudge {
  border: 1px solid rgba(188, 204, 220, 0.75);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.shop-hero-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.shop-hero-pro::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(24, 111, 175, 0.10);
  pointer-events: none;
}

.shop-hero-copy,
.shop-hero-card {
  position: relative;
  z-index: 1;
}

.shop-hero-copy h1,
.shop-item-hero-card h1,
.shop-section-heading h1,
.shop-section-heading h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.shop-hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  max-width: 760px;
}

.shop-hero-copy p:not(.page-kicker) {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.shop-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.shop-hero-actions.centered {
  justify-content: center;
}

.shop-hero-card {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(188, 204, 220, 0.82);
}

.shop-product-badges,
.shop-item-price-row,
.shop-form-actions,
.shop-check-row-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-summary-grid div,
.shop-total-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.shop-summary-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
}

.shop-summary-grid span,
.shop-total-list span {
  color: var(--muted);
  font-weight: 750;
}

.shop-summary-grid strong,
.shop-total-list strong {
  color: var(--text);
}

.shop-alert {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.shop-alert p { margin: 0; }

.shop-catalogue-layout,
.shop-checkout-layout,
.shop-item-detail-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.shop-catalogue-layout { grid-template-columns: 260px minmax(0, 1fr); }
.shop-checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.shop-item-detail-layout { grid-template-columns: minmax(0, 1fr) 360px; }

.shop-sidebar,
.shop-summary-aside,
.shop-buy-box {
  display: grid;
  gap: 14px;
}

.shop-sidebar {
  position: sticky;
  top: 98px;
}

.shop-panel,
.shop-item-hero-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(188, 204, 220, 0.78);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.shop-panel h2,
.shop-info-panel h2 {
  margin-top: 0;
}

.shop-category-list {
  display: grid;
  gap: 8px;
}

.shop-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.shop-category-link:hover,
.shop-category-link.is-active {
  background: var(--accent-soft);
  border-color: rgba(24, 111, 175, 0.2);
  text-decoration: none;
}

.shop-info-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.shop-ordering-info-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.shop-ordering-info-text p {
  margin: 0;
}

.shop-section-heading,
.shop-product-section-title,
.shop-product-card-top,
.shop-cart-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.shop-section-heading {
  margin-bottom: 14px;
}

.shop-section-heading.compact {
  align-items: center;
}

.shop-product-section + .shop-product-section {
  margin-top: 22px;
}

.shop-product-section-title {
  align-items: center;
  margin-bottom: 12px;
}

.shop-product-section-title h3,
.shop-product-card h3,
.shop-cart-line h3,
.shop-choice-preview h3 {
  margin: 0;
}

.shop-product-section-title span,
.shop-product-card-top p,
.shop-cart-line p {
  color: var(--muted);
  margin: 5px 0 0;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shop-product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(188, 204, 220, 0.8);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.shop-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
  border-color: rgba(24, 111, 175, 0.28);
}

.shop-product-card.is-unavailable {
  opacity: 0.78;
}

.shop-product-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.shop-product-description.large-copy {
  font-size: 1.05rem;
}

.shop-product-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.shop-text-link {
  font-weight: 850;
  color: var(--accent);
  text-decoration: none;
}

.shop-text-link:hover { text-decoration: underline; }

.shop-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
  margin: 0 0 18px;
}

.shop-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.shop-breadcrumb a:hover { text-decoration: underline; }

.shop-choice-preview-list,
.shop-add-form,
.shop-basket-form,
.shop-checkout-form,
.shop-cart-lines {
  display: grid;
  gap: 14px;
}

.shop-choice-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
}

.shop-option-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-option-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 750;
  color: var(--muted);
}

.shop-option-group-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--panel-soft);
}

.shop-option-group-fieldset legend {
  padding: 0 7px;
  font-weight: 900;
}

.shop-choice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.shop-choice-row input {
  width: auto;
}

.shop-empty-basket {
  text-align: center;
  padding: 42px 18px;
}

.shop-empty-basket h2 { margin-top: 0; }

.shop-empty-basket p {
  margin-bottom: 0;
}

.shop-empty-basket .button {
  margin-top: 22px;
}

.shop-cart-line {
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.shop-cart-lines.compact .shop-cart-line {
  padding: 13px 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.shop-cart-line-main {
  min-width: 0;
}

.shop-qty-control {
  display: grid;
  gap: 5px;
  width: 92px;
  color: var(--muted);
  font-weight: 800;
}

.shop-qty-control input {
  text-align: center;
}

.shop-cart-line-total {
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.shop-total-list {
  display: grid;
  gap: 0;
}

.shop-total-list div:last-child {
  border-bottom: 0;
}

.shop-total-list .shop-total-grand {
  margin-top: 4px;
  padding-top: 16px;
  font-size: 1.12rem;
}

.full-width {
  width: 100%;
  margin-top: 14px;
}

.shop-account-nudge {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.shop-account-nudge p { margin: 5px 0 0; color: var(--muted); }

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shop-form-grid .span-two {
  grid-column: 1 / -1;
}

.shop-checkout-form [data-delivery-address-section] {
  max-height: 180px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s ease,
    opacity 0.18s ease,
    transform 0.22s ease,
    margin 0.28s ease,
    padding 0.28s ease;
}

.shop-checkout-form .shop-check-row-group[data-delivery-address-section] {
  max-height: 90px;
}

.shop-checkout-form.is-pickup-fulfilment [data-delivery-address-section] {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.shop-warning-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 800;
}

.shop-warning-check input,
.shop-check-row-group input {
  width: auto;
}

@media (max-width: 980px) {
  .shop-hero-pro,
  .shop-catalogue-layout,
  .shop-checkout-layout,
  .shop-item-detail-layout,
  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .shop-category-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  .catalogue-bulk-toolbar {
    padding: 9px 10px;
  }

  .catalogue-bulk-toolbar form {
    align-items: stretch;
  }

  .catalogue-bulk-selection {
    width: 100%;
  }

  .catalogue-bulk-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .catalogue-bulk-move {
    flex: 1 1 180px;
  }

  .catalogue-bulk-move select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .storefront-page .app-shell {
    width: min(100% - 18px, 1220px);
    padding-top: 10px;
  }

  .shop-account-nudge,
  .shop-product-actions,
  .shop-section-heading,
  .shop-product-section-title,
  .shop-product-card-top,
  .shop-cart-line {
    flex-direction: column;
  }


  .shop-hero-pro {
    border-radius: 22px;
    padding: 22px;
  }

  .shop-hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .shop-summary-grid,
  .shop-form-grid {
    grid-template-columns: 1fr;
  }

  .shop-cart-line {
    align-items: stretch;
  }

  .shop-qty-control {
    width: 100%;
  }

  .shop-form-grid .span-two {
    grid-column: auto;
  }
}

/* Shared account-entry styles retained in the legacy sheet for pages that
 * are not part of the customer interface yet, including rider signup,
 * basket/order recovery and public account pages. */
.customer-account-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
}


.customer-account-topnav .shop-brand-mark {
  background: linear-gradient(135deg, #102a43, #186faf);
}

@media (max-width: 760px) {
  .customer-account-hero {
    grid-template-columns: 1fr;
  }
}


.shop-preorder-banner {
  border-color: rgba(14, 116, 144, 0.22);
  background: linear-gradient(135deg, #ecfeff, #f8fbff);
}

.shop-ordering-paused {
  border-color: rgba(180, 83, 9, 0.22);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.shop-notice {
  border-color: rgba(24, 111, 175, 0.22);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.shop-preorder-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 750;
  line-height: 1.5;
}

.shop-alert.mini {
  padding: 10px 12px;
  margin: 10px 0 0;
  box-shadow: none;
  font-size: 0.92rem;
}

.preference-save-status {
  min-height: 2.65rem;
}

.preference-save-status.is-placeholder {
  visibility: hidden;
}


/* Shop logos */
.shop-brand-mark.has-image,
.platform-shop-avatar.has-image,
.shop-directory-logo.has-image,
.shop-hero-logo.has-image,
.shop-logo-preview.has-image {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(188, 204, 220, 0.9);
  color: transparent;
}

.shop-brand-mark.has-image img,
.platform-shop-avatar.has-image img,
.shop-directory-logo.has-image img,
.shop-hero-logo.has-image img,
.shop-logo-preview.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 5px;
}

.platform-shop-avatar.has-image img {
  padding: 6px;
}

.platform-shop-avatar.large.has-image img {
  padding: 8px;
}

.shop-logo-editor {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(188, 204, 220, 0.82);
  border-radius: 22px;
  background: #f8fbff;
}

.shop-logo-preview {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(135deg, #102a43, #186faf);
  color: #fff;
  font-size: 2.3rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.shop-logo-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.shop-logo-controls p,
.shop-logo-controls .flash {
  margin: 0;
}

.logo-upload-button {
  align-self: flex-start;
  cursor: pointer;
}

.logo-upload-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}

.shop-directory-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shop-directory-logo,
.shop-hero-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #102a43, #186faf);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.shop-directory-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 1.5rem;
}

.shop-hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.shop-hero-title-row .page-kicker,
.shop-hero-title-row h1 {
  margin: 0;
}

.shop-hero-title-row .page-kicker {
  margin-bottom: 8px;
}

.shop-hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  font-size: 2.4rem;
}

@media (max-width: 720px) {
  .shop-logo-editor {
    grid-template-columns: 1fr;
  }

  .shop-hero-title-row {
    align-items: flex-start;
  }

  .shop-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    font-size: 1.9rem;
  }
}

@media (max-width: 430px) {
  .platform-brand-image {
    height: 50px;
    max-width: min(320px, 100%);
  }
}

/* Public footer and placeholder policy pages */
.public-footer {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(188, 204, 220, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.public-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.public-footer-brand-block {
  display: grid;
  gap: 12px;
}

.public-footer-brand-block p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.65;
}

.public-footer .public-footer-brand .platform-brand-image {
  height: 64px;
  max-width: min(330px, 100%);
}

.public-footer-links {
  display: grid;
  gap: 9px;
}

.public-footer-links h2 {
  margin: 0 0 4px;
  color: #08233d;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.public-footer-links a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.public-footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.public-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(188, 204, 220, 0.62);
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-hero {
  margin-bottom: 18px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(188, 204, 220, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(24, 111, 175, 0.18), transparent 16rem),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.policy-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #08233d;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.policy-hero p:not(.page-kicker) {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.policy-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.policy-card {
  display: grid;
  gap: 12px;
}

.policy-card h2 {
  margin: 0;
  color: #08233d;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card li + li {
  margin-top: 7px;
}

.policy-card.warning-card {
  border-color: rgba(173, 106, 0, 0.32);
  background: #fffaf0;
}

@media (max-width: 940px) {
  .public-footer-grid,
  .policy-layout {
    grid-template-columns: 1fr 1fr;
  }

  .public-footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .public-footer,
  .policy-hero {
    border-radius: 22px;
  }

  .public-footer-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .public-footer .public-footer-brand .platform-brand-image {
    height: 54px;
  }

  .policy-hero h1 {
    max-width: 100%;
  }
}


.shop-age-check-panel {
    border: 1px solid rgba(180, 83, 9, 0.22);
    background: rgba(255, 247, 237, 0.72);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.shop-age-check-panel h2 {
    margin: 0;
}

.shop-age-check-panel p {
    margin: 0;
}

.shop-age-check-panel input[type="date"] {
    max-width: 240px;
}

.shop-basket-link,
[data-basket-view-link] {
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.shop-basket-link.is-basket-updated,
[data-basket-view-link].is-basket-updated {
  animation: basket-bump .55s ease;
  box-shadow: 0 10px 24px rgba(24, 111, 175, 0.18);
}

.basket-fly-item {
  position: fixed;
  z-index: 2000;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: transform .62s cubic-bezier(.2, .9, .25, 1), opacity .62s ease;
}

@keyframes basket-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-basket-link.is-basket-updated,
  [data-basket-view-link].is-basket-updated {
    animation: none;
  }

  .basket-fly-item {
    display: none;
  }
}

/* Public support/contact page */
.support-page .support-alert {
  margin-bottom: 18px;
}

.support-option-card {
  align-content: start;
}

.support-option-card.is-selected {
  border-color: rgba(24, 111, 175, 0.42);
  box-shadow: 0 18px 44px rgba(24, 111, 175, 0.12);
}

.support-form-card {
  grid-column: 1 / -1;
}

.support-form-card .shop-section-heading {
  align-items: start;
}

.support-contact-form {
  margin-top: 8px;
}

.support-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Rider public profile card */
.rider-public-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-soft);
  margin-top: 12px;
}
.rider-public-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #eaf3ff;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.05rem;
  border: 1px solid rgba(24, 111, 175, 0.20);
}
.rider-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rider-public-info {
  min-width: 0;
}
.rider-public-info .page-kicker {
  margin-bottom: 2px;
}
.rider-public-info h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}
.rider-public-info p:not(.page-kicker) {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .rider-public-card {
    align-items: flex-start;
  }
  .rider-public-avatar {
    width: 50px;
    height: 50px;
  }
}

.button.ghost.danger,
button.ghost.danger {
  border-color: rgba(201, 60, 55, 0.28);
  color: var(--danger);
}
.button.ghost.danger:hover,
button.ghost.danger:hover {
  background: var(--danger-soft);
}

/* Patch 29: order adjustments */
.order-adjustment-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.order-adjustment-form {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border, #d8e3ef);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
}

.order-adjustment-form summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink, #08233f);
}

.order-adjustment-form form {
    margin-top: 12px;
}

.form-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
}

.check-row input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

/* Patch 34: product image fit and positioning controls */
.image-fit-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-fit-controls label {
  min-width: 0;
}

.item-image-preview img,
.catalogue-product-image img,
.shop-product-image img,
.shop-item-main-image img,
.shop-cart-line-image img {
  background: #f8fbff;
}

@media (max-width: 760px) {
  .image-fit-controls {
    grid-template-columns: 1fr;
  }
}


/* Compact public footer */
.public-footer {
  margin-top: 20px;
  padding: 22px 26px 16px;
  border-radius: 24px;
}

.public-footer-grid {
  gap: 18px 28px;
  align-items: start;
}

.public-footer-brand-block {
  gap: 9px;
}

.public-footer-brand .platform-brand-image {
  height: 52px;
  max-width: 220px;
}

.public-footer-brand-block p {
  max-width: 34ch;
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.48;
}

.public-footer-links {
  gap: 6px;
}

.public-footer-links h2 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.public-footer-links a {
  font-size: 0.92rem;
  line-height: 1.25;
}

.public-footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  gap: 8px 18px;
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .public-footer {
    margin-top: 14px;
    padding: 15px 15px 13px;
    border-radius: 20px;
  }

  .public-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
  }

  .public-footer-brand-block {
    grid-column: 1 / -1;
  }

  .public-footer-brand .platform-brand-image {
    height: 42px;
    max-width: 190px;
  }

  .public-footer-brand-block p {
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .public-footer-links h2,
  .public-footer-links a {
    font-size: 0.84rem;
  }

  .public-footer-links {
    gap: 5px;
  }

  .public-footer-bottom {
    display: grid;
    justify-content: stretch;
    margin-top: 12px;
    padding-top: 10px;
    gap: 5px;
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .public-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Public support page polish */
.support-page {
  background:
    radial-gradient(circle at 12% 4%, rgba(115, 191, 67, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(24, 111, 175, 0.13), transparent 30rem),
    linear-gradient(180deg, #eef8f1 0%, #f5f8fb 310px, #f4f7fb 100%);
}

.support-page .app-shell {
  padding-bottom: 30px;
}

.support-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 253, 240, 0.96) 36%, rgba(232, 245, 255, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(15, 47, 70, 0.11);
}

.support-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -64px;
  width: clamp(210px, 27vw, 340px);
  aspect-ratio: 1;
  background: url("img/basildon-delivery-icon.png") center / contain no-repeat;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}

.support-hero .page-kicker,
.support-form-card .page-kicker,
.support-option-card.is-selected h2 {
  color: #277247;
}

.support-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #0f2f46;
  font-size: clamp(2.25rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.support-hero p:not(.page-kicker) {
  position: relative;
  z-index: 1;
  max-width: 68ch;
  margin: 14px 0 0;
  color: #34516a;
  font-size: 1.05rem;
  line-height: 1.62;
}

.support-alert {
  margin-bottom: 14px;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.support-option-card,
.support-form-card {
  border-radius: 24px;
  border-color: rgba(188, 204, 220, 0.74);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 47, 70, 0.07);
}

.support-option-card {
  display: grid;
  gap: 9px;
  min-height: 100%;
}

.support-option-card h2 {
  margin-bottom: 0;
  color: #0f2f46;
}

.support-option-card p {
  margin: 0;
  line-height: 1.5;
}

.support-option-card.is-selected {
  border-color: rgba(39, 114, 71, 0.28);
  background: linear-gradient(135deg, #f0fff6 0%, #ffffff 72%);
}

.support-option-card .card-actions {
  margin-top: auto;
}

.support-form-card {
  grid-column: 1 / -1;
  padding: clamp(18px, 3vw, 26px);
}

.support-form-card > p {
  max-width: 78ch;
  color: #486581;
  line-height: 1.55;
}

.support-form-card .badge.info {
  background: #e8f7ef;
  color: #277247;
}

.support-contact-form {
  margin-top: 14px;
}

.support-form-status {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: #eef2f6;
  font-weight: 850;
}

.support-form-status.success-text {
  background: #e8f7ef;
  color: #166c3b;
}

.support-form-status.danger-text {
  background: #fdeaea;
  color: #991b1b;
}

.support-contact-form label {
  font-weight: 850;
  color: #0f2f46;
}

.support-contact-form input,
.support-contact-form select,
.support-contact-form textarea {
  border-color: rgba(188, 204, 220, 0.95);
  background: #fff;
}

.support-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.support-form-actions .button.primary,
.support-option-card .button.primary {
  background: #277247;
  border-color: rgba(39, 114, 71, 0.24);
  color: #fff;
}

.support-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .support-options {
    grid-template-columns: 1fr;
  }

  .support-hero {
    border-radius: 24px;
    padding: 18px;
  }

  .support-hero::after {
    right: -86px;
    top: -42px;
    width: 240px;
    opacity: 0.055;
  }

  .support-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .support-hero p:not(.page-kicker) {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .support-option-card,
  .support-form-card {
    border-radius: 20px;
    padding: 15px;
  }

  .support-form-card .shop-section-heading {
    display: grid;
    gap: 10px;
  }

  .support-form-actions .button {
    width: 100%;
  }
}

/* Slimmer public/shop header navigation */
.storefront-page .shop-topnav {
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 7px 10px;
  margin-bottom: 18px;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
}

.storefront-page .platform-public-nav {
  padding: 6px 10px;
}

.storefront-page .platform-brand-image-link {
  margin-block: -18px;
}

.storefront-page .platform-brand-image {
  height: 92px;
}

.storefront-page .shop-nav-links {
  gap: 4px;
}

.storefront-page .shop-nav-link {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 850;
}

.storefront-page .shop-nav-link-strong {
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.16);
}

@media (max-width: 760px) {
  .storefront-page .shop-topnav {
    gap: 10px;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .storefront-page .platform-brand-image-link {
    margin-block: -7px;
  }

  .storefront-page .platform-brand-image {
    height: 56px;
  }
}

/* Shop directory page polish */
.shop-directory-page {
  background:
    radial-gradient(circle at 12% 4%, rgba(115, 191, 67, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(24, 111, 175, 0.13), transparent 30rem),
    linear-gradient(180deg, #eef8f1 0%, #f5f8fb 310px, #f4f7fb 100%);
}

.shop-directory-page .app-shell {
  padding-bottom: 30px;
}

.shop-directory-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 253, 240, 0.96) 34%, rgba(232, 245, 255, 0.94) 100%);
  box-shadow: 0 18px 48px rgba(15, 47, 70, 0.11);
}

.shop-directory-hero::after {
  content: "";
  position: absolute;
  left: clamp(4px, 3vw, 42px);
  top: clamp(24px, 5vw, 62px);
  width: clamp(280px, 34vw, 440px);
  aspect-ratio: 1;
  background: url("img/basildon-delivery-icon.png") center / contain no-repeat;
  opacity: 0.09;
  transform: rotate(-10deg);
  pointer-events: none;
}

.shop-directory-hero-copy,
.shop-directory-summary-card {
  position: relative;
  z-index: 1;
}

.shop-directory-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
}

.shop-directory-hero .page-kicker,
.shop-directory-heading .page-kicker,
.shop-directory-summary-card .page-kicker {
  color: #277247;
}

.shop-directory-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0f2f46;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-directory-hero-copy > p:not(.page-kicker) {
  max-width: 64ch;
  margin: 14px 0 0;
  color: #34516a;
  font-size: 1.06rem;
  line-height: 1.6;
}

.shop-directory-hero-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.shop-directory-hero-points span,
.shop-directory-meta-row span,
.shop-directory-fee-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8f1;
  color: #285c3c;
  font-size: 0.8rem;
  font-weight: 900;
}

.shop-directory-summary-card {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(39, 114, 71, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
  box-shadow: 0 14px 36px rgba(15, 47, 70, 0.10);
}

.shop-directory-summary-card h2 {
  margin: 0;
  color: #0f2f46;
}

.shop-directory-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.shop-directory-summary-grid div {
  display: grid;
  gap: 5px;
  min-height: 82px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 17px;
  background: #f5fbff;
}

.shop-directory-summary-grid span {
  color: #486581;
  font-size: 0.78rem;
  font-weight: 850;
}

.shop-directory-summary-grid strong {
  color: #0f2f46;
  font-size: 2rem;
  line-height: 1;
}

.shop-directory-section {
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.shop-directory-heading {
  margin-bottom: 16px;
}

.shop-directory-heading h2 {
  color: #0f2f46;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.shop-directory-heading p {
  max-width: 72ch;
}

.shop-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 14px;
}

.shop-directory-card {
  display: grid;
  gap: 13px;
  min-height: 100%;
  padding: 17px;
  border: 1px solid rgba(188, 204, 220, 0.76);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 47, 70, 0.07);
}

.shop-directory-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.shop-directory-card-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.shop-directory-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #73bf43, #277247);
  color: #fff;
  font-weight: 950;
}

.shop-directory-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-directory-card h3 {
  margin: 0;
  color: #0f2f46;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.shop-directory-card-title p,
.shop-directory-card .shop-product-description {
  margin: 4px 0 0;
  color: #486581;
  line-height: 1.48;
}

.shop-directory-meta-row,
.shop-directory-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.shop-directory-actions {
  justify-content: space-between;
  margin-top: auto;
}

.shop-directory-actions .button.primary {
  background: #277247;
  border-color: rgba(39, 114, 71, 0.24);
  color: #fff;
}

.shop-directory-empty {
  padding: 32px 18px;
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.shop-directory-empty h2 {
  margin-top: 0;
  color: #0f2f46;
}

.shop-directory-empty p {
  margin-bottom: 0;
  color: #486581;
}

@media (max-width: 900px) {
  .shop-directory-hero {
    grid-template-columns: 1fr;
  }

  .shop-directory-summary-card {
    align-content: start;
  }
}

@media (max-width: 760px) {
  .shop-directory-hero,
  .shop-directory-section {
    border-radius: 22px;
    padding: 16px;
  }

  .shop-directory-hero {
    gap: 14px;
    margin-bottom: 14px;
  }

  .shop-directory-hero::after {
    left: -46px;
    top: 34px;
    width: 290px;
    opacity: 0.065;
  }

  .shop-directory-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
  }

  .shop-directory-hero-copy > p:not(.page-kicker) {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .shop-directory-hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .shop-directory-hero-points span {
    justify-content: center;
    min-height: 42px;
    padding: 7px 8px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.15;
    white-space: normal;
  }

  .shop-directory-summary-card,
  .shop-directory-card {
    border-radius: 20px;
    padding: 14px;
  }

  .shop-directory-grid {
    gap: 10px;
  }

  .shop-directory-card-top,
  .shop-directory-actions {
    align-items: stretch;
  }

  .shop-directory-actions {
    display: grid;
  }

  .shop-directory-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .shop-directory-hero-points,
  .shop-directory-summary-grid {
    grid-template-columns: 1fr;
  }
}

.platform-zone-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(188, 204, 220, 0.82);
  border-radius: 999px;
  background: #eef8f1;
  color: #285c3c;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.platform-zone-pill:hover {
  background: #e1f3e7;
  border-color: rgba(39, 114, 71, 0.28);
  box-shadow: 0 8px 18px rgba(15, 47, 70, 0.08);
}

.platform-zones-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(680px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(188, 204, 220, 0.86);
  border-radius: 24px;
  background: #fff;
  color: #102a43;
  box-shadow: 0 24px 70px rgba(15, 47, 70, 0.24);
}

.platform-zones-dialog::backdrop {
  background: rgba(16, 42, 67, 0.36);
  backdrop-filter: blur(3px);
}

.platform-zones-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(188, 204, 220, 0.68);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
}

.platform-zones-dialog-head h3 {
  margin: 0;
  color: #0f2f46;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.05;
}

.platform-zones-dialog-head .page-kicker {
  color: #277247;
}

.platform-zones-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(188, 204, 220, 0.84);
  border-radius: 999px;
  background: #fff;
  color: #486581;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.platform-zones-list {
  display: grid;
  gap: 10px;
  max-height: min(470px, calc(100dvh - 190px));
  overflow: auto;
  padding: 14px;
}

.platform-zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 16px;
  background: #f8fbff;
}

.platform-zone-row strong {
  display: block;
  color: #0f2f46;
  font-size: 1rem;
  line-height: 1.2;
}

.platform-zone-row div > span {
  display: block;
  margin-top: 3px;
  color: #486581;
  font-size: 0.82rem;
  font-weight: 800;
}

.platform-zone-row-meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 230px;
}

.platform-zone-row-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef8f1;
  color: #285c3c;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.platform-zones-dialog > .muted {
  margin: 0;
  padding: 18px 20px 22px;
}

.rider-rating-prompt {
  display: grid;
  gap: 12px;
}

.rider-rating-prompt h2,
.rider-rating-prompt p {
  margin: 0;
}

.rider-rating-form {
  display: grid;
  gap: 12px;
}

.rider-rating-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rider-rating-choice label {
  cursor: pointer;
}

.rider-rating-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rider-rating-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(188, 204, 220, 0.88);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f2f46;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 47, 70, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rider-rating-choice span:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 111, 175, 0.32);
  box-shadow: 0 12px 26px rgba(15, 47, 70, 0.10);
}

.rider-rating-choice strong {
  font-size: 1.55rem;
  line-height: 1;
}

.rider-rating-choice em {
  font-style: normal;
  line-height: 1.1;
}

.rider-rating-choice input[value="positive"]:checked + span {
  border-color: rgba(39, 114, 71, 0.42);
  background: #e8f7ef;
  box-shadow: 0 0 0 3px rgba(39, 114, 71, 0.12);
}

.rider-rating-choice input[value="negative"]:checked + span {
  border-color: rgba(201, 60, 55, 0.42);
  background: #fdeaea;
  box-shadow: 0 0 0 3px rgba(201, 60, 55, 0.12);
}

.rider-rating-choice input:focus-visible + span {
  outline: 3px solid rgba(24, 111, 175, 0.24);
  outline-offset: 2px;
}

.rider-rating-card {
  display: grid;
  gap: 12px;
}

.rider-rating-card h2,
.rider-rating-card p {
  margin: 0;
}

.rider-rating-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.rider-rating-summary .rider-rating-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #166c3b;
  font-weight: 950;
}

.rider-rating-summary .rider-rating-count strong {
  font-size: 1rem;
  line-height: 1;
}

.rider-rating-summary .rider-rating-count.negative {
  background: #fdeaea;
  color: #991b1b;
}

.rider-rating-comment {
  padding: 12px;
  border: 1px solid rgba(188, 204, 220, 0.72);
  border-radius: 14px;
  background: #f8fbff;
}

/* Public search and marketplace styles moved to assets/css/public.css. */

/* 2026-07-09: keep product image crops consistent across interfaces. */
:root {
  --bd-product-card-image-aspect: 1 / 1;
  --bd-product-thumb-image-size: 64px;
  --bd-product-thumb-image-size-small: 48px;
}

.catalogue-product-card .catalogue-product-image,
.product-editor-shop-card-preview.shop-product-card .shop-product-image.product-image-storefront-preview,
.product-preview-card .product-snapshot-image,
.product-image-storefront-preview,
.product-snapshot-image,
.item-image-preview.large,
.product-image-cart-preview {
  aspect-ratio: var(--bd-product-card-image-aspect);
}

.client-item-image,
.order-line-image {
  width: var(--bd-product-thumb-image-size);
  height: var(--bd-product-thumb-image-size);
  aspect-ratio: var(--bd-product-card-image-aspect);
}

@media (max-width: 720px) {
  .catalogue-product-card .catalogue-product-image,
  .product-editor-shop-card-preview.shop-product-card .shop-product-image.product-image-storefront-preview,
  .product-preview-card .product-snapshot-image,
  .product-image-storefront-preview,
  .product-snapshot-image,
  .item-image-preview.large,
  .product-image-cart-preview,
  .client-item-image,
  .order-line-image {
    aspect-ratio: var(--bd-product-card-image-aspect);
  }

  .client-item-image,
  .order-line-image {
    width: var(--bd-product-thumb-image-size);
    height: var(--bd-product-thumb-image-size);
  }
}

/* Storefront-specific tail overrides continue in assets/css/storefront.css. */

/* Client interface styles continue in assets/css/client.css. */

/* Customer interface styles moved to assets/css/customer.css. */
