/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, sans-serif;
  --page-max-width: 960px;
  --page-inline-padding: clamp(1.5rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  padding: 0;
  font-size: clamp(16px, 1.04rem, 18px);
  line-height: 1.7;
  color: rgba(65, 42, 29, 0.92);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
[role='button'],
a {
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}

button:disabled,
[role='button'][aria-disabled='true'] {
  cursor: not-allowed;
}

.page {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.1rem);
  background: #ffffff;
  max-width: calc(var(--page-max-width) + 2 * var(--page-inline-padding));
  padding: 0 var(--page-inline-padding);
}

.page-header {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  background: transparent;
  gap: 1.5rem;
}

.page-header__inner {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand:focus-visible {
  outline: 2px solid rgba(217, 119, 6, 0.4);
  outline-offset: 6px;
  border-radius: 14px;
}

.brand-mark {
  font-size: 2rem;
}

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #7c3a17;
}

.brand-caption {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.7);
}

.admin-header-switcher {
  display: flex;
  align-items: flex-start;
}

.admin-section-switcher {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.header-rail {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.role-menu {
  position: relative;
}

.role-menu__button {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: clamp(0.45rem, 1.6vw, 0.65rem) clamp(0.9rem, 2.6vw, 1.3rem);
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  background-color: rgba(255, 247, 237, 0.95);
  font-weight: 600;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  color: #7c3a17;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.role-menu__button:hover,
.role-menu__button:focus-visible {
  background-color: rgba(254, 215, 170, 0.8);
  border-color: rgba(124, 58, 23, 0.4);
  outline: none;
}

.role-menu__caret {
  font-size: 0.75rem;
  line-height: 1;
}

.role-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: max-content;
  min-width: min(320px, calc(100vw - 2 * var(--page-inline-padding)));
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(93, 64, 55, 0.16);
  padding: clamp(0.75rem, 2.6vw, 1rem);
  z-index: 180;
}

.role-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.role-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  border: 1px solid rgba(124, 58, 23, 0.2);
  border-radius: 10px;
  background: #fff5e6;
  color: #7c3a17;
  font-weight: 600;
  padding: clamp(0.65rem, 2.7vw, 0.85rem) clamp(0.75rem, 3vw, 1rem);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.role-menu__item:hover,
.role-menu__item:focus-visible {
  background-color: rgba(253, 224, 171, 0.85);
  border-color: rgba(124, 58, 23, 0.4);
  outline: none;
}

.role-menu__item--active {
  border-color: rgba(124, 58, 23, 0.6);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 23, 0.18);
}

.role-menu__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.role-menu__label {
  flex: 1 1;
}

.user-menu {
  position: relative;
}

.user-menu__button {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: clamp(0.5rem, 1.8vw, 0.7rem);
  min-width: clamp(2.6rem, 9vw, 3.2rem);
  min-height: clamp(2.6rem, 9vw, 3.2rem);
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  background-color: rgba(254, 243, 199, 0.6);
  font-weight: 600;
  font-size: 0;
  color: #7c3a17;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.user-menu__button:hover,
.user-menu__button:focus-visible {
  background-color: rgba(254, 215, 170, 0.85);
  border-color: rgba(124, 58, 23, 0.4);
  outline: none;
}

.user-menu__button--guest {
  background-color: rgba(255, 247, 237, 0.95);
  border-color: rgba(217, 119, 6, 0.45);
}

.user-menu__icon {
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  line-height: 1;
  color: #7c3a17;
}

.user-menu__caret {
  font-size: 0.75rem;
  line-height: 1;
}

.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2 * var(--page-inline-padding)));
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(93, 64, 55, 0.18);
  padding: clamp(0.9rem, 3vw, 1.15rem) clamp(1rem, 4vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 3vw, 1.2rem);
  z-index: 200;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-section__title {
  margin: 0;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(124, 58, 23, 0.6);
  text-transform: uppercase;
}

.menu-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-section__list--inline-actions {
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.menu-section__list--inline-actions > li {
  flex: 0 0 auto;
}

.menu-section__list--inline-actions .menu-item {
  flex: 0 0 auto;
  padding: clamp(0.6rem, 2.2vw, 0.85rem) clamp(0.9rem, 3vw, 1.2rem);
  align-items: flex-start;
  text-align: center;
}

.menu-section__list--inline-actions .menu-item__header {
  justify-content: center;
}

.menu-item {
  border-radius: 12px;
  padding: clamp(0.75rem, 2.8vw, 1rem) clamp(0.95rem, 3.4vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1.6vw, 0.55rem);
}

.menu-item--action {
  border: 1px solid rgba(124, 58, 23, 0.15);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.menu-item--action:hover,
.menu-item--action:focus-visible {
  background-color: rgba(253, 230, 138, 0.35);
  border-color: rgba(124, 58, 23, 0.35);
  outline: none;
}

.menu-item--primary {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(253, 230, 138, 0.9) 100%);
}

.menu-item--danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}

.menu-item--danger:hover,
.menu-item--danger:focus-visible {
  background-color: rgba(254, 226, 226, 0.6);
}

.menu-item--active {
  border-color: rgba(124, 58, 23, 0.65);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 23, 0.15);
}

.menu-item--display {
  padding: 0.75rem 0;
  border: none;
  background: none;
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.menu-item__label {
  font-weight: 600;
  color: #7c3a17;
}

.menu-item--danger .menu-item__label {
  color: inherit;
}

.menu-item__meta {
  font-size: 0.75rem;
  color: rgba(124, 58, 23, 0.75);
  background-color: rgba(254, 243, 199, 0.6);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.menu-item__description {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.75);
}



.layout {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
  flex: 1 1;
}

.layout--admin {
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  padding: 0;
}

.layout--admin > .card {
  padding: clamp(1.4rem, 2.4vw, 1.75rem);
}

.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem 0;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(93, 64, 55, 0.75);
  margin: 0;
}

.card {
  background-color: rgba(255, 248, 239, 0.92);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card > :where(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  padding: 0;
}

.production-dashboard {
  gap: 1.25rem;
}

.production-schedule {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.production-schedule-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.production-schedule-group + .production-schedule-group {
  border-top: 1px solid rgba(124, 58, 23, 0.12);
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

.production-schedule-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.production-schedule-heading h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  color: #7c3a17;
}

.production-schedule-date {
  margin: 0;
  color: rgba(93, 64, 55, 0.68);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.production-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.production-schedule-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(0.75rem, 2.2vw, 1rem) clamp(1rem, 2.6vw, 1.25rem);
  border-radius: 12px;
  background: rgba(255, 239, 216, 0.9);
  color: #5d4037;
  font-weight: 600;
}

.production-schedule-item-name {
  flex: 1 1;
  margin-right: 1rem;
}

.production-schedule-item-qty {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.production-schedule-empty {
  margin: 0;
  color: rgba(93, 64, 55, 0.6);
  font-size: 0.95rem;
}

:where(
    .order-planner__panel,
    .order-plan,
    .order-summary,
    .delivery-settings,
    .delivery-settings__field,
    .order-planner__addons,
    .product-option,
    .product-option__body,
    .seasonal-option__label,
    .checkout-summary,
    .checkout-actions,
    .delivery-calendar,
    .delivery-calendar__month,
    .delivery-calendar__day,
    .admin-delivery-controls,
    .admin-delivery-inventory-field,
    .admin-delivery-month,
    .admin-delivery-day,
    .admin-detail,
    .admin-detail-list,
    .settings-form,
    .settings-actions,
    .product-form,
    .product-form__field,
    .legal-policy__section,
    .admin-pass,
    .admin-role-controls,
    .order-history
  ) > :where(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  padding: 0;
}

.order-planner__lead {
  margin: 0;
  line-height: 1.75;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(70, 45, 29, 0.9);
  max-width: 60ch;
}

.order-planner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-planner__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 244, 230, 0.9) 100%);
  border: 1px solid rgba(217, 119, 6, 0.1);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.08);
  border-radius: 14px;
  padding: 1.75rem;
}

.order-planner__hint {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: rgba(82, 51, 33, 0.7);
}

.order-planner__plans {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-planner__empty {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 243, 224, 0.7);
  border: 1px dashed rgba(217, 119, 6, 0.35);
  color: rgba(124, 58, 23, 0.75);
  font-size: 0.9rem;
}

.order-planner__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

.order-planner__summary {
  width: 100%;
  background: #fffdf7;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.08);
}

.order-planner__selected-dates {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: rgba(93, 64, 55, 0.8);
}

.order-plan {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 23, 0.18);
  background: rgba(255, 247, 237, 0.65);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.order-plan:hover,
.order-plan:focus-visible {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(254, 235, 200, 0.75);
  outline: none;
}

.order-plan--selected {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
  background: rgba(255, 236, 200, 0.85);
}

.delivery-pass-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.order-plan__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.order-plan__title {
  font-weight: 700;
  color: #7c3a17;
}

.order-plan__price {
  font-weight: 600;
  color: #b45309;
}

.order-plan__description {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(93, 64, 55, 0.7);
}

.order-plan__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(124, 58, 23, 0.85);
  background: rgba(217, 119, 6, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.order-planner__seasonal {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 232, 186, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: rgba(93, 64, 55, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.order-planner__seasonal strong {
  color: #7c3a17;
}

.product-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.product-option {
  display: grid;
  grid-template-columns: minmax(clamp(150px, 18vw, 180px), auto) 1fr;
  align-items: center;
  grid-gap: 1.4rem;
  gap: 1.4rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 244, 228, 0.88) 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.08);
}

.product-option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-option--disabled input[type='checkbox'] {
  cursor: not-allowed;
}

.product-option input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  cursor: pointer;
}

.product-option__media {
  width: clamp(150px, 18vw, 180px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #fffaf2;
  box-shadow: 0 8px 20px rgba(124, 58, 23, 0.1);
}

.product-option__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.product-option__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.product-option__title {
  font-weight: 700;
  color: #7c3a17;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.product-option__price {
  font-weight: 600;
  color: #b45309;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.product-option__description {
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  color: rgba(80, 50, 30, 0.78);
}

.product-option__quantity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(0.6rem, 2vw, 0.8rem);
}

.product-option__quantity-input {
  width: 3.5rem;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(124, 58, 23, 0.28);
  border-radius: 8px;
  font-size: 1rem;
  background: #fffaf0;
  color: #451a03;
}

.product-option__quantity-input:focus {
  outline: 2px solid rgba(217, 119, 6, 0.6);
  outline-offset: 1px;
}

.product-option__step {
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 999px;
  background: #fde68a;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: #92400e;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-option__step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-option__step:not(:disabled):hover {
  background: #facc15;
}

.product-option__inventory {
  font-size: 0.8rem;
  color: rgba(93, 64, 55, 0.6);
}

.product-option__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(124, 58, 23, 0.6);
}

.product-option__tag--warning {
  color: #b91c1c;
}

.product-option__tag--seasonal {
  color: #1d4ed8;
}

.product-option--selected {
  border-color: rgba(217, 119, 6, 0.55);
  background: rgba(255, 236, 200, 0.85);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
}

.product-option--with-thumb {
  border-color: rgba(124, 58, 23, 0.24);
  background: rgba(255, 247, 237, 0.82);
}

.product-option--with-thumb.product-option--selected {
  border-color: rgba(217, 119, 6, 0.6);
  background: rgba(255, 236, 200, 0.9);
  transform: translateY(-2px);
}

.seasonal-option__label {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(124, 58, 23, 0.35);
  background: rgba(255, 250, 235, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.seasonal-option__label input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  cursor: pointer;
}

.seasonal-option__label--selected {
  border-color: rgba(217, 119, 6, 0.55);
  background: rgba(255, 240, 210, 0.85);
}

.seasonal-option__title {
  font-weight: 600;
  color: #7c3a17;
}

.seasonal-option__description {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.7);
}

.product-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-option-group__title {
  margin: 0;
  font-weight: 600;
  color: rgba(93, 64, 55, 0.75);
}

.product-option-grid--addons {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-calendar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.delivery-calendar__month {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-calendar__title {
  margin: 0;
  font-weight: 700;
  color: #7c3a17;
}

.delivery-calendar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.delivery-calendar__day {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 23, 0.18);
  background: rgba(255, 247, 237, 0.55);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.delivery-calendar__day:hover,
.delivery-calendar__day:focus-visible {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 6px 18px rgba(124, 58, 23, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.delivery-calendar__day--selected {
  border-color: rgba(217, 119, 6, 0.65);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
  background: rgba(255, 236, 200, 0.85);
}

.delivery-calendar__day--full,
.delivery-calendar__day--closed {
  cursor: not-allowed;
  background: rgba(243, 232, 230, 0.7);
  border-color: rgba(124, 58, 23, 0.15);
  color: rgba(120, 53, 15, 0.55);
}

.delivery-calendar__day--full .delivery-calendar__capacity,
.delivery-calendar__day--closed .delivery-calendar__capacity {
  color: inherit;
}

.delivery-calendar__day:disabled {
  cursor: not-allowed;
}

.delivery-calendar__day-label {
  font-weight: 600;
  color: #7c3a17;
  display: flex;
  flex-direction: column;
}

.delivery-calendar__weekday {
  font-size: 0.8rem;
  color: rgba(93, 64, 55, 0.65);
}

.delivery-calendar__capacity {
  font-size: 0.8rem;
  color: rgba(93, 64, 55, 0.7);
}

.delivery-calendar__empty {
  margin: 0;
  color: rgba(93, 64, 55, 0.6);
  font-size: 0.9rem;
}

.order-planner__addons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.addon-card {
  position: relative;
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 23, 0.15);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.addon-card__checkbox {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
}

.addon-card__title {
  font-weight: 600;
  color: #7c3a17;
}

.addon-card__description {
  margin: 0.25rem 0 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.7);
}

.addon-card__price {
  font-weight: 600;
  color: #b45309;
  font-size: 0.9rem;
}

.addon-card:hover,
.addon-card:focus-within {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(255, 236, 200, 0.4);
  outline: none;
}

.addon-card--selected {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
  background: rgba(255, 236, 200, 0.8);
}

.delivery-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delivery-settings__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(93, 64, 55, 0.9);
}

.delivery-settings__field input,
.delivery-settings__field textarea {
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  padding: 0.7rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.delivery-settings__status {
  font-size: 0.85rem;
  font-weight: 600;
}

.delivery-settings__status--ok {
  color: #15803d;
}

.delivery-settings__status--ng {
  color: #b91c1c;
}

.delivery-settings__options {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dropoff-option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 23, 0.15);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dropoff-option input {
  width: 1.1rem;
  height: 1.1rem;
}

.dropoff-option__label {
  font-weight: 600;
  color: #7c3a17;
}

.dropoff-option__description {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.7);
}

.dropoff-option:hover,
.dropoff-option:focus-within {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(255, 236, 200, 0.45);
  outline: none;
}

.dropoff-option--selected {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
  background: rgba(255, 236, 200, 0.75);
}

.order-summary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 23, 0.15);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-summary__list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.order-summary__list div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-summary__list dt {
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.6);
}

.order-summary__list dd {
  margin: 0;
  font-weight: 600;
  color: #7c3a17;
}

.order-summary__items,
.order-summary__addons {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: rgba(93, 64, 55, 0.85);
}

.order-summary__placeholder {
  color: rgba(93, 64, 55, 0.6);
}

.order-summary__button {
  align-self: flex-start;
}

.order-summary__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-summary__disclaimer {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.6);
}

.checkout-step {
  display: grid;
  grid-gap: clamp(1.5rem, 3vw, 2.5rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.form-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  max-width: 34rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(93, 64, 55, 0.75);
}

.form-field input {
  width: 100%;
}

.payjp-card-element {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.payjp-card-element iframe {
  width: 100% !important;
}

.payjp-card-element--loading {
  opacity: 0.5;
}

.payjp-card-element:focus-within {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.form-field--inline {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.form-field--inline label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--inline label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(93, 64, 55, 0.75);
}

.form-field--inline label input {
  width: 100%;
}

.checkout-summary-card {
  border: 1px solid rgba(124, 58, 23, 0.12);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
}

.checkout-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.checkout-table th,
.checkout-table td {
  border-bottom: 1px solid rgba(124, 58, 23, 0.12);
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.95rem;
}

.checkout-table th {
  font-weight: 600;
  color: rgba(93, 64, 55, 0.75);
}

.checkout-summary {
  margin: 1.5rem 0 1rem;
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.checkout-summary dt {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.6);
}

.checkout-summary dd {
  margin: 0;
  font-weight: 600;
  color: #7c3a17;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkout-actions .ghost {
  padding: 0.65rem 1.4rem;
}

.legal-policy {
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.legal-policy__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-policy__header > :where(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  padding: 0;
}

.legal-policy__lead {
  margin: 0;
  color: rgba(93, 64, 55, 0.8);
  line-height: 1.7;
}

.legal-policy__meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.6);
}

.legal-policy__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-policy__section h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  color: #7c3a17;
}

.legal-policy__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-policy__list li {
  line-height: 1.7;
  color: rgba(93, 64, 55, 0.85);
}

.legal-policy__definition {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  grid-gap: 0.35rem 1.25rem;
  gap: 0.35rem 1.25rem;
  align-items: flex-start;
}

.legal-policy__definition dt {
  font-weight: 600;
  color: rgba(93, 64, 55, 0.9);
}

.legal-policy__definition dd {
  margin: 0;
  color: rgba(93, 64, 55, 0.85);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.plan-card {
  border: 1px solid rgba(93, 64, 55, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 245, 230, 0.4) 100%);
}

.plan-card h3 {
  margin-top: 0;
}

.price {
  font-weight: 600;
  color: #c05621;
}

.primary {
  background-color: #d97706;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.primary:hover {
  background-color: #b45309;
}

.order-planner__cta {
  align-self: center;
  padding: 1rem 2.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 100%);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.order-planner__cta:hover:not(:disabled),
.order-planner__cta:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 55%, #a34a0a 100%);
  box-shadow: 0 24px 48px rgba(217, 119, 6, 0.32);
  transform: translateY(-1px);
  outline: none;
}

.order-planner__cta:disabled {
  background: linear-gradient(135deg, #f5d3a4 0%, #d9a979 100%);
  box-shadow: none;
  cursor: not-allowed;
}

.ghost {
  background: none;
  border: 1px solid rgba(93, 64, 55, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
}

.ghost:hover {
  background-color: rgba(93, 64, 55, 0.06);
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

input,
select {
  border-radius: 8px;
  border: 1px solid rgba(93, 64, 55, 0.2);
  padding: 0.75rem;
  font-size: 1rem;
}

.error {
  color: #b91c1c;
  font-weight: 600;
}

.hint {
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hint code {
  background-color: rgba(93, 64, 55, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

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

th,
td {
  border-bottom: 1px solid rgba(93, 64, 55, 0.15);
  padding: 0.75rem;
  text-align: left;
}

.order-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: clamp(1rem, 2vw, 1.4rem);
  gap: clamp(1rem, 2vw, 1.4rem);
}

.order-history__card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 58, 23, 0.12);
  border-radius: 14px;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-history__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-history__date {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: rgba(93, 64, 55, 0.95);
}

.order-history__status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 23, 0.12);
  color: rgba(93, 64, 55, 0.85);
}

.order-history__details {
  margin: 0;
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.order-history__detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-history__detail dt {
  font-size: 0.82rem;
  color: rgba(93, 64, 55, 0.68);
  margin: 0;
  font-weight: 600;
}

.order-history__detail dd {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(51, 30, 21, 0.94);
  font-weight: 500;
}

.purchase-status__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .order-history {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .order-history__details {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.75);
}

dd {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.delivery-stop-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.delivery-stop-list li span + span {
  margin-left: 0.25rem;
}

.delivery-stop {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 58, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.delivery-stop:last-child {
  border-bottom: none;
}

.delivery-stop__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.delivery-stop__title {
  font-weight: 600;
  color: #7c3a17;
}

.delivery-stop__status {
  font-size: 0.85rem;
  color: rgba(124, 58, 23, 0.8);
  background: rgba(253, 230, 138, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.delivery-stop__status--complete {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.delivery-stop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.75);
}

.delivery-stop__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.7);
}

.delivery-stop__proof {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.75);
}

.delivery-stop__proof a {
  color: #b45309;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 119, 6, 0.4);
}

.delivery-stop__proof a:hover,
.delivery-stop__proof a:focus-visible {
  color: #c2410c;
  border-color: rgba(217, 119, 6, 0.7);
  outline: none;
}

.delivery-stop__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.delivery-stop__actions--complete {
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.75);
}

.delivery-stop__form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.delivery-stop__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.8);
}

.delivery-stop__form input {
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.delivery-stop__form input:focus {
  outline: none;
  border-color: rgba(124, 58, 23, 0.65);
  box-shadow: 0 0 0 3px rgba(253, 224, 171, 0.35);
}

.delivery-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.delivery-dashboard__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.delivery-dashboard__control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  min-width: 200px;
}

.delivery-dashboard__control select,
.delivery-dashboard__control input {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: #0f172a;
}

.delivery-dashboard__control select:focus,
.delivery-dashboard__control input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  outline: none;
}

.delivery-dashboard__control--static {
  font-size: 0.95rem;
  color: #334155;
}

.delivery-dashboard__control--static strong {
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.delivery-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .delivery-flow {
    flex-direction: row;
    align-items: flex-start;
  }

  .delivery-flow__chart {
    flex: 1 1;
  }

  .delivery-flow__map {
    flex: 1 1;
  }
}

.delivery-flow__chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delivery-flow__state {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.delivery-flow__state-label {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

.delivery-flow__state-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.delivery-flow__state-pill--pending {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.delivery-flow__state-pill--on_route {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.delivery-flow__state-pill--complete {
  background: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.delivery-flow__item {
  position: relative;
}

.delivery-flow__node {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #ffffff;
  box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.delivery-flow__node--done {
  border-color: rgba(22, 163, 74, 0.6);
  background: rgba(22, 163, 74, 0.08);
}

.delivery-flow__node--alert {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 10px 28px -12px rgba(239, 68, 68, 0.45);
}

.delivery-flow__node:hover,
.delivery-flow__node:focus-visible {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 8px 22px -10px rgba(37, 99, 235, 0.35);
  outline: none;
}

.delivery-flow__node--active {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 10px 28px -12px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.delivery-flow__node--store {
  border-style: dashed;
  background: rgba(37, 99, 235, 0.05);
}

.delivery-flow__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(37, 99, 235, 0.85);
}

.delivery-flow__planned,
.delivery-flow__actual {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.delivery-flow__meta strong {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  color: rgba(37, 99, 235, 0.95);
}

.delivery-flow__actual {
  color: rgba(15, 23, 42, 0.75);
}

.delivery-flow__actual strong {
  color: rgba(15, 23, 42, 0.82);
}

.delivery-flow__meta span span {
  margin-left: 0.3rem;
}

.delivery-flow__label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.delivery-flow__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.delivery-flow__subtitle {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.65);
}

.delivery-flow__badge {
  display: inline-flex;
  align-items: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.delivery-flow__badge--pending {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.delivery-flow__badge--done {
  background: rgba(22, 163, 74, 0.18);
  color: #15803d;
}

.delivery-flow__badge--alert {
  background: rgba(239, 68, 68, 0.18);
  color: #dc2626;
}

.delivery-flow__actions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.delivery-flow__status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
}

.delivery-flow__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.delivery-flow__form input {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.95rem;
}

.delivery-flow__form input[type='file'] {
  padding: 0.3rem 0;
}

.delivery-flow__form input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  outline: none;
}

.delivery-flow__form-hint {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
  margin: -0.2rem 0 0;
}

.delivery-flow__form-actions {
  display: flex;
  gap: 0.5rem;
}

.delivery-flow__proof-link {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: underline;
}

.delivery-flow__proof-link:hover,
.delivery-flow__proof-link:focus {
  color: #1d4ed8;
}

.delivery-flow__photo-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.delivery-flow__photo-preview img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  object-fit: cover;
}

.delivery-flow__photo-label {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.65);
}

.delivery-flow__camera-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.delivery-flow__camera-error {
  font-size: 0.8rem;
  color: #dc2626;
}

.delivery-flow__connector {
  width: 2px;
  height: 32px;
  margin: 0.5rem auto;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0));
}

.delivery-flow__connector--done {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.5), rgba(22, 163, 74, 0));
}

.delivery-flow__map {
  min-height: 320px;
}

.delivery-camera-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  z-index: 4000;
}

.delivery-camera {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.delivery-camera video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.delivery-camera__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.delivery-camera__error {
  font-size: 0.85rem;
  color: #dc2626;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.85);
}

.settings-form input {
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.settings-form input:focus {
  outline: none;
  border-color: rgba(124, 58, 23, 0.65);
  box-shadow: 0 0 0 3px rgba(253, 224, 171, 0.35);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-hint {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.7);
}

.admin-pass {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.admin-pass > span {
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.8);
}

.admin-pass button {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.admin-role-summary {
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.8);
}

.admin-role-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.product-image-cell {
  text-align: center;
}

.admin-table__image-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  background: rgba(255, 247, 237, 0.8);
  box-shadow: 0 1px 4px rgba(124, 58, 23, 0.12);
}

.admin-table__image-placeholder {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px;
  border: 1px dashed rgba(124, 58, 23, 0.35);
  background: rgba(255, 247, 237, 0.5);
  color: rgba(124, 58, 23, 0.55);
  font-size: 0.75rem;
}

.admin-delivery-toolbar__hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.65);
}

.admin-delivery-controls {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.8vw, 1.6rem);
}

.admin-delivery-weekdays {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-delivery-weekday {
  min-width: 2.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 23, 0.25);
  background: rgba(255, 247, 237, 0.7);
  font-weight: 600;
  color: #7c3a17;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-delivery-weekday:hover,
.admin-delivery-weekday:focus-visible {
  border-color: rgba(124, 58, 23, 0.4);
  background: rgba(253, 224, 171, 0.85);
  outline: none;
}

.admin-delivery-weekday--active {
  background: rgba(124, 58, 23, 0.12);
  border-color: rgba(124, 58, 23, 0.6);
  color: rgba(62, 39, 35, 0.95);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 23, 0.2);
}

.admin-delivery-inventory-grid {
  display: grid;
  grid-gap: 0.75rem 1rem;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.admin-delivery-inventory-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
  color: rgba(93, 64, 55, 0.85);
}

.admin-delivery-inventory-field span {
  font-weight: 600;
}

.admin-delivery-inventory-field input {
  font: inherit;
  border: 1px solid rgba(124, 58, 23, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 247, 237, 0.6);
  color: inherit;
  text-align: right;
}

.admin-delivery-inventory-field input:focus-visible {
  outline: 2px solid rgba(217, 119, 6, 0.4);
  outline-offset: 2px;
  border-color: rgba(124, 58, 23, 0.6);
}

.admin-delivery-action-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.admin-delivery-addons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-delivery-addons > h3 {
  margin: 0;
}

.admin-delivery-addons__grid {
  display: grid;
  grid-gap: 0.75rem 1rem;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}


.admin-delivery-overview {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 960px) {
  .admin-delivery-overview {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: flex-start;
    grid-gap: clamp(1.5rem, 3vw, 2rem);
    gap: clamp(1.5rem, 3vw, 2rem);
  }
}

.admin-delivery-overview__sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.admin-delivery-overview__map {
  min-height: 360px;
}

.admin-delivery-overview__map .leaflet-container {
  position: relative;
  z-index: 0;
}

.admin-delivery-store,
.admin-delivery-couriers,
.admin-delivery-routes {
  border: 1px solid rgba(124, 58, 23, 0.16);
  border-radius: 12px;
  background: rgba(255, 249, 242, 0.75);
  padding: clamp(0.85rem, 2.4vw, 1.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2vw, 0.9rem);
}

.admin-delivery-store__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-delivery-store__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-delivery-courier-table th,
.admin-delivery-courier-table td {
  white-space: nowrap;
}

.admin-delivery-courier-table td:nth-child(2) {
  white-space: normal;
}

.admin-delivery-route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-delivery-route {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(124, 58, 23, 0.2);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.85);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.admin-delivery-route:hover,
.admin-delivery-route:focus-visible {
  border-color: rgba(124, 58, 23, 0.4);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
  outline: none;
}

.admin-delivery-route--active {
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.admin-delivery-route__code {
  font-weight: 700;
  color: #7c3a17;
}

.admin-delivery-route__driver {
  font-size: 0.9rem;
  color: rgba(62, 39, 35, 0.8);
}

.admin-delivery-route__meta {
  font-size: 0.82rem;
  color: rgba(93, 64, 55, 0.7);
}

.admin-delivery-route__state {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(62, 39, 35, 0.85);
}

.admin-delivery-calendar {
  display: grid;
  grid-gap: clamp(1rem, 3vw, 1.6rem);
  gap: clamp(1rem, 3vw, 1.6rem);
}

.admin-delivery-month {
  border: 1px solid rgba(124, 58, 23, 0.18);
  border-radius: 12px;
  background: rgba(255, 248, 239, 0.6);
  padding: clamp(0.9rem, 2.6vw, 1.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-delivery-month__title {
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  font-weight: 700;
  color: #7c3a17;
}

.admin-delivery-week {
  display: grid;
  grid-gap: 0.45rem;
  gap: 0.45rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-delivery-week--header {
  gap: 0.45rem;
}

.admin-delivery-weekday-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(93, 64, 55, 0.6);
}

.admin-delivery-day {
  position: relative;
  border: 1px solid rgba(124, 58, 23, 0.15);
  border-radius: 10px;
  background: #fff;
  min-height: 96px;
  padding: 0.65rem 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-delivery-day--outside {
  opacity: 0.45;
}

.admin-delivery-day--disabled {
  background: rgba(248, 249, 250, 0.7);
  border-style: dashed;
}

.admin-delivery-day--dirty {
  box-shadow: inset 0 0 0 2px rgba(124, 58, 23, 0.35);
}

.admin-delivery-day__date {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(62, 39, 35, 0.9);
}

.admin-delivery-day__input {
  font: inherit;
  border: 1px solid rgba(124, 58, 23, 0.25);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  background: rgba(255, 247, 237, 0.6);
  color: inherit;
}

.admin-delivery-day__input:focus-visible {
  outline: 2px solid rgba(217, 119, 6, 0.4);
  outline-offset: 2px;
  border-color: rgba(124, 58, 23, 0.6);
}

.admin-delivery-day__no-slot {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.55);
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  position: relative;
}

.admin-section-heading__button {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(93, 64, 55, 0.25);
  background: rgba(255, 247, 237, 0.85);
  color: rgba(62, 39, 35, 0.92);
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-section-heading__button:hover,
.admin-section-heading__button:focus-visible {
  border-color: rgba(124, 58, 23, 0.45);
  background-color: rgba(253, 224, 171, 0.85);
  outline: none;
  box-shadow: 0 4px 16px rgba(124, 58, 23, 0.18);
}

.admin-section-heading__icon-wrapper {
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  align-items: flex-start;
  justify-content: center;
}

.admin-section-heading__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.admin-section-heading__label {
  white-space: nowrap;
}

.admin-section-heading__chevron {
  width: 0.75rem;
  height: 0.45rem;
  background: linear-gradient(45deg, transparent 45%, rgba(62, 39, 35, 0.65) 45%),
    linear-gradient(-45deg, transparent 45%, rgba(62, 39, 35, 0.65) 45%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  background-position: left, right;
  transform: translateY(25%);
}

.admin-section-heading__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid rgba(93, 64, 55, 0.18);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(62, 39, 35, 0.18);
  padding: 0.35rem 0.35rem;
  min-width: 220px;
  list-style: none;
  margin: 0;
}

.admin-section-heading__option + .admin-section-heading__option {
  margin-top: 0.3rem;
}

.admin-section-heading__optionButton {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  border: none;
  background: transparent;
  color: rgba(62, 39, 35, 0.9);
  font: inherit;
  text-align: left;
}

.admin-section-heading__optionButton:hover,
.admin-section-heading__optionButton:focus-visible {
  background: rgba(253, 224, 171, 0.35);
  outline: none;
}

.admin-section-heading__optionButton.is-active {
  background: rgba(124, 58, 23, 0.12);
  font-weight: 600;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(93, 64, 55, 0.15);
  font-size: clamp(0.82rem, 0.78rem + 0.25vw, 0.95rem);
}

.admin-table thead th {
  font-weight: 700;
  background: rgba(254, 239, 220, 0.6);
  color: rgba(93, 64, 55, 0.85);
}

.sales-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.sales-controls__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  color: rgba(62, 39, 35, 0.85);
}

.sales-controls__field select {
  min-width: 160px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(93, 64, 55, 0.25);
  background: #fff;
  font: inherit;
  color: inherit;
}

.sales-controls__field select:focus-visible {
  outline: 2px solid rgba(124, 58, 23, 0.45);
  outline-offset: 2px;
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 0.8rem 1rem;
  gap: 0.8rem 1rem;
  margin: 1rem 0 1.5rem;
}

.sales-summary > div {
  border: 1px solid rgba(93, 64, 55, 0.15);
  border-radius: 0.9rem;
  background: rgba(255, 247, 237, 0.55);
  padding: 0.75rem 1rem;
}

.sales-summary dt {
  margin: 0 0 0.25rem;
  font-size: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  font-weight: 600;
  color: rgba(93, 64, 55, 0.7);
}

.sales-summary dd {
  margin: 0;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem);
  font-weight: 700;
  color: rgba(62, 39, 35, 0.95);
}

.sales-customer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sales-customer__email {
  font-size: clamp(0.75rem, 0.71rem + 0.2vw, 0.86rem);
  color: rgba(93, 64, 55, 0.7);
  word-break: break-all;
}

#admin-users th,
#admin-users td {
  white-space: nowrap;
}

#admin-products-table {
  min-width: 900px;
}

.admin-user-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(62, 39, 35, 0.9);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.admin-user-link:hover {
  color: rgba(93, 64, 55, 1);
}

.admin-user-link:focus-visible {
  outline: 2px solid rgba(93, 64, 55, 0.6);
  outline-offset: 2px;
}

.role-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(93, 64, 55, 0.25);
  background: transparent;
  color: rgba(62, 39, 35, 0.85);
  font-size: clamp(0.76rem, 0.72rem + 0.2vw, 0.82rem);
  line-height: 1.1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.role-chip:hover:not(:disabled) {
  border-color: rgba(93, 64, 55, 0.5);
  background: rgba(93, 64, 55, 0.08);
}

.role-chip.active {
  background: rgba(93, 64, 55, 0.12);
  border-color: rgba(93, 64, 55, 0.5);
  font-weight: 600;
}

.role-chip:disabled {
  opacity: 0.6;
  cursor: wait;
}

.role-chip-label {
  font-size: inherit;
}

.role-chip-action {
  font-size: clamp(0.68rem, 0.64rem + 0.15vw, 0.74rem);
  color: rgba(93, 64, 55, 0.65);
}

.role-chip.active .role-chip-action {
  color: rgba(62, 39, 35, 0.8);
}

.product-actions {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.admin-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-detail-subtitle {
  margin: 0;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem);
  font-weight: 600;
  color: rgba(62, 39, 35, 0.85);
}

.admin-detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr;
  grid-row-gap: 0.6rem;
  row-gap: 0.6rem;
  grid-column-gap: 1.1rem;
  column-gap: 1.1rem;
  font-size: clamp(0.88rem, 0.84rem + 0.25vw, 0.98rem);
}

.admin-detail-list dt {
  font-weight: 600;
  color: rgba(93, 64, 55, 0.75);
}

.admin-detail-list dd {
  margin: 0;
  color: rgba(33, 24, 21, 0.9);
  word-break: break-word;
}

.admin-detail-code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85em;
  background: rgba(93, 64, 55, 0.08);
  padding: 0.2rem 0.35rem;
  border-radius: 0.4rem;
}

.product-form {
  padding-top: 1rem;
  border-top: 1px solid rgba(93, 64, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-form h3 {
  margin: 0;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem);
}

.product-form__grid {
  display: grid;
  grid-gap: 1rem 1.25rem;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
}

.product-form__field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.product-form__field--full {
  grid-column: 1 / -1;
}

.product-form__field span {
  font-weight: 600;
  color: rgba(93, 64, 55, 0.85);
}

.product-form__field input,
.product-form__field select,
.product-form__field textarea {
  border: 1px solid rgba(124, 58, 23, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: rgba(255, 247, 237, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-form__field input:focus,
.product-form__field select:focus,
.product-form__field textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 23, 0.65);
  box-shadow: 0 0 0 3px rgba(253, 224, 171, 0.4);
}

.product-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.product-form__hint {
  font-size: 0.9rem;
  color: rgba(93, 64, 55, 0.7);
}

.product-form__preview {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-form__preview-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 23, 0.3);
  background: rgba(255, 247, 237, 0.8);
}

.product-form__preview-caption {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.7);
}

.danger {
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: rgba(254, 226, 226, 0.85);
  color: #b91c1c;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.danger:hover,
.danger:focus-visible {
  background: rgba(252, 165, 165, 0.9);
  border-color: rgba(185, 28, 28, 0.6);
  outline: none;
}

.danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .admin-detail-list {
    grid-template-columns: 1fr;
  }

  .admin-detail-list dt {
    color: rgba(93, 64, 55, 0.7);
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .page {
    padding: 0;
  }

  .page-header {
    gap: clamp(0.75rem, 3vw, 1rem);
  }

  .header-rail {
    margin-left: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(0.5rem, 3vw, 0.75rem);
    flex-wrap: nowrap;
    width: auto;
  }

  .layout {
    padding: 0;
  }

  .page-footer {
    padding: 0;
    padding-bottom: clamp(2.25rem, 6vw, 2.9rem);
  }

  .hero {
    padding: 1.5rem 0;
  }

  .page-header__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(0.5rem, 3vw, 0.85rem);
    padding-left: clamp(1rem, 4.5vw, 1.35rem);
    padding-right: clamp(1rem, 4.5vw, 1.35rem);
  }

  .brand {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(0.6rem, 3vw, 0.9rem);
    width: auto;
  }

  .brand-mark {
    font-size: clamp(1.4rem, 8vw, 1.8rem);
  }

  .brand-title {
    font-size: clamp(1.05rem, 4.2vw, 1.4rem);
  }

  .brand-caption {
    display: none;
  }

  .user-menu {
    flex: 0 0 auto;
  }

  .user-menu__button {
    min-width: clamp(2.8rem, 10vw, 3.4rem);
    padding: clamp(0.55rem, 3vw, 0.7rem);
  }

  .user-menu__panel {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 2 * var(--page-inline-padding)));
    min-width: auto;
    padding: clamp(1rem, 5vw, 1.4rem) clamp(1.1rem, 6vw, 1.6rem);
  }

  .admin-delivery-weekdays {
    justify-content: flex-start;
  }

  .admin-delivery-inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-delivery-action-row {
    flex-wrap: wrap;
  }

  .admin-delivery-week {
    gap: 0.3rem;
  }

  .admin-delivery-day {
    min-height: 88px;
  }

  .legal-policy__definition {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .order-planner {
    grid-template-columns: 1fr;
  }

  .order-planner__panel,
  .order-summary {
    padding: clamp(0.9rem, 4.5vw, 1.15rem);
  }

  .delivery-calendar__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .dropoff-option {
    padding: 0.75rem;
  }

  .order-summary__button {
    width: 100%;
    text-align: center;
  }

  .card,
  .hero,
  .admin-detail,
  .admin-form {
    padding: clamp(1rem, 4.5vw, 1.35rem);
  }

  .card {
    gap: clamp(1rem, 5vw, 1.4rem);
  }

  .page-footer__inner {
    padding-left: clamp(1rem, 4.5vw, 1.35rem);
    padding-right: clamp(1rem, 4.5vw, 1.35rem);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-dialog {
  position: relative;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  max-width: min(520px, 100%);
  width: 100%;
  padding: 2.5rem 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(93, 64, 55, 0.6);
}

.modal-close:hover {
  color: rgba(93, 64, 55, 0.9);
}

@media (max-width: 640px) {
  .modal-dialog {
    padding: 2rem 1.5rem;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.info {
  color: #2563eb;
  font-weight: 600;
}

.page-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-bottom: clamp(2.5rem, 4vw, 3.25rem);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-footer__inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 var(--page-inline-padding);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7c3a17;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(93, 64, 55, 0.85);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.6);
  outline: none;
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(93, 64, 55, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.access-gate {
  min-height: 100vh;
  background: #fbf3e6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
}

.access-gate__card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid #e4d5c3;
  border-radius: 16px;
  padding: clamp(1.75rem, 5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.access-gate__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}

.access-gate__message {
  margin: 0;
  color: #5b4633;
  line-height: 1.6;
}

.access-gate__message code {
  background: #f4ebe0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.access-gate__form {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.access-gate__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: #4a3726;
}

.access-gate__field input {
  padding: 0.8rem 1rem;
  border: 1px solid #d9cbb8;
  border-radius: 10px;
  font-size: 1rem;
  background: #fffdf9;
}

.access-gate__field input:focus {
  outline: 2px solid #f2ae4d;
  outline-offset: 1px;
}

.access-gate__error {
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.access-gate__submit {
  width: 100%;
}

@media (max-width: 480px) {
  .access-gate__card {
    border-radius: 12px;
    padding: 1.5rem;
  }
}

