/* Local addition (not part of the live theme): multi-select checkbox and bar for quick-add.js. */
.card-media { position: relative; }
.local-select {
  position: absolute; bottom: 10px; left: 10px; z-index: 3;
  width: 26px; height: 26px; margin: 0; cursor: pointer;
}
.local-select input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.local-select span {
  display: block; width: 26px; height: 26px; border-radius: 4px;
  background: #fff; border: 2px solid #0A4A4D; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.local-select input:checked + span { background: #0A4A4D; }
.local-select input:checked + span::after {
  content: ""; display: block; width: 7px; height: 13px; margin: 3px 0 0 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.local-select input:focus-visible + span { outline: 2px solid #D4A64A; outline-offset: 2px; }

.local-multi-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 1000;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; max-width: calc(100% - 32px);
  background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
  transform: translate(-50%, 150%); transition: transform .25s ease;
}
.local-multi-bar.is-visible { transform: translate(-50%, 0); }
.local-multi-bar .button { width: auto; min-width: 0; padding: 0 18px; white-space: nowrap; }
.local-multi-count { font-weight: 600; white-space: nowrap; }
@media (max-width: 550px) {
  .local-multi-bar { flex-wrap: wrap; justify-content: center; bottom: 10px; }
  .local-multi-count { width: 100%; text-align: center; }
}

/* Local login / register / account pages (local-account.js). */
.local-account { padding-top: 40px; padding-bottom: 60px; }
.local-account .page-header { margin-bottom: 30px; }
.local-form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.local-field { display: flex; flex-direction: column; gap: 6px; }
.local-field label { font-weight: 600; font-size: 14px; }
.local-field .form-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 15px; }
.local-field .form-input:focus { border-color: #0A4A4D; outline: 2px solid rgba(212, 166, 74, .35); outline-offset: 0; }
.local-form .button { width: 100%; }
.local-form form { margin: 0; }
.local-error { margin: 0; padding: 10px 14px; border-radius: 4px; background: #fdecea; color: #a12a1b; font-size: 14px; }
.local-switch { margin: 0; text-align: center; font-size: 14px; }
.local-hello { margin: 0; font-size: 18px; text-align: center; }
.local-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 8px; }
.local-details dt { font-weight: 600; }
.local-details dd { margin: 0; word-break: break-all; }

/* Delivery badges: replaces the theme's delivery.png on product pages (server.js). */
.local-delivery {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 10px;
  border: 1px solid #DCE9E7; border-radius: 12px; background: linear-gradient(180deg, #fffdf9, #fff8ef);
  box-shadow: 0 2px 10px rgba(10, 74, 77, .06); overflow: hidden;
}
.local-delivery__item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; min-width: 0; }
.local-delivery__item + .local-delivery__item { border-left: 1px solid #DCE9E7; }
.local-delivery__icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #E3F0EE; color: #0E5E62;
}
.local-delivery__icon svg { width: 26px; height: 26px; fill: none !important; stroke: currentColor; }
.local-delivery__icon svg circle[fill="#fff"] { fill: #E3F0EE !important; }
.local-delivery__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.3; }
.local-delivery__text strong { font-size: 13.5px; font-weight: 700; color: #0A4A4D; }
.local-delivery__text small { font-size: 12px; color: #7a6a5c; }
@media (max-width: 749px) {
  .local-delivery { grid-template-columns: 1fr; }
  .local-delivery__item + .local-delivery__item { border-left: 0; border-top: 1px solid #DCE9E7; }
}
.local-notice { margin: 0; padding: 10px 14px; border-radius: 4px; background: #eaf6ec; color: #1e6b33; font-size: 14px; }
.local-forgot { margin: -6px 0 0; text-align: right; font-size: 13px; }
.local-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.local-subtitle { margin: 0; font-size: 18px; text-align: center; }
.local-password { position: relative; }
.local-password .form-input { padding-right: 70px; }
.local-password__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 6px 8px; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #0E5E62;
}
.local-password__toggle:focus-visible { outline: 2px solid #D4A64A; border-radius: 4px; }

/* Account pages, card layout (overrides the simpler form styles above). */
.local-account { padding-top: 48px; padding-bottom: 72px; }
.local-auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
  max-width: 940px; margin: 0 auto; align-items: stretch;
}
.local-auth--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.local-card {
  display: flex; flex-direction: column; gap: 18px; padding: 36px 36px 32px;
  background: #fff; border: 1px solid #E4ECEA; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 74, 77, .07);
}
.local-card--alt { background: linear-gradient(180deg, #fffaf3, #fff3e3); }
.local-card__title { margin: 0; font-size: 26px; line-height: 1.2; text-transform: none; letter-spacing: 0; color: #0A4A4D; }
.local-card__lead { margin: -8px 0 0; color: #6f6157; font-size: 15px; }
.local-card .local-form { max-width: none; margin: 0; gap: 16px; }
.local-field label { font-size: 14px; text-transform: none; letter-spacing: 0; color: #0A4A4D; }
.local-field .form-input { height: 50px; border-radius: 8px; border-color: #dcd2c6; background: #fff; }
.local-field .form-input::placeholder { color: #a99d93; }
.local-hint { color: #8a7d72; font-size: 12.5px; }
.local-card .button { height: 50px; border-radius: 8px; font-size: 14px; }
.local-forgot { margin: -8px 0 0; }
.local-benefits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.local-benefits li { position: relative; padding-left: 30px; color: #3d2a1f; font-size: 15px; }
.local-benefits li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #0E5E62 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.local-profile { display: flex; align-items: center; gap: 16px; }
.local-avatar {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #0A4A4D; color: #fff; font-size: 24px; font-weight: 700;
}
.local-profile .local-card__lead { margin: 4px 0 0; word-break: break-all; }
@media (max-width: 749px) {
  .local-account { padding-top: 24px; padding-bottom: 40px; }
  .local-auth { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .local-card { padding: 26px 20px; }
  .local-card__title { font-size: 22px; }
}

/* Store logo (server.js logoTag): keep the lockup at its own size, centred in the header. */
.local-logo { max-width: none !important; object-fit: contain; vertical-align: middle; }
#la-otp { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 10px; }
.local-resend { margin: 0; text-align: center; font-size: 14px; color: #6f6157; }
.local-resend button { padding: 0; border: 0; background: none; font: inherit; color: #0E5E62; cursor: pointer; text-decoration: underline; }

/* Product page: theme's sticky add-to-cart bar replaced by Buy now + a mobile bottom bar (quick-add.js). */
sticky-add-to-cart.productView-stickyCart { display: none !important; }
.local-buy-now {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 12px;
  background: #D4A64A; border: 1px solid #D4A64A; border-radius: 4px; color: #062E30;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.local-buy-now:hover { background: #B98A32; border-color: #B98A32; color: #fff; }
.local-buy-now.is-loading, .local-buybar button.is-loading { opacity: .65; pointer-events: none; }
.local-buybar { display: none; }
@media (max-width: 749px) {
  .local-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 -3px 12px rgba(0, 0, 0, .12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .local-buybar button {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border: 0;
    font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  }
  .local-bar-cart { background: #fff; color: #0A4A4D; border-top: 1px solid #eee !important; }
  .local-bar-buy { background: #D4A64A; color: #062E30; }
  body.has-local-buybar { padding-bottom: 56px; }
}

/* Share popup (product pages): copy confirmation */
share-button .share-button__message:not(.hidden) { display: block !important; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #1E7A4E; }
share-button .share-button__message.is-error { color: #B42335; }
share-button .button-copy.is-copied { background: #1E7A4E !important; border-color: #1E7A4E !important; }
share-button .share-group .field__input { font-size: 13px !important; color: #0A4A4D !important; text-overflow: ellipsis; }
@media (max-width: 749px) {
  share-button .share-button__fallback.is-open { left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; transform: none !important; }
}
