/* Customer account and checkout surfaces. Keep controls native for keyboard and autofill. */
.esnaf-store {
  --form-ink: #18362b;
  --form-green: #124b32;
  --form-accent: #168747;
  --form-paper: #fff;
  --form-line: #dce5dc;
  --form-tint: #f0f5ed;
  --form-muted: #55695e;
  --form-face: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.esnaf-store :is(.esnaf-account-page, .esnaf-login-card, .esnaf-register-card, #checkout-checkout, #checkout-success, .esnaf-confirm-dialog) :where(h1,h2,h3,h4,h5,legend,label,input,button,select,textarea,a,span,strong,p,div,small,dl,dt,dd,th,td):not(.fa):not(.glyphicon) {
  font-family: var(--form-face) !important;
  text-shadow: none;
}
html[class*="route-account-"] body.esnaf-store,
html.route-checkout-checkout body.esnaf-store,
html.route-checkout-success body.esnaf-store { background: #f7f8f3 !important; color: var(--form-ink); }
html[class*="route-account-"] .esnaf-store .esnaf-account-page {
  max-width: 1160px;
  padding: 24px 18px;
  margin-inline: auto;
}
.esnaf-store .esnaf-register-card,
.esnaf-store .esnaf-login-card {
  box-sizing: border-box;
  border: 1px solid var(--form-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 6px 24px #1d3c2208 !important;
  background: var(--form-paper) !important;
  overflow: hidden;
}
.esnaf-store .esnaf-login-card .esnaf-login-card__hero,
.esnaf-store .esnaf-register-card .esnaf-register-card__hero {
  color: var(--form-ink);
  text-align: left;
  background: var(--form-tint) !important;
  border-bottom: 1px solid var(--form-line);
  padding: 22px 24px;
}
.esnaf-store .esnaf-account-page,
.esnaf-store .esnaf-account-page :is(.esnaf-account-card, .esnaf-account-sidebar),
.esnaf-store .esnaf-account-page .esnaf-account-layout > :is(.esnaf-account-card__body, .esnaf-account-layout__content),
.esnaf-store :is(#savedcart-list, #savedcart-info) > .esnaf-account-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.esnaf-store :is(#savedcart-list, #savedcart-info) .esnaf-account-card__hero {
  border-radius: 0;
  background: transparent;
}

.esnaf-store .esnaf-account-page .esnaf-account-card__hero {
  margin-bottom: 12px;
  padding-block: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--form-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.esnaf-store .esnaf-account-page .esnaf-account-card__hero:not(.esnaf-account-card__hero--form) {
  padding-inline: 0;
}

.esnaf-store .esnaf-account-page .esnaf-account-card__hero--form {
  padding-inline: 47px 0;
}

.esnaf-store .esnaf-account-page .esnaf-address-hero-back {
  left: 0;
}

.esnaf-store .esnaf-account-page .esnaf-account-card__hero .esnaf-address-hero-back {
  box-shadow: none;
}

.esnaf-store .esnaf-account-page :is(.esnaf-dashboard-panel--orders, .esnaf-ticket-section, .esnaf-ticket-chat-wrap) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.esnaf-store .esnaf-account-page :is(.esnaf-dashboard-panel--orders, .esnaf-ticket-section) > :is(header, button) {
  padding-inline: 0;
  background: transparent;
}

.esnaf-store .esnaf-account-page .esnaf-account-layout,
.esnaf-store .esnaf-account-page .esnaf-account-layout > :is(.esnaf-account-card__body, .esnaf-account-layout__content) {
  padding-inline: 0;
}

@media (max-width: 767px) {
  html[class*="route-account-"] .esnaf-store .esnaf-account-page {
    padding: 14px 12px 24px;
  }
}
.esnaf-store :is(.esnaf-account-card__title, .esnaf-register-card__title, .esnaf-login-card__title) {
  font-size: clamp(23px, 4vw, 31px);
  letter-spacing: -.045em;
  font-weight: 730;
  color: var(--form-green);
  line-height: 1.15;
}
.esnaf-store .esnaf-address-hero-back { color: var(--form-green); border-radius: 100%; background: #fff; }
.esnaf-store :is(.esnaf-login-card, .esnaf-register-card, .esnaf-account-page, #checkout-checkout) :is(.form-control,.esnaf-login-field__input,.esnaf-register-field__input,.esnaf-field__input) {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #c5d2c7 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background-color: #fff !important;
  color: var(--form-ink);
  font-size: 16px !important;
  line-height: 1.45;
}
.esnaf-store :is(.esnaf-login-card, .esnaf-register-card, .esnaf-account-page, #checkout-checkout) :is(input,textarea,select):focus-visible {
  outline: 3px solid #16874738 !important;
  outline-offset: 2px;
  border-color: var(--form-accent) !important;
}
.esnaf-store :is(.esnaf-field, .esnaf-register-field, .esnaf-login-field, .esnaf-ticket-form) label,
.esnaf-store .esnaf-login-field__label {
  font-size: 14px;
  font-weight: 650;
  color: var(--form-ink);
}
.esnaf-store :is(.esnaf-login-submit,.esnaf-register-submit,.esnaf-address-btn--primary,.esnaf-ticket-btn--primary),
.esnaf-store #checkout-checkout .btn-primary {
  min-height: 47px;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  color: white !important;
  background: var(--form-green) !important;
  font-size: 15px;
  font-weight: 680;
  box-shadow: none !important;
}
.esnaf-store :is(.esnaf-login-submit,.esnaf-register-submit,.esnaf-address-btn--primary,.esnaf-ticket-btn--primary):hover,
.esnaf-store #checkout-checkout .btn-primary:hover { background: #0c3f28 !important; }
.esnaf-store :is(.esnaf-register-alert--error,.auth-notice-error,.esnaf-login-form__message--error,#checkout-checkout .alert-danger) {
  padding: 12px 14px;
  border-radius: 12px !important;
  background: #fcf0ed;
  color: #822d20;
}
.esnaf-store :is(.esnaf-register-card, #account-forgotten.esnaf-login-card) {
  width: min(660px, calc(100% - 32px));
  margin: 28px auto;
}
.esnaf-store .esnaf-register-section { padding-block: 10px; }
.esnaf-store .esnaf-register-card .esnaf-register-section__title,
.esnaf-store .esnaf-account-card :is(.esnaf-account-form__section-title, .esnaf-address-form__section-title) {
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -.025em;
  color: var(--form-green);
}
.esnaf-store .esnaf-register-card .esnaf-register-card__body { padding: 22px; }
.esnaf-store .esnaf-account-card :is(.esnaf-address-card, .esnaf-order-card, .esnaf-dashboard-panel:not(.esnaf-dashboard-panel--orders), .esnaf-account-links) {
  border-radius: 16px;
  background-color: #fff;
  border-color: var(--form-line);
}
.esnaf-store .esnaf-account-card :is(.esnaf-account-link__icon,.esnaf-dashboard-panel__icon,.esnaf-address-empty-state__icon) {
  background-color: var(--form-tint);
  color: var(--form-green);
  border-radius: 11px;
}
.esnaf-store .esnaf-account-card .esnaf-account-link {
  min-height: 50px;
  border-color: var(--form-line);
  color: var(--form-ink);
}
.esnaf-store .esnaf-account-card :is(.esnaf-account-link__text,.esnaf-address-card__title,.esnaf-dashboard-panel__title) {
  font-weight: 650;
  letter-spacing: -.02em;
}
.esnaf-store .esnaf-account-card :is(.esnaf-ticket-compose__trigger,.esnaf-account-links) { border-radius: 14px; }
.esnaf-store .esnaf-account-card .esnaf-address-toolbar--sticky {
  position: static;
  margin-inline: 0;
  padding-inline: 0;
  background: transparent;
}
.esnaf-store .esnaf-account-card :is(.esnaf-account-section__title,.esnaf-ticket-section__title) {
  color: var(--form-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .005em;
}
.esnaf-store .esnaf-account-card .esnaf-account-sidebar__link.is-active,
.esnaf-store .esnaf-account-card .esnaf-invoice-option.is-active {
  color: var(--form-green) !important;
  border-color: #9bbfa5 !important;
  background: var(--form-tint) !important;
}
.esnaf-store .esnaf-account-card .esnaf-invoice-option.is-active :is(.esnaf-invoice-option__icon, .esnaf-invoice-option__text) {
  color: inherit;
}
.esnaf-store .esnaf-account-card :is(.input-group-addon,.esnaf-ticket-order-select__trigger) {
  border-color: #c5d2c7;
  color: var(--form-green);
  background: var(--form-tint);
}
.esnaf-store .esnaf-account-card .input-group-addon { border-radius: 12px 0 0 12px; }
.esnaf-store .esnaf-account-card .input-group > .form-control { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

/* The login header uses the bakery's own product photograph. */
.route-account-login .esnaf-store #account-login.auth-screen {
  display: grid;
  grid-template-columns: minmax(210px,.74fr) minmax(0,1fr);
  width: min(830px, calc(100% - 40px));
  margin: clamp(32px, 7vh, 80px) auto;
  padding: 0;
}
#account-login .auth-visual {
  background: #d4b183 url('../../../../../image/catalog/dereotlu-pogaca.jpg') center/cover no-repeat;
}
#account-login .auth-content { padding: clamp(26px, 4.5vw, 54px); }
#account-login h1 { margin: 0; color: var(--form-ink); font-size: clamp(32px, 4.8vw, 43px); font-weight: 740; line-height: 1.1; letter-spacing: -.055em; }
#account-login .auth-register-link { margin: 10px 0 30px; color: var(--form-muted); font-size: 14px; }
#account-login .auth-register-link a, #account-login .auth-password-label a { color: #11683b; font-weight: 650; }
#account-login .auth-password-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#account-login label { display: inline-block; margin: 0 0 7px; }
#account-login .auth-password-label a { font-size: 13px; margin-bottom: 7px; }
#account-login .auth-password-wrap { position: relative; }
#account-login #input-password { padding-right: 48px; }
#account-login .auth-reveal { position: absolute; right: 2px; inset-block: 2px; width: 44px; border: none; border-radius: 12px; background: transparent; color: var(--form-muted); }
#account-login .esnaf-login-form { gap: 19px; }
#account-login .esnaf-login-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; margin-top: 4px; }
#account-login .esnaf-login-submit:disabled { opacity: .7; }
#account-login .auth-notice { margin-top: 12px; }

.esnaf-store #checkout-checkout {
  width: min(780px, 100%);
  padding: 20px 15px 40px;
}
.esnaf-store #checkout-checkout #content > h1 {
  display: block;
  margin: 0 0 20px;
  color: var(--form-green);
  font-size: 30px;
  letter-spacing: -.045em;
  font-weight: 730;
}
.esnaf-store #checkout-checkout .panel, .esnaf-store #checkout-checkout :is(.esnaf-checkout-delivery,.esnaf-checkout-summary) {
  margin: 0 0 13px;
  border: 1px solid var(--form-line);
  border-radius: 18px;
  background: var(--form-paper);
  box-shadow: 0 3px 14px #21472e06;
}
.esnaf-store #checkout-checkout :is(.panel-heading,.esnaf-checkout-summary > h2,.esnaf-checkout-delivery > h2) {
  padding: 16px 18px;
  color: var(--form-green);
  background: var(--form-paper);
  text-transform: none;
  letter-spacing: -.02em;
  font-size: 18px;
  font-weight: 700;
}
.esnaf-store #checkout-checkout .panel-title, .esnaf-store #checkout-checkout .panel-title a { text-transform: none; font-size: 16px; font-weight: 650; line-height: 1.4; }
.esnaf-store #checkout-checkout :is(.esnaf-checkout-delivery-body,.esnaf-summary-body,.panel-body) { padding: 0 18px 16px; }
.esnaf-store #checkout-checkout .panel-body { padding-top: 16px; }
.esnaf-store #checkout-checkout .delivery-fieldset { background: transparent; border: 0; margin: 0 0 8px; padding: 0; }
.esnaf-store #checkout-checkout .delivery-fieldset legend,
.esnaf-store #checkout-checkout .esnaf-checkout-addresses legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 4px 0;
  border: 0;
  color: var(--form-muted);
  background: transparent;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 630;
}
.esnaf-store #checkout-checkout :is(.dd-day-btn,.timeslot-radio label) {
  min-height: 46px;
  border: 1px solid #d6e1d6;
  border-radius: 12px;
  background: #fafbf8;
  color: var(--form-ink);
  font-size: 14px;
  font-weight: 600;
}
.esnaf-store #checkout-checkout .dd-day-btn.is-active,
.esnaf-store #checkout-checkout .timeslot-radio label:has(input:checked) {
  border-color: #77ad89;
  background: #e8f4e9;
  color: var(--form-green);
  box-shadow: inset 0 0 0 1px #77ad89;
}
.esnaf-store #checkout-checkout .esnaf-address-actions .btn-default {
  border-radius: 12px;
  padding: 12px;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--form-line);
  color: var(--form-green);
  box-shadow: none;
  text-shadow: none;
}
.esnaf-store .esnaf-confirm-dialog { border-radius: 20px; }
.esnaf-store .esnaf-confirm-dialog h2 { font-family: var(--form-face); font-size: 21px; letter-spacing: -.04em; }
.esnaf-store .esnaf-confirm-dialog .esnaf-confirm-buttons .btn-primary { background: var(--form-green); }

@media (max-width: 680px) {
  html[class*="route-account-"] .esnaf-store .esnaf-account-page { padding: 12px 10px 82px; }
  .route-account-login .esnaf-store #account-login.auth-screen {
    grid-template-columns: minmax(0,1fr);
    width: min(430px, calc(100% - 28px));
    margin: 16px auto 24px;
  }
  #account-login .auth-visual { height: clamp(92px, 18vh, 148px); background-position: 50% 41%; }
  #account-login .auth-content { padding: 23px 20px 24px; }
  #account-login .auth-register-link { margin: 8px 0 22px; }
  .esnaf-store .esnaf-register-card, .esnaf-store #account-forgotten.esnaf-login-card { margin: 14px auto; width: calc(100% - 24px); }
  .esnaf-store .esnaf-register-card .esnaf-register-card__body { padding: 16px; }
  .esnaf-store .esnaf-account-card .esnaf-account-card__hero { padding-block: 17px; }
}
.esnaf-store [data-esnaf-form-feedback] { padding: 12px 14px; margin: 8px 0 16px; border-radius: 12px; color: var(--form-green); background: var(--form-tint); font-size: 14px; }
.esnaf-store [data-esnaf-form-feedback].auth-notice-error { color: #822d20; background: #fcf0ed; }
/* Receipt rows wrap within a phone screen, including on larger text settings. */
#checkout-checkout .review-lines, #checkout-checkout .review-totals { padding: 0; margin: 0; list-style: none; }
.review-lines li, .review-totals > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}
.review-lines li { padding: 12px 0; border-bottom: 1px solid var(--form-line); }
.review-lines li:first-child { padding-top: 0; }
.review-lines a, .review-lines strong { font-size: 16px; font-weight: 680; color: var(--form-ink); }
.review-lines p { font-size: 14px; margin: 3px 0; color: var(--form-muted); }
.review-details { color: var(--form-muted); font-size: 13px; }
.review-details summary { padding: 5px 0; cursor: pointer; }
.review-totals > div { padding: 6px 0; }
.review-totals :is(dt, dd) { margin: 0; font-size: 14px; }
.review-totals dt { font-weight: 450; }
.review-totals dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.review-totals > div:last-child { margin-top: 6px; padding-top: 12px; color: var(--form-green); border-top: 1px solid var(--form-line); }
.review-totals > div:last-child :is(dt, dd) { font-size: 18px; font-weight: 710; }
#collapse-checkout-confirm .buttons .pull-right, #collapse-checkout-confirm #button-confirm { width: 100%; }
.esnaf-store .esnaf-account-card .esnaf-account-alert--order {
  border: 0 !important;
  border-radius: 10px;
  background: #edf4eb !important;
  box-shadow: none !important;
  color: var(--form-green) !important;
}
.esnaf-store .esnaf-account-card .esnaf-account-alert--order :is(.esnaf-account-alert__text,.esnaf-account-alert__chev) { color: var(--form-green) !important; }
.esnaf-store .esnaf-account-card .esnaf-account-alert--order .esnaf-account-alert__icon { border: 0; background: #dbeadc !important; color: var(--form-green) !important; box-shadow: none !important; }
.esnaf-store #account-account .esnaf-dashboard__repeat.esnaf-account-sidebar__repeat {
  border-color: #a9c4ac;
  color: var(--form-green) !important;
  border-radius: 13px;
}
.esnaf-store #account-account .esnaf-dashboard__repeat .fa { color: var(--form-green) !important; }

/* The support list and order picker have their own markup in this store. */
.esnaf-ticket-page .esnaf-account-card__hero--form { position: relative; }
.esnaf-ticket-page :is(.esnaf-ticket-page__body, .esnaf-ticket-detail__body) { padding: clamp(15px, 2vw, 24px); }
.esnaf-ticket-page :is(.esnaf-ticket-section__hero,.esnaf-ticket-section__hero-main,.esnaf-ticket-section__hero-end) {
  display: flex; align-items: center; gap: 8px;
}
.esnaf-ticket-page .esnaf-ticket-section__hero {
  justify-content: space-between; width: 100%; padding: 12px 0; border: 0; background: #fff;
}
.esnaf-ticket-page .esnaf-ticket-section__title { margin: 0; color: var(--form-ink); font-size: 16px; }
.esnaf-ticket-section__count, .esnaf-ticket-row__status, .esnaf-ticket-card__status {
  border-radius: 999px; padding: 3px 9px; background: var(--form-tint);
  color: var(--form-green); font-size: 12px; font-weight: 650; white-space: nowrap;
}
.esnaf-ticket-page .esnaf-ticket-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center;
  min-height: 64px; padding: 11px 12px; border: 1px solid var(--form-line); border-radius: 12px; color: var(--form-ink);
}
.esnaf-ticket-rows { display: grid; gap: 6px; }
.esnaf-ticket-row__subject, .esnaf-ticket-row__meta, #ticket-order-desc { display: block; }
.esnaf-ticket-row__subject { font-weight: 650; }
.esnaf-ticket-row__meta, #ticket-order-desc, .esnaf-ticket-order-select__option-body > span {
  margin-top: 3px; color: var(--form-muted); font-size: 13px;
}
.esnaf-ticket-page .esnaf-ticket-compose__trigger, .esnaf-ticket-page .esnaf-ticket-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 15px; min-height: 45px; border: 1px solid var(--form-line);
  border-radius: 12px; background: white; font-size: 14px; font-weight: 650;
}
.esnaf-ticket-page .esnaf-ticket-compose__trigger { width: 100%; margin-bottom: 9px; background: var(--form-green); border-color: var(--form-green); color: #fff; }
.esnaf-ticket-page .esnaf-ticket-form, .esnaf-ticket-page .esnaf-ticket-form__fields, .esnaf-ticket-composer { display: grid; gap: 12px; }
.esnaf-ticket-page .esnaf-ticket-form { padding: 10px 0 16px; }
.esnaf-ticket-page .esnaf-ticket-btn--primary { width: 100%; }
.esnaf-ticket-page .esnaf-ticket-form__label, .esnaf-ticket-page .esnaf-field__label { display: block; margin-bottom: 5px; }
.esnaf-ticket-page .esnaf-ticket-order-select__trigger, .esnaf-ticket-page .esnaf-ticket-order-select__option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #c5d2c7;
  border-radius: 12px; background: #fff; text-align: left; color: var(--form-ink);
}
.esnaf-ticket-order-select__option-body > span, .esnaf-ticket-order-select__option-body strong { display: block; }
.esnaf-ticket-order-select__chev::before { content: ""; display: block; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 3px; }
.esnaf-ticket-order-select__panel { margin-top: 6px; border: 1px solid var(--form-line); border-radius: 12px; padding: 6px; background: #fff; }
.esnaf-ticket-order-select__list { max-height: 250px; overflow-y: auto; }
.esnaf-ticket-page .esnaf-ticket-order-select__option { border-color: transparent; }
.esnaf-ticket-page .esnaf-ticket-order-select__option.is-selected { background: var(--form-tint); }
.esnaf-ticket-order-select__group { margin: 8px 12px 2px; font-size: 13px; font-weight: 650; color: var(--form-muted); }
.esnaf-ticket-page__toolbar { margin-top: 16px; }
.esnaf-ticket-detail__subject { margin: 8px 0; font-size: clamp(23px, 4vw, 31px); letter-spacing: -.03em; color: var(--form-green); }
.esnaf-ticket-detail__date,.esnaf-ticket-chat__time { color: var(--form-muted); font-size: 13px; }
.esnaf-ticket-chat { display: grid; gap: 6px; margin-bottom: 18px; }
.esnaf-ticket-chat-wrap__title { margin: 14px 0 10px; color: var(--form-ink); font-size: 18px; }
.esnaf-ticket-chat__bubble { padding: 10px 13px; border-radius: 13px; background: #f4f5f1; max-width: 92%; }
.esnaf-ticket-chat__bubble--me { margin-inline-start: auto; background: #eaf3ea; }
.esnaf-ticket-chat__bubble-head,.esnaf-ticket-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esnaf-ticket-chat__author { font-weight: 650; }
.esnaf-ticket-composer__input { padding: 10px 13px; min-height: 90px; width: 100%; border: 1px solid #c5d2c7; border-radius: 12px; font-size: 16px; }
.esnaf-ticket-detail__actions > * { flex: 1 1 auto; }
#account-ticket .esnaf-account-layout__content { padding: clamp(14px, 2vw, 24px) !important; }
#account-ticket #ticket-new-toggle[aria-expanded="true"] { background: var(--form-tint); border-color: #c5d7c7; color: var(--form-green); }
#account-ticket #ticket-new-toggle[aria-expanded="true"] .fa-plus::before { content: "\f068"; }
