:root {
  --paper: #f6f0e3;
  --paper-2: #eee5d3;
  --ink: #2e352b;
  --muted: #687061;
  --green: #748746;
  --green-dark: #4f6330;
  --brown: #a87745;
  --line: rgba(46, 53, 43, .28);
  --white: #fffdf7;
  --shadow: 0 16px 40px rgba(63, 55, 40, .12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .38; background-image: radial-gradient(rgba(60,50,35,.08) .7px, transparent .7px); background-size: 6px 6px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code { background: rgba(79,99,48,.09); padding: .12rem .35rem; border-radius: 5px; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(31, 25, 19, .88); border-bottom: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); }
.header-row { min-height: 84px; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 26px; }
.brand { padding: 4px 6px; border-radius: 10px; background: rgba(246,240,227,.97); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.brand img { width: 235px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); }
.main-nav a { position: relative; color: #fff; text-decoration: none; text-transform: uppercase; font-size: .86rem; font-weight: 900; letter-spacing: .05em; padding: 30px 0 25px; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 3px; border-radius: 10px; background: #a9ba61; transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.cart-chip { color: #fff; text-decoration: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(0,0,0,.24); }
.cart-chip-icon { grid-row: 1 / 3; width: 38px; height: 38px; display: block; }
.cart-chip strong { line-height: 1.1; }
.cart-chip small { color: #e8eadf; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 28px; height: 2px; margin: 5px; background: #fff; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 680px; border-bottom: 1px solid var(--line); background-color: #4b3729; background-image: url("assets/hero-menu.png"); background-position: center; background-size: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29,21,16,.82) 0%, rgba(37,27,20,.55) 48%, rgba(28,20,15,.20) 75%, rgba(28,20,15,.42) 100%), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.40)); }
.hero-grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 760px) 1fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 90px 0 105px; color: #fff; }
.eyebrow { margin: 0 0 .75rem; color: #dfe8bc; text-transform: uppercase; font-weight: 900; letter-spacing: .15em; font-size: .8rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 820px; margin: 0 0 1.25rem; font-size: clamp(3.25rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.04em; text-shadow: 0 4px 18px rgba(0,0,0,.55); }
.hero-copy > p:not(.eyebrow) { max-width: 650px; font-size: 1.22rem; color: #f3f0e8; text-shadow: 0 2px 7px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { color: #f1f1e8; font-size: .94rem; }
.hero-note span { color: #c6d47a; font-weight: 900; }

.button { appearance: none; border: 2px solid var(--green-dark); border-radius: 8px 12px 7px 10px; padding: .85rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; font-size: .86rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px) rotate(-.2deg); box-shadow: 0 7px 0 rgba(79,99,48,.16); }
.button.primary { color: #fff; background: var(--green-dark); }
.button.ghost { color: var(--green-dark); background: transparent; }
.button.small { padding: .5rem .85rem; border-width: 1px; font-size: .74rem; }
.button.full { width: 100%; }

.section { padding: 86px 0; }
.section.compact { padding: 62px 0; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-heading span { display: inline-block; padding: 0 12px 6px; border-bottom: 3px solid var(--green); font-family: Georgia, serif; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.section-heading h2 { margin: .8rem 0 .7rem; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading.minimal { margin-bottom: 30px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { position: relative; padding: 24px; background: rgba(255,253,247,.82); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 4px 5px 0 rgba(82,72,50,.12); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:nth-child(2) { transform: rotate(.25deg); }
.product-card:nth-child(3) { transform: rotate(-.2deg); }
.product-card:hover { transform: translateY(-5px) rotate(0); box-shadow: var(--shadow); }
.product-badge { position: absolute; top: 16px; right: 16px; padding: .35rem .55rem; border-radius: 999px; color: #fff; background: var(--green-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.product-badge.muted { color: var(--ink); background: var(--paper-2); }
.product-card img { width: 76%; height: 170px; object-fit: contain; margin: 26px auto 0; }
.product-card h3 { margin: .25rem 0 .8rem; font-size: 1.55rem; }
.product-card h3 small { font-family: inherit; color: var(--muted); font-size: .65em; }
.product-card ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.product-bottom { padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; }
.product-bottom strong { font: 800 1.35rem Georgia, serif; }

.benefits { border-block: 1px solid var(--line); background: rgba(238,229,211,.7); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-grid article { text-align: center; padding: 16px 28px; border-right: 1px solid var(--line); }
.benefit-grid article:last-child { border-right: 0; }
.benefit-icon { font-size: 2.55rem; line-height: 1; min-height: 50px; }
.benefit-image { width: 58px; height: 58px; margin: 0 auto; object-fit: contain; display: block; }
.benefit-grid h3 { margin: .9rem 0 .4rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.order-section { background: linear-gradient(180deg, var(--paper) 0, #ece3d3 100%); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.delivery-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 2fr); gap: 18px 24px; align-items: start; }
.delivery-panel > h3 { grid-column: 1 / -1; margin-bottom: 0; }
.panel { min-width: 0; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,247,.88); box-shadow: 3px 4px 0 rgba(82,72,50,.08); }
.panel legend { padding: 0 10px; font: 800 1.28rem Georgia, serif; text-transform: uppercase; letter-spacing: .03em; }
.panel label { display: block; margin-bottom: 14px; font-weight: 800; font-size: .86rem; }
.panel input:not([type="checkbox"]), .panel select, .panel textarea { width: 100%; margin-top: 6px; border: 1px solid rgba(46,53,43,.38); border-radius: 8px; background: #fffefa; color: var(--ink); padding: .75rem .85rem; outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.panel input:focus, .panel select:focus, .panel textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(116,135,70,.18); }
.panel .invalid { border-color: #a33c2f !important; box-shadow: 0 0 0 3px rgba(163,60,47,.12) !important; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.order-items { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-row span { display: grid; }
.order-row small { color: var(--muted); }
.order-row > strong { min-width: 62px; text-align: right; }
.quantity { display: grid; grid-template-columns: 32px 42px 32px; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity button { height: 34px; border: 0; color: var(--ink); background: var(--paper-2); font-size: 1.2rem; }
.quantity input { height: 34px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; }
.summary-lines { display: grid; gap: 8px; margin: 22px 0; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 18px; }
.grand-total { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); font: 800 1.35rem Georgia, serif; }
.consent { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 500 !important; }
.consent input { margin-top: .25rem; }
.secure-note { text-align: center; color: var(--muted); font-size: .78rem; }
.form-message { min-height: 1.5em; color: #9b2f25; font-weight: 700; font-size: .85rem; }
.delivery-panel h3 { margin-top: 0; font-size: 1.35rem; }
.delivery-panel h4 { margin: 18px 0 6px; }
.delivery-panel ul { padding-left: 20px; }
.delivery-panel p { color: var(--muted); font-size: .86rem; }
.delivery-map-card { min-width: 0; }
.map-frame-wrap { height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #ebe5d7; }
.compact-map-card { display: grid; gap: 10px; }
.map-frame-wrap.static-visible { display: block; }
.map-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-location-text { min-height: 2.6em; margin: 10px 0 8px; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-actions.single-action { grid-template-columns: 1fr; }
.map-actions .button { width: 100%; min-width: 0; padding-inline: .6rem; white-space: nowrap; }
.delivery-card-mini { cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.delivery-card-mini:hover { transform: translateY(-1px); border-color: var(--green); }
.delivery-card-mini.selected { border-color: var(--green-dark); background: rgba(116,135,70,.12); box-shadow: 0 0 0 2px rgba(116,135,70,.09); }

.about-section { background: var(--white); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
.farm-gallery { min-width: 0; }
.gallery-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.gallery-stage > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(38,45,34,.72); font: 700 2rem/1 Georgia, serif; box-shadow: 0 6px 18px rgba(0,0,0,.22); backdrop-filter: blur(5px); }
.gallery-arrow:hover { background: var(--green-dark); }
.gallery-arrow.previous { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-counter { position: absolute; right: 14px; bottom: 12px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(28,35,25,.72); font-size: .78rem; font-weight: 800; }
.gallery-caption { margin: 10px 4px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumb { overflow: hidden; aspect-ratio: 1.25 / 1; padding: 0; border: 2px solid transparent; border-radius: 9px; background: var(--paper); opacity: .75; transition: opacity .16s ease, border-color .16s ease, transform .16s ease; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; transform: translateY(-1px); border-color: var(--green-dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.about-grid h2 { margin: .2rem 0 1.1rem; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-cards > div { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 1.5rem; }
.about-cards span { display: grid; font-size: 1rem; }
.about-cards small { color: var(--muted); }

.site-footer { padding-top: 54px; color: #ecf0e5; background: #2f382b; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 38px; }
.footer-logo { width: 260px; padding: 0; border-radius: 10px; background: transparent; }
.footer-grid h3 { margin-top: 0; color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid p { color: #cbd2c2; }
.footer-grid a { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; text-decoration: none; font: 700 1.2rem Georgia, serif; }
.footer-bottom { margin-top: 38px; padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #bfc7b7; font-size: .83rem; }

.order-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 36px); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.order-dialog::backdrop { background: rgba(30,35,28,.68); backdrop-filter: blur(3px); }
.order-dialog form { position: relative; padding: 12px; }
.order-dialog h2 { margin: .2rem 0 1rem; }
.dialog-close { position: absolute; top: 0; right: 0; width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.7rem; }
.order-dialog pre { max-height: 330px; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; background: #fffdf7; font-family: inherit; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dialog-note { color: var(--muted); font-size: .82rem; }

@media (max-width: 1030px) {
  .header-row { grid-template-columns: 190px 1fr; gap: 14px; }
  .brand img { width: 205px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .74rem; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .hero-art { margin-right: -150px; }
  .order-layout { grid-template-columns: 1fr 1fr; }
  .delivery-panel { grid-column: 1 / -1; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.7fr); }
  .delivery-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@media (max-width: 820px) {
  .header-row { min-height: 74px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; order: 2; }
  .cart-chip { order: 3; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 8px 18px 20px; flex-direction: column; gap: 0; background: rgba(31,25,19,.97); border-bottom: 1px solid rgba(255,255,255,.2); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; }
  .main-nav a::after { bottom: 7px; }
  .hero { min-height: 580px; background-position: 58% center; }
  .hero-grid { min-height: 580px; grid-template-columns: 1fr; }
  .hero-copy { padding: 90px 0 75px; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .product-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid article:nth-child(2) { border-right: 0; }
  .benefit-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .order-layout { grid-template-columns: 1fr; }
  .delivery-panel { grid-column: auto; grid-template-columns: 1fr; }
  .delivery-panel > h3 { grid-column: auto; }
  .delivery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .delivery-list { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .gallery-arrow { width: 40px; height: 40px; }
  .container { width: min(100% - 24px, 1180px); }
  .header-row { grid-template-columns: 1fr auto; }
  .brand img { width: 182px; }
  .cart-chip { position: fixed; right: 12px; bottom: 12px; z-index: 120; box-shadow: var(--shadow); }
  .menu-toggle { order: initial; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .section { padding: 64px 0; }
  .field-grid.two { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 20px 16px; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row > strong { grid-column: 1 / -1; text-align: left; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit-grid article:last-child { border-bottom: 0; }
  .about-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .button { width: 100%; }
}

/* Dynamická verze s administrací */
.empty-state { padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: var(--white); }
.stock-line { margin: 8px 0 2px; color: var(--green-dark); font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.stock-line.sold-out { color: #9b2f25; }
.button:disabled { opacity: .55; cursor: not-allowed; }

.delivery-schedule-fields { margin-top: -2px; }
.delivery-schedule-fields input[readonly] { color: var(--ink); font-weight: 800; background: rgba(116,135,70,.08); border-color: rgba(79,99,48,.34); cursor: default; }
.delivery-schedule-fields input[readonly]::placeholder { color: var(--muted); font-weight: 500; }
.delivery-schedule-note { margin: -5px 0 13px; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.delivery-details { display: grid; gap: 3px; margin: -3px 0 15px; padding: 12px 14px; border-left: 4px solid var(--green); border-radius: 7px; background: rgba(116,135,70,.09); }
.delivery-details span, .delivery-details small { color: var(--muted); }
.delivery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 0; align-content: start; }
.delivery-card-mini { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.delivery-card-mini h4 { margin: 0 0 4px; }
.delivery-card-mini p { margin: 2px 0; }
.delivery-card-mini small { color: var(--muted); }
.order-number-box { margin: 18px 0; padding: 16px; border: 2px dashed var(--green); border-radius: 10px; background: var(--white); text-align: center; font-size: 1.05rem; }
.admin-footer-link { opacity: .75; }

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

/* Platba převodem */
.payment-options { display: grid; gap: 9px; margin: 20px 0; }
.payment-options h3 { margin: 0 0 3px; font-size: 1.05rem; }
.payment-choice { display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0 !important; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; cursor: pointer; font-weight: 500 !important; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.payment-choice.selected { border-color: var(--green-dark); background: rgba(116,135,70,.10); box-shadow: 0 0 0 2px rgba(116,135,70,.08); }
.payment-choice input { margin-top: .25rem; }
.payment-choice span { display: grid; gap: 2px; }
.payment-choice b { color: var(--ink); }
.payment-choice small { color: var(--muted); font-weight: 500; }
.bank-payment-box { margin: 16px 0 20px; padding: 18px; border: 2px solid var(--green-dark); border-radius: 12px; background: #fffdf7; }
.bank-payment-box h3 { margin: 0 0 12px; }
.bank-payment-grid { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr); gap: 8px 16px; }
.bank-payment-grid span { color: var(--muted); }
.bank-payment-grid strong { overflow-wrap: anywhere; }
.payment-warning { margin: 12px 0 0; color: #76520d; font-size: .82rem; font-weight: 700; }


/* Mobilní aplikace, zapamatování zákazníka a sledování objednávek */
.remember-profile-box { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(116,135,70,.07); }
.remember-choice { display: flex !important; align-items: flex-start; gap: 8px; margin: 0 !important; }
.remember-choice input { margin-top: .22rem; }
.remember-profile-box small { grid-column: 1 / -1; color: var(--muted); }

.tracked-orders-panel { margin-top: 22px; }
.tracked-orders-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.tracked-orders-head h3 { margin: .15rem 0 0; font-size: 1.65rem; }
.tracked-orders-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tracked-orders-help { margin: 8px 0 16px; color: var(--muted); }
.tracked-orders-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.tracked-order-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; box-shadow: 2px 3px 0 rgba(82,72,50,.07); }
.tracked-order-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tracked-order-card h4 { margin: 0; font-family: Georgia, serif; font-size: 1.05rem; }
.tracked-order-card p { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.tracked-order-card .tracked-total { color: var(--ink); font-weight: 900; }
.tracked-order-card footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; background: var(--paper-2); }
.order-status-nova { color: #6d3c00; background: #ffe5ad; }
.order-status-potvrzena { color: #1f5467; background: #d8eff8; }
.order-status-pripravena { color: #4d5d21; background: #e7efc8; }
.order-status-na_rozvozu { color: #593e77; background: #eadcf8; }
.order-status-vyrizena { color: #285338; background: #d9efdf; }
.order-status-zrusena { color: #7a2822; background: #f6d7d3; }
.payment-paid-note { color: #285338 !important; font-weight: 800; }
.empty-tracked { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }

.app-download-section { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(135deg, #243120, #48563a); color: #fff; }
.app-download-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,33,22,.93) 0%, rgba(34,44,30,.88) 38%, rgba(45,57,39,.72) 62%, rgba(45,57,39,.82) 100%), url("assets/app-background-logo.png") right center / min(50vw, 760px) auto no-repeat; opacity: 1; pointer-events: none; }
.app-download-section > .container { position: relative; z-index: 1; }
.app-download-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 50px; align-items: center; }
.app-phone-preview { width: 230px; aspect-ratio: .58; margin-inline: auto; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; border: 8px solid #171b15; border-radius: 36px; background: linear-gradient(160deg, #f5eddd, #d9cfbc); box-shadow: 0 24px 45px rgba(0,0,0,.28); color: var(--ink); font: 800 1.05rem Georgia, serif; text-align: center; }
.app-phone-preview::before { content: ""; position: absolute; }
.app-phone-preview img { width: 135px; border-radius: 28px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.app-download-copy .eyebrow { color: #dce9b1; }
.app-download-copy h2 { margin: .2rem 0 1rem; font-size: clamp(2.25rem, 5vw, 3.7rem); }
.app-download-copy > p:not(.eyebrow) { max-width: 780px; color: #dce3d6; font-size: 1.05rem; }
.app-download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.app-download-section .button.ghost { color: #fff; border-color: rgba(255,255,255,.58); }
.app-install-status { min-height: 1.5em; margin: 8px 0; color: #e5eccb; font-weight: 800; }
.ios-install-help, .secure-context-help { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: #eef2e8; background: rgba(0,0,0,.16); }
.ios-install-help { line-height: 1.45; text-align: left; }
.ios-install-help:focus-visible { outline: 3px solid #dce9b1; outline-offset: 3px; }
.ios-install-help > strong { display: block; margin-bottom: 7px; color: #fff; font-size: .95rem; }
.ios-install-help .ios-safari-note { margin: 0 0 9px; color: #eef2e8; font-size: .8rem; }
.ios-install-help ol { display: grid; gap: 5px; margin: 0; padding-left: 1.45rem; }
.ios-install-help li { padding-left: 3px; }
.ios-install-help li::marker { color: #dce9b1; font-weight: 900; }
.ios-share-symbol { display: inline-block; min-width: 1.4em; color: #fff; font-size: 1.05em; font-weight: 900; text-align: center; }

.dialog-tracking-note { margin: 14px 0; padding: 11px 13px; border-radius: 9px; color: #405725; background: #e8f0d1; font-weight: 800; }
.app-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; width: min(520px, calc(100% - 28px)); transform: translateX(-50%); padding: 14px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; background: rgba(34,42,30,.96); box-shadow: 0 18px 45px rgba(0,0,0,.28); font-weight: 800; text-align: center; }

@media (max-width: 820px) {
  .app-download-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-phone-preview { width: 190px; }
}
@media (max-width: 560px) {
  .remember-profile-box { grid-template-columns: 1fr; }
  .remember-profile-box small { grid-column: auto; }
  .remember-profile-box .button { width: 100%; }
  .tracked-orders-head { align-items: stretch; flex-direction: column; }
  .tracked-orders-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .app-download-actions { display: grid; }
  .app-download-actions .button { width: 100%; }
  .app-phone-preview { width: 170px; }
}


/* Hodnocení, recenze a kompaktní aplikace */
.reviews-section { background: #f7f1e5; border-top: 1px solid var(--line); }
.reviews-layout { display: grid; grid-template-columns: minmax(300px,.68fr) minmax(0,1.32fr); gap: 30px; align-items: start; }
.reviews-sidebar { position: sticky; top: 90px; display: grid; gap: 14px; }
.reviews-summary-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); text-align: center; box-shadow: 4px 5px 0 rgba(82,72,50,.08); }
.reviews-average { margin-top: 8px; font: 800 3.2rem Georgia, serif; color: var(--ink); }
.reviews-average-stars, .review-stars { color: #d79518; letter-spacing: .08em; }
.reviews-average-stars { font-size: 1.45rem; }
.reviews-count { margin: 8px 0 0; color: var(--muted); }
.reviews-heading h2 { margin: 0 0 6px; }
.reviews-heading p { margin: 0; color: var(--muted); }
.reviews-main { min-width: 0; }
.reviews-list { display: grid; width: 100%; height: 460px; grid-template-columns: minmax(0,1fr); grid-auto-rows: minmax(118px,auto); gap: 12px; align-content: start; margin: 18px 0 7px; padding: 2px 10px 10px 2px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: block proximity; scrollbar-color: var(--green) #e8dfce; scrollbar-width: thin; }
.reviews-list:focus-visible { outline: 3px solid rgba(111,132,69,.3); outline-offset: 4px; border-radius: 12px; }
.review-card { display: grid; min-width: 0; grid-template-columns: 138px minmax(0,1fr); grid-template-areas: "meta text" "date text"; gap: 6px 18px; min-height: 118px; padding: 16px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; box-shadow: 0 5px 15px rgba(55,48,35,.05); scroll-snap-align: start; }
.review-card.has-reply { grid-template-columns: 138px minmax(0,1fr) minmax(190px,.72fr); grid-template-areas: "meta text reply" "date text reply"; }
.review-card header { grid-area: meta; display: grid; gap: 6px; align-content: start; }
.review-card .review-text { grid-area: text; min-width: 0; max-height: 92px; margin: 0; padding-right: 5px; overflow-y: auto; color: #3f4339; white-space: pre-line; scrollbar-width: thin; }
.review-card > small { grid-area: date; align-self: end; color: var(--muted); }
.review-owner-reply { grid-area: reply; min-width: 0; max-height: 94px; margin: 0; padding: 10px 12px; overflow-y: auto; border-left: 3px solid var(--green); border-radius: 0 9px 9px 0; background: #edf2e5; scrollbar-width: thin; }
.review-owner-reply strong { color: var(--green-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.review-owner-reply p { margin: 5px 0 0; color: #394132; font-size: .88rem; white-space: pre-line; }
.reviews-scroll-hint { margin: 0 0 18px; color: var(--green-dark); font-size: .82rem; font-weight: 800; text-align: right; }
.empty-reviews { grid-column: 1/-1; width: 100%; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.review-form { position: relative; display: grid; gap: 14px; padding: 20px; overflow: hidden; border: 1px solid #d9ccb3; border-radius: 16px; background: linear-gradient(145deg,#fffef9 0%,#f8f1e3 100%); box-shadow: 0 12px 28px rgba(82,72,50,.11); }
.review-form::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; content: ""; background: linear-gradient(90deg,var(--green),#d79518); }
.review-form-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; }
.review-form-heading .eyebrow { margin: 0 0 2px; font-size: .68rem; }
.review-form-heading h3 { margin: 0; font-size: 1.35rem; }
.review-form-heading p:last-child { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.review-form-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #f3dfad; color: #a66b00; font-size: 1.25rem; box-shadow: inset 0 0 0 1px rgba(166,107,0,.16); }
.review-form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.review-form-grid label { display: grid; width: 100%; gap: 7px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #e1d4bc; border-radius: 11px; background: rgba(255,255,255,.66); font-weight: 800; }
.rating-field > span { font-weight: 800; }
.review-form-grid input, .review-form-grid textarea { display: block; width: 100%; min-width: 0; margin: 0; padding: .72rem .8rem; box-sizing: border-box; border: 1px solid #d8c9ae; border-radius: 8px; background: rgba(255,255,255,.88); color: var(--ink); resize: vertical; }
.review-form-grid input:focus, .review-form-grid textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(111,132,69,.14); outline: 0; }
.rating-field { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e1d4bc; border-radius: 11px; background: rgba(255,255,255,.66); }
.star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { padding: 0 2px; color: #c8c1b1; font-size: 2rem; line-height: 1; cursor: pointer; transition: color .15s,transform .15s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #d79518; transform: translateY(-1px); }
.review-form-actions { display: grid; gap: 9px; }
.review-form-actions .button { width: 100%; box-shadow: 0 6px 14px rgba(63,82,40,.18); }
.review-message { font-weight: 800; color: var(--green-dark); }
.review-message.error { color: #a6352b; }
.review-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.compact-app-section { padding: 30px 0; }
.compact-app-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 30px; align-items: center; }
.compact-app-row h2 { margin: .15rem 0 .45rem; font-size: clamp(1.8rem,4vw,2.55rem); }
.compact-app-row p { margin: 0; color: #dce3d6; }
.compact-app-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; align-items: center; }
.compact-app-actions #installAppButton { min-height: 44px; }
.compact-app-actions .app-install-status, .compact-app-actions .ios-install-help, .compact-app-actions .secure-context-help { flex-basis: 100%; margin: 3px 0 0; font-size: .82rem; }
.compact-footer-grid { grid-template-columns: 1.15fr 1fr 1fr; }
@media (max-width: 820px) {
  .reviews-layout, .compact-app-row { grid-template-columns: 1fr; }
  .reviews-sidebar { position: static; }
  .reviews-list { height: 430px; }
  .compact-app-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .reviews-list { height: 440px; }
  .review-card, .review-card.has-reply { grid-template-columns: 1fr; grid-template-areas: "meta" "text" "reply" "date"; }
  .review-card:not(.has-reply) { grid-template-areas: "meta" "text" "date"; }
  .review-card .review-text, .review-owner-reply { max-height: 110px; }
  .review-form-grid { grid-template-columns: 1fr; }
  .review-form-actions { align-items: stretch; flex-direction: column; }
  .review-form-actions .button { width: 100%; }
  .compact-app-actions #installAppButton { width: 100%; }
  .compact-app-actions .ios-install-help { padding: 12px; }
}

/* Keep the native hidden state authoritative even for components with forced display styles. */
[hidden] { display: none !important; }


/* Více veřejných telefonních kontaktů */
.footer-phone-list{display:grid;gap:7px;margin:0 0 10px}
.footer-phone-list a{display:flex;flex-direction:column;align-items:flex-start;width:max-content;max-width:100%;text-decoration:none}
.footer-phone-list a span{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;opacity:.72}
.footer-phone-list a b{font-size:1rem;font-weight:700}
.footer-phone-list a:hover b{text-decoration:underline}


/* Otevírací informační okna v patičce */
.compact-footer-grid { grid-template-columns: 1.05fr 1fr 1fr .95fr; }
.footer-info-links { display: grid; gap: 7px; align-content: start; }
.footer-info-link { display: flex; width: fit-content; max-width: 100%; gap: 8px; align-items: center; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; line-height: 1.45; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; }
.footer-info-link:hover, .footer-info-link:focus-visible { text-decoration-color: currentColor; outline: 0; }
.footer-info-link span { width: 1.25rem; text-align: center; }
.footer-info-dialog { width: min(760px, calc(100% - 28px)); }
.footer-info-dialog form { padding: 25px 28px 22px; }
.footer-info-dialog-content { max-height: min(58vh, 560px); padding: 18px 19px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: #fffdf7; color: #33382e; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer-info-dialog-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 980px) { .compact-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .compact-footer-grid { grid-template-columns: 1fr; } .footer-info-dialog form { padding: 20px 18px 18px; } }


/* Zákaznický účet, registrace a reklamace */
.header-row{grid-template-columns:220px 1fr auto}.customer-account-button{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.38);border-radius:999px;padding:9px 13px;color:#fff;background:rgba(0,0,0,.25);font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}.customer-account-button:hover,.customer-account-button:focus-visible{background:rgba(169,186,97,.24);border-color:#cbd88e}.customer-account-button.logged-in{background:#718047}.customer-account-button svg{width:25px;height:25px;fill:currentColor}.footer-text-button{padding:0;border:0;color:#f1eadc;background:none;font:inherit;text-decoration:underline;cursor:pointer}.footer-text-button:hover{color:#fff}.review-login-required{display:grid;grid-template-columns:auto 1fr;gap:13px;padding:20px;border:1px solid #d6caa9;border-radius:14px;background:#fffaf0}.review-login-required .button{grid-column:1/-1}.review-login-required p{margin:.35rem 0 0;color:#665f50}.review-login-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e6edcf;font-size:1.35rem}.customer-account-dialog{width:min(920px,calc(100% - 24px));max-height:92vh;padding:0;border:0;border-radius:18px;background:#fffdf8;box-shadow:0 30px 90px rgba(0,0,0,.4)}.customer-account-dialog::backdrop{background:rgba(22,18,13,.72);backdrop-filter:blur(3px)}.customer-account-shell{position:relative;padding:28px;overflow:auto;max-height:92vh}.customer-account-shell>h2{margin:.2rem 0 1.2rem;color:#354125}.customer-auth-tabs,.customer-account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:12px;background:#ebe4d4}.customer-auth-tabs button,.customer-account-tabs button{padding:11px;border:0;border-radius:9px;background:transparent;color:#514a3e;font-weight:850;cursor:pointer}.customer-auth-tabs button.active,.customer-account-tabs button.active{background:#fff;color:#344021;box-shadow:0 3px 12px rgba(0,0,0,.1)}.customer-auth-form,.customer-complaint-form{display:grid;gap:14px;margin-top:18px;padding:20px;border:1px solid #ddd3bd;border-radius:14px;background:#fff}.customer-auth-form label,.customer-complaint-form label{display:grid;gap:6px;font-weight:800;color:#4a4439}.customer-auth-form input,.customer-complaint-form input,.customer-complaint-form select,.customer-complaint-form textarea{width:100%;padding:11px 12px;border:1px solid #cfc4ad;border-radius:9px;background:#fff;font:inherit}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.customer-form-message{min-height:1.2em;margin:0;color:#4c6b30;font-weight:750}.customer-form-message.error{color:#a52d2d}.customer-profile-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;margin-bottom:16px;padding:14px;border:1px solid #d8cfbb;border-radius:13px;background:#f5f0e4}.customer-profile-head>div:nth-child(2){display:grid;gap:3px}.customer-profile-head span{color:#716956;font-size:.9rem}.customer-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#dce6ba;font-size:1.5rem}.customer-account-panel{margin-top:16px}.customer-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-panel-heading h3,.customer-history-title{margin:0 0 10px}.customer-orders-list,.customer-complaints-list{display:grid;gap:11px}.customer-order-card,.customer-complaint-card{padding:15px;border:1px solid #d9d0bd;border-radius:12px;background:#fff;box-shadow:0 4px 15px rgba(58,48,31,.06)}.customer-order-card header,.customer-order-card footer,.customer-complaint-card header,.customer-complaint-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-order-card header span,.customer-complaint-card header>b{padding:5px 9px;border-radius:999px;background:#e6edcf;color:#46552e;font-size:.78rem}.customer-order-card p{color:#5f584b}.customer-complaint-card header>div{display:grid;gap:3px}.customer-complaint-card header>div span{font-weight:750}.customer-complaint-card>p{white-space:pre-wrap}.customer-complaint-reply{margin-top:12px;padding:12px;border-left:4px solid #758448;border-radius:7px;background:#f0f5e4}.customer-complaint-reply p{margin:.4rem 0 0;white-space:pre-wrap}.customer-empty{padding:18px;text-align:center;color:#756d5e;border:1px dashed #cfc4ad;border-radius:10px}.customer-history-title{margin-top:24px}
@media(max-width:1030px){.header-row{grid-template-columns:190px 1fr auto}.customer-account-button span{display:none}.customer-account-button{padding:9px}}
@media(max-width:820px){.header-row{grid-template-columns:1fr auto auto}.customer-account-button{order:3}.menu-toggle{order:2}.main-nav{z-index:30}.brand{justify-self:start}.customer-account-button span{display:none}}
@media(max-width:620px){.customer-account-shell{padding:22px 15px}.customer-form-grid{grid-template-columns:1fr}.customer-profile-head{grid-template-columns:auto 1fr}.customer-profile-head .button{grid-column:1/-1;width:100%}.customer-account-tabs{grid-template-columns:1fr}.customer-order-card header,.customer-order-card footer,.customer-complaint-card header{align-items:flex-start;flex-direction:column}.review-login-required{grid-template-columns:1fr}.review-login-required .button{grid-column:auto}}

.inline-legal-link { display: inline; padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.inline-legal-link:hover { color: #111d12; }
.legal-consent { align-items: flex-start; }
.legal-consent input { margin-top: .25rem; flex: 0 0 auto; }


/* Sociální sítě a Google registrace */
.footer-social-links{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}.social-link{display:inline-flex;align-items:center;gap:.5rem;padding:.62rem .85rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#fff;text-decoration:none;font-weight:800}.social-link span{display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;background:rgba(255,255,255,.14)}.social-link:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.google-signin-section{margin-top:1rem;padding-top:.2rem}.auth-divider{display:flex;align-items:center;gap:.8rem;margin:1.05rem 0;color:#6b6b64;font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#d9d7cf}.google-privacy-check{margin-bottom:.75rem}.google-signin-button{display:flex;justify-content:center;min-height:44px}.google-signin-section .customer-form-message{text-align:center}
.footer-phone-list a{display:flex;flex-direction:column;align-items:flex-start;gap:.14rem;padding:.72rem .82rem;border:1px solid rgba(255,255,255,.16);border-radius:12px;margin:.45rem 0;text-decoration:none}.footer-phone-list a span{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;opacity:.75}.footer-phone-list a b{font-size:1rem}

.compact-app-row > div:first-child { max-width: 760px; }
@media (max-width: 820px) {
  .app-download-section::before { background: linear-gradient(180deg, rgba(25,33,22,.94) 0%, rgba(38,49,33,.90) 42%, rgba(49,60,42,.88) 100%), url("assets/app-background-logo.png") center 22px / min(94vw, 620px) auto no-repeat; }
}


/* Oprava registrace, Google/Gmail a věrnostní program */
.customer-account-dialog{width:min(820px,calc(100vw - 24px));max-width:820px;overflow:hidden}
.customer-account-shell{box-sizing:border-box;width:100%;overflow-x:hidden}
.customer-auth-form{min-width:0;overflow:hidden}
.customer-auth-form label{min-width:0}
.customer-auth-form input:not([type="checkbox"]),.customer-complaint-form input:not([type="checkbox"]){box-sizing:border-box;min-width:0;max-width:100%}
.customer-auth-form .legal-consent,.google-signin-section .legal-consent{display:flex!important;grid-column:1/-1;align-items:flex-start;gap:10px;width:100%;min-width:0;margin:0;line-height:1.45;font-weight:650}
.customer-auth-form .legal-consent input[type="checkbox"],.google-signin-section .legal-consent input[type="checkbox"]{width:18px!important;height:18px;min-width:18px;max-width:18px;margin:3px 0 0;padding:0;flex:0 0 18px}
.customer-auth-form .legal-consent span,.google-signin-section .legal-consent span{display:block;min-width:0;overflow-wrap:anywhere;word-break:normal}
.google-signin-section{padding:0 20px 20px;border:1px solid #ddd3bd;border-top:0;border-radius:0 0 14px 14px;background:#fff}
.customer-auth-form:not([hidden]) + .google-signin-section{margin-top:-1px}
.google-signin-button>div{max-width:100%!important}
.customer-loyalty-status{color:#587038!important;font-weight:800}
.loyalty-discount-row strong{color:#56702f}
.loyalty-order-hint{grid-column:1/-1;margin:.35rem 0 0;padding:.55rem .7rem;border-radius:8px;background:#edf3dc;color:#445b29;font-size:.84rem;font-weight:800}
.customer-type-pill{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:.74rem;font-weight:850}
.customer-type-pill.registered{color:#345522;background:#dfecc9}
.customer-type-pill.unregistered{color:#675d4c;background:#eee8dc}
.loyalty-settings-admin{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fbfaf6}
@media(max-width:620px){.customer-account-dialog{width:calc(100vw - 12px);max-height:96vh;border-radius:12px}.customer-account-shell{max-height:96vh;padding:18px 12px}.customer-auth-form{padding:15px 13px}.google-signin-section{padding:0 13px 16px}.customer-auth-tabs button{padding:10px 7px}.customer-form-grid{grid-template-columns:1fr}.customer-auth-form .button.full{width:100%}}

/* Oprava registrace zákazníka */
.customer-registration-consent{padding:12px 13px;border:1px solid #d8cfbb;border-radius:10px;background:#f7f3e9}
.customer-register-message{display:block;min-height:0;margin:0;padding:0;color:#3e5c2b;font-weight:800}
.customer-register-message:not(:empty){padding:11px 13px;border-radius:9px;background:#eaf2dc}
.customer-register-message.error:not(:empty){color:#8f2525;background:#f9dfdc;border:1px solid #e6b6b0}
#customerRegisterSubmit:disabled{opacity:.7;cursor:wait}
@media(max-width:620px){.customer-registration-consent{font-size:.92rem}.customer-register-message:not(:empty){font-size:.92rem}}


/* Horní zákaznické menu a vstup do správy */
.customer-account-wrap{position:relative;justify-self:end}
.customer-admin-top-badge{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:#f6d467;color:#322812;font-size:.62rem;line-height:1;letter-spacing:.06em}
.customer-quick-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:140;width:min(310px,calc(100vw - 24px));padding:9px;border:1px solid rgba(65,70,47,.22);border-radius:15px;background:#fffdf8;color:#34382d;box-shadow:0 20px 55px rgba(0,0,0,.28)}
.customer-quick-menu::before{content:"";position:absolute;right:22px;top:-7px;width:13px;height:13px;transform:rotate(45deg);border-left:1px solid rgba(65,70,47,.18);border-top:1px solid rgba(65,70,47,.18);background:#fffdf8}
.customer-quick-head{display:grid;gap:2px;padding:10px 11px 12px;border-bottom:1px solid #e2dccd}
.customer-quick-head strong{font-family:Georgia,serif;font-size:1.05rem;color:#344126}
.customer-quick-head span{overflow:hidden;color:#726b5c;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.customer-quick-head small{width:max-content;margin-top:5px;padding:4px 7px;border-radius:999px;background:#e7edd2;color:#43552b;font-weight:850}
.customer-quick-menu>button{display:flex;width:100%;align-items:center;gap:8px;margin-top:4px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#35392f;font:inherit;font-weight:800;text-align:left;cursor:pointer}
.customer-quick-menu>button:hover,.customer-quick-menu>button:focus-visible{outline:0;background:#eef2e2}
.customer-quick-menu>button.customer-quick-admin{color:#fff;background:#50672f}
.customer-quick-menu>button.customer-quick-admin:hover,.customer-quick-menu>button.customer-quick-admin:focus-visible{background:#405425}
.customer-quick-menu>button.customer-quick-logout{color:#8d302a}
@media(max-width:1030px){.customer-admin-top-badge{position:absolute;right:-4px;top:-6px;width:9px;height:9px;padding:0;overflow:hidden;color:transparent;border:2px solid #283021;background:#f6d467}.customer-account-wrap{order:3}}
@media(max-width:820px){.customer-quick-menu{position:fixed;top:78px;right:12px}.customer-quick-menu::before{display:none}}

.receipt-email-status{margin:10px 0;padding:10px 12px;border:1px solid #aebd8d;border-radius:8px;color:#355026;background:#edf3e3;font-weight:800}.receipt-email-status.error{border-color:#d7a39b;color:#7a2822;background:#f8e8e5}


/* Upozornění o doručení a kontakt na kurýra */
.customer-delivery-preference{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:-4px 0 16px;padding:12px 14px;border:1px solid #d8cfbb;border-radius:12px;background:#fbf8f0}.customer-delivery-preference .legal-consent{display:flex;align-items:flex-start;gap:9px;margin:0}.customer-delivery-preference input[type="checkbox"]{width:18px;height:18px;min-width:18px;margin-top:2px}.customer-delivery-preference .customer-form-message{grid-column:1/-1}.customer-delivery-info{display:grid;gap:8px;margin:12px 0;padding:13px;border-left:4px solid #5978a2;border-radius:9px;background:#eef4fc}.customer-delivery-info>div{display:grid;gap:3px}.customer-delivery-info>div span,.customer-delivery-info small{color:#5e6874}.customer-delivery-info>a{justify-self:start;text-decoration:none}.google-delivery-check{margin-top:10px}
@media(max-width:620px){.customer-delivery-preference{grid-template-columns:1fr}.customer-delivery-preference .button,.customer-delivery-info>a{width:100%}}

.footer-payment-methods{margin-top:1rem;padding-top:.85rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-payment-methods h4{margin:0 0 .6rem;color:#fff;font-size:.88rem;text-transform:uppercase;letter-spacing:.05em}
.footer-payment-methods img{display:block;max-width:min(100%,320px);width:100%;height:auto;border-radius:10px;box-shadow:0 10px 24px rgba(0,0,0,.18)}

.footer-payment-under-tagline{margin-top:1.05rem;padding-top:.85rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-payment-under-tagline h4{margin:0 0 .6rem;color:#fff;font-size:.88rem;text-transform:uppercase;letter-spacing:.05em}
.footer-payment-under-tagline img{display:block;width:min(100%,340px);height:auto;background:transparent;border-radius:0;box-shadow:none}

/* Samostatné platební metody v patičce */
.accepted-payment-now{display:flex;flex-wrap:wrap;gap:.45rem;margin:.2rem 0 .75rem}
.accepted-payment-now span{display:inline-flex;align-items:center;padding:.42rem .62rem;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:#eef4df;background:rgba(255,255,255,.06);font-size:.78rem;font-weight:800}
.payment-gateway-note{margin:.2rem 0 .65rem!important;color:#cbd2c2!important;font-size:.76rem;line-height:1.35}
.payment-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-width:340px}
.payment-method-item{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.55rem;align-items:center;padding:.55rem .6rem;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.07)}
.payment-method-item img{grid-row:1/3;display:block;width:52px;height:30px;object-fit:contain;object-position:center;background:transparent;box-shadow:none;border-radius:0}
.payment-method-item b{min-width:0;color:#fff;font-size:.78rem;line-height:1.1;white-space:nowrap}
.payment-method-item small{color:#cbd2c2;font-size:.66rem;line-height:1.1}
@media(max-width:420px){.payment-method-grid{grid-template-columns:1fr}.payment-method-item{grid-template-columns:62px minmax(0,1fr)}.payment-method-item img{width:62px}}


/* Dynamicky zobrazené platební metody */
.footer-payment-methods[hidden]{display:none!important}
.footer-payment-under-tagline .payment-method-grid{display:flex;flex-wrap:wrap;gap:.55rem;max-width:390px}
.footer-payment-under-tagline .payment-method-item.active-payment-method{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:1fr;gap:.55rem;align-items:center;min-width:145px;padding:.58rem .65rem;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.07)}
.footer-payment-under-tagline .payment-method-item.active-payment-method img{grid-row:auto;width:56px;height:30px;object-fit:contain;background:transparent;border-radius:0;box-shadow:none}
.footer-payment-under-tagline .payment-method-item.active-payment-method b{font-size:.78rem;white-space:normal}
@media(max-width:430px){.footer-payment-under-tagline .payment-method-item.active-payment-method{width:100%}}

.online-payment-choice{border-color:#bdd0a0;background:linear-gradient(135deg,#fffefa,#f0f6e6)}.online-payment-choice b::after{content:"  🔒";font-size:.82em}.online-payment-choice.selected{border-color:#60773d;background:#eaf2d8}

/* Pamatovat přihlášení zákazníka */
.customer-remember-login,.google-remember-check{margin-top:2px;padding:9px 11px;border:1px solid rgba(66,80,49,.16);border-radius:10px;background:#f8f5ec}.customer-remember-login span,.google-remember-check span{font-size:.86rem;line-height:1.4}
.loyalty-program-section{padding:76px 0;background:#f3efe3;border-top:1px solid #d9d0bd;border-bottom:1px solid #d9d0bd}.loyalty-program-heading{max-width:760px;margin-bottom:38px}.loyalty-program-heading h2{margin:.15em 0;font-family:var(--font-heading,Georgia,serif);font-size:clamp(2rem,4vw,3.6rem);color:#27351f}.loyalty-program-heading>p:last-child{line-height:1.7;color:#555d4b}.loyalty-milestones{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.loyalty-milestones:before{content:"";position:absolute;left:12%;right:12%;top:34px;height:2px;background:#a9b48a}.loyalty-milestone{position:relative;padding:0 22px 26px;text-align:center}.loyalty-step{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;width:72px;height:72px;margin:0 auto 18px;border:2px solid #70834d;border-radius:50%;background:#fffdf7;box-shadow:0 8px 20px #46572f1f}.loyalty-step span{font-weight:900;color:#46572f}.loyalty-step b{font-size:1.35rem}.loyalty-threshold{margin:0;color:#70775f;font-size:.82rem;text-transform:uppercase;letter-spacing:.07em}.loyalty-milestone h3{margin:8px 0;font-family:var(--font-heading,Georgia,serif);font-size:1.45rem;color:#27351f}.loyalty-milestone strong{color:#526b32}.loyalty-milestone>p:last-child{line-height:1.55}@media(max-width:720px){.loyalty-program-section{padding:52px 0}.loyalty-milestones{grid-template-columns:1fr;gap:10px}.loyalty-milestones:before{left:35px;right:auto;top:36px;bottom:36px;width:2px;height:auto}.loyalty-milestone{display:grid;grid-template-columns:72px 1fr;text-align:left;column-gap:18px;padding:0 0 22px}.loyalty-step{grid-row:1/4;margin:0}.loyalty-milestone h3,.loyalty-milestone p{grid-column:2;margin-top:2px}}
