/* EasyVuokraus v2.6.1 layout and interaction refinements. */
:root { --ev-shell: 1680px; }
[hidden] { display: none !important; }
.ev-shell { width: min(var(--ev-shell), calc(100% - 56px)); }
.ev-hero-panel {
  background: #1d252c !important;
  background-image: none !important;
}
.ev-hero-panel__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.ev-hero-panel__shade { z-index: 1; }
.ev-hero-copy, .ev-search-card, .ev-benefits { z-index: 2; }
.ev-hero-copy { position: relative; }
.ev-browse-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(8,16,24,.28);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(7px);
}
.ev-browse-link:hover { background: rgba(8,16,24,.48); }
.ev-cart-button { position: relative; border: 0; background: transparent; cursor: pointer; }
.ev-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ev-accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}
.ev-result-controls { display: flex; gap: 10px; align-items: center; }
.ev-product-search-control input {
  min-height: 44px;
  width: min(290px, 28vw);
  padding: 0 14px;
  border: 1px solid var(--ev-border);
  border-radius: 11px;
  background: #fff;
  color: var(--ev-text);
  font-weight: 680;
}
.ev-category-control select,
.ev-sort-control select {
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--ev-border);
  border-radius: 11px;
  background: #fff;
  color: var(--ev-text);
  font-weight: 720;
}
.ev-product-card { cursor: pointer; }
.ev-product-card:focus-visible { outline: 3px solid rgba(231,25,43,.25); outline-offset: 3px; }
.ev-product-card__availability--browse { color: var(--ev-muted); }
.ev-product-thumb {
  height: 68px;
  padding: 0;
  border: 1px solid var(--ev-border);
  border-radius: 10px;
  background: #f5f6f7;
  overflow: hidden;
  cursor: pointer;
}
.ev-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-product-thumb.active { border: 2px solid var(--ev-accent); }
.ev-tab-content { min-height: 110px; padding: 16px 0; color: var(--ev-muted); line-height: 1.65; }
.ev-tab-content p { margin: 0; }
.ev-preline { white-space: pre-line; }
.ev-detail-list { margin: 0; padding-left: 20px; }
.ev-booking-panel__browse p { color: var(--ev-muted); line-height: 1.55; }
.ev-cart-dialog { width: min(860px, 100%); padding: 28px; }
.ev-cart-dialog .ev-calendar-dialog__header { padding-right: 48px; }
.ev-cart-items { display: grid; gap: 10px; margin-top: 22px; }
.ev-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto 36px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ev-border);
  border-radius: 14px;
}
.ev-cart-item img { width: 72px; height: 62px; object-fit: contain; border-radius: 9px; background: #f4f5f6; }
.ev-cart-item strong, .ev-cart-item small { display: block; }
.ev-cart-item small { margin-top: 4px; color: var(--ev-muted); font-size: .75rem; }
.ev-cart-item > button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f3f5; cursor: pointer; font-size: 1.2rem; }
.ev-cart-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ev-border); }
.ev-cart-footer span, .ev-cart-footer strong { display: block; }
.ev-cart-footer span { color: var(--ev-muted); font-size: .78rem; }
.ev-cart-footer strong { margin-top: 3px; font-size: 1.55rem; }
.ev-cart-empty { padding: 48px 20px; text-align: center; color: var(--ev-muted); }
.ev-calendar-day { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.ev-calendar-day:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(15,23,32,.09); }
.ev-calendar-day:disabled { cursor: not-allowed; opacity: .72; }
.ev-checkout-product b { margin-left: auto; }
@media (max-width: 820px) {
  .ev-shell { width: calc(100% - 32px); }
  .ev-result-controls { width: 100%; flex-direction: column; }
  .ev-product-search-control, .ev-product-search-control input, .ev-category-control, .ev-sort-control, .ev-category-control select, .ev-sort-control select { width: 100%; }
  .ev-browse-link { left: 28px; bottom: 136px; }
}
@media (max-width: 560px) {
  .ev-shell { width: calc(100% - 24px); }
  .ev-product-thumb { height: 58px; }
  .ev-browse-link { left: 22px; bottom: 162px; font-size: .82rem; }
  .ev-cart-dialog { padding: 20px 14px; }
  .ev-cart-item { grid-template-columns: 58px minmax(0,1fr) auto; }
  .ev-cart-item img { width: 58px; height: 52px; }
  .ev-cart-item > b { grid-column: 2; }
  .ev-cart-item > button { grid-column: 3; grid-row: 1 / span 2; }
  .ev-cart-footer { align-items: stretch; flex-direction: column; }
}

/* Header search stays in context instead of jumping the page. */
.ev-header-search-dialog { width: min(760px, 100%); padding: 30px; }
.ev-header-search-dialog h2 { margin: 0 48px 18px 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.ev-header-search-field { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 0 16px; border: 1px solid var(--ev-border-strong); border-radius: 14px; background: #fff; }
.ev-header-search-context { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: -4px 0 14px; padding: 11px 13px; border: 1px solid var(--ev-border); border-radius: 12px; background: #f7f8f9; }
.ev-header-search-context > div { min-width: 0; }
.ev-header-search-context small, .ev-header-search-context strong { display: block; }
.ev-header-search-context small { margin-bottom: 3px; color: var(--ev-muted); font-size: .66rem; font-weight: 760; }
.ev-header-search-context strong { font-size: .78rem; line-height: 1.35; }
.ev-header-search-context .ev-link-button { flex: 0 0 auto; white-space: nowrap; }
.ev-header-search-field svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ev-header-search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1.02rem; }
.ev-header-search-results { display: grid; gap: 8px; margin-top: 14px; max-height: min(58vh, 520px); overflow: auto; }
.ev-header-search-result { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 13px; align-items: center; width: 100%; padding: 9px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ev-text); text-align: left; cursor: pointer; }
.ev-header-search-result:hover, .ev-header-search-result:focus-visible { border-color: var(--ev-border); background: #f8f9fa; outline: 0; }
.ev-header-search-result img { width: 68px; height: 58px; object-fit: contain; border-radius: 9px; background: #f2f4f5; }
.ev-header-search-result small, .ev-header-search-result strong { display: block; }
.ev-header-search-result small { color: var(--ev-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.ev-header-search-result strong { margin-top: 3px; }
.ev-header-search-result b { white-space: nowrap; font-size: .88rem; }
.ev-header-search-empty { padding: 28px 12px; color: var(--ev-muted); text-align: center; }

/* Product information tabs use the full popup width below the image row. */
.ev-product-tabs-panel { grid-column: 1 / -1; min-width: 0; padding-top: 2px; border-top: 1px solid var(--ev-border); }
.ev-product-tabs-panel .ev-tabs { margin-top: 18px; }
.ev-product-tabs-panel .ev-tab-content { width: 100%; max-width: none; min-height: 130px; padding: 20px 2px 4px; color: #4f5a63; }
.ev-product-tabs-panel .ev-tab-content p { max-width: none; }

@media (max-width: 820px) {
  .ev-header-actions .ev-icon-button { display: grid; }
  .ev-header-search-dialog { padding: 24px 18px; }
}
@media (max-width: 560px) {
  .ev-header-search-context { align-items: flex-start; flex-direction: column; gap: 7px; }
  .ev-header-search-context .ev-link-button { padding: 0; }
  .ev-header-search-result { grid-template-columns: 54px minmax(0,1fr); }
  .ev-header-search-result img { width: 54px; height: 48px; }
  .ev-header-search-result b { grid-column: 2; }
  .ev-tabs { gap: 12px; overflow-x: auto; }
  .ev-tabs button { white-space: nowrap; }
}


/* Progressive product description: compact by default, full-width on demand. */
.ev-description-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; line-height: 1.65; }
.ev-description-panel.is-expanded .ev-description-text { display: block; overflow: visible; }
.ev-description-more { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--ev-text); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: #cbd1d7; text-underline-offset: 4px; cursor: pointer; }
.ev-rich-text > :first-child { margin-top: 0; }
.ev-rich-text > :last-child { margin-bottom: 0; }
.ev-rich-text h1, .ev-rich-text h2, .ev-rich-text h3, .ev-rich-text h4, .ev-rich-text h5, .ev-rich-text h6 { margin: 1.15em 0 .45em; color: var(--ev-text); line-height: 1.2; letter-spacing: -.02em; }
.ev-rich-text h1 { font-size: 1.55rem; }
.ev-rich-text h2 { font-size: 1.3rem; }
.ev-rich-text h3 { font-size: 1.08rem; }
.ev-rich-text h4, .ev-rich-text h5, .ev-rich-text h6 { font-size: .95rem; }
.ev-rich-text p { margin: 0 0 .85em; }
.ev-rich-text ul, .ev-rich-text ol { margin: .4em 0 .95em 1.35em; padding: 0; }
.ev-rich-text li + li { margin-top: .28em; }
.ev-rich-text strong { color: var(--ev-text); }
.ev-rich-text a { color: var(--ev-text); text-decoration: underline; text-underline-offset: 3px; }

/* Existing Booking Addon relations inside the v2 product popup. */
.ev-product-addons { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--ev-border); }
.ev-product-addons__heading h3 { margin: 0 0 12px; font-size: 1.15rem; }
.ev-product-addons__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ev-addon-card { display: grid; grid-template-columns: auto 58px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 76px; padding: 9px 11px; border: 1px solid var(--ev-border); border-radius: 13px; background: #fff; cursor: pointer; }
.ev-addon-card > input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ev-dark); }
.ev-addon-quantity { display:grid; gap:3px; justify-items:end; }
.ev-addon-quantity small { margin:0; font-size:.6rem; font-weight:800; }
.ev-addon-quantity input { width:58px; min-height:34px; padding:5px 7px; border:1px solid var(--ev-border); border-radius:8px; background:#fff; color:var(--ev-text); font:inherit; font-size:.76rem; font-weight:800; text-align:center; }
.ev-addon-standalone-link { display:inline-block; margin-top:5px; color:var(--ev-text); font-size:.65rem; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.ev-addon-card img { width: 58px; height: 54px; object-fit: contain; border-radius: 9px; background: #f3f5f6; }
.ev-addon-card strong, .ev-addon-card small { display: block; }
.ev-addon-card small { margin-top: 3px; color: var(--ev-muted); font-size: .72rem; }
.ev-addon-card b { white-space: nowrap; font-size: .85rem; }
.ev-addon-card.is-related-rental { grid-template-columns: 58px minmax(0,1fr) auto; cursor: default; background: #f8f9fa; }
.ev-addon-card.is-disabled { opacity: .58; cursor: not-allowed; }

/* Calendar now chooses exact pickup and return clock times as well as dates. */
.ev-calendar-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.ev-calendar-time-grid label { display: block; padding: 10px; border: 1px solid var(--ev-border); border-radius: 11px; background: #fff; }
.ev-calendar-time-grid span { display: block; margin-bottom: 5px; color: var(--ev-muted); font-size: .68rem; font-weight: 760; }
.ev-calendar-time-grid input, .ev-calendar-time-grid select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ev-text); font-weight: 800; }
.ev-calendar-time-grid select:disabled { color: var(--ev-muted); cursor: not-allowed; }
.ev-calendar-time-error { margin: 8px 0; color: #a52b2b; font-size: .76rem; font-weight: 760; }

@media (max-width: 560px) {
  .ev-product-addons__grid, .ev-calendar-time-grid { grid-template-columns: 1fr; }
}


/* Pickup mode is visible consistently on cards and in the booking panel. */
.ev-product-card__availability--staffed { color: #65717b; }
.ev-pickup-instructions { margin-top: 10px; padding: 11px 12px; border-radius: 11px; background: #f3f5f6; }
.ev-pickup-instructions small { color: var(--ev-muted); font-weight: 800; }
.ev-pickup-instructions p { margin: 5px 0 0; color: #42505b; font-size: .76rem; line-height: 1.5; }

/* Add-ons belong to the booking decision, directly below price / add-to-cart. */
.ev-booking-panel .ev-product-addons { margin-top: 13px; padding-top: 13px; }
.ev-booking-panel .ev-product-addons__heading h3 { margin-bottom: 9px; font-size: .95rem; }
.ev-booking-panel .ev-product-addons__grid { grid-template-columns: 1fr; }
.ev-booking-panel .ev-addon-card { grid-template-columns: auto 44px minmax(0,1fr) auto auto; min-height: 62px; padding: 7px 8px; }
.ev-booking-panel .ev-addon-card.is-related-rental { grid-template-columns:44px minmax(0,1fr) auto; }
.ev-booking-panel .ev-addon-card img { width: 44px; height: 42px; }
.ev-booking-panel .ev-addon-card strong { font-size: .78rem; }
.ev-booking-panel .ev-addon-card small { font-size: .64rem; }
.ev-booking-panel .ev-addon-card b { font-size: .74rem; }

/* Calendar days can show when an existing reservation releases the product. */
.ev-calendar-day { aspect-ratio: auto; min-height: 48px; border-radius: 11px; align-content: center; gap: 1px; padding: 4px 2px; }
.ev-calendar-day > span { font-weight: 800; }
.ev-calendar-day > small { display: block; max-width: 100%; overflow: hidden; color: inherit; font-size: .53rem; font-weight: 760; line-height: 1.05; white-space: nowrap; text-overflow: ellipsis; }
.ev-calendar-day.is-limited { outline: 1px solid rgba(229,162,14,.22); }
.ev-loading-card--calendar-check { min-height: 240px; flex-direction: column; }
.ev-loading-card--calendar-check div { display: grid; gap: 5px; }
.ev-loading-card--calendar-check small { color: var(--ev-muted); }


/* Calendar reliability and compact add-on UX. */
.ev-booking-panel .ev-edit-calendar-link { margin: -2px 0 10px; text-align: left; }
.ev-product-addons.is-collapsed .ev-addon-card:nth-child(n+2) { display: none; }
.ev-product-addons.is-expanded .ev-product-addons__grid { max-height: 158px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.ev-addons-toggle { width: 100%; margin-top: 8px; padding: 7px 0 2px; border: 0; background: transparent; color: var(--ev-text); font-size: .72rem; font-weight: 820; text-decoration: underline; text-decoration-color: #cbd1d7; text-underline-offset: 4px; cursor: pointer; }
.ev-calendar-rental-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.ev-calendar-rental-summary[hidden] { display: none !important; }
.ev-calendar-rental-summary > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--ev-border); border-radius: 10px; background: #fff; }
.ev-calendar-rental-summary small, .ev-calendar-rental-summary strong { display: block; }
.ev-calendar-rental-summary small { color: var(--ev-muted); font-size: .65rem; font-weight: 760; }
.ev-calendar-rental-summary strong { margin-top: 4px; font-size: .78rem; line-height: 1.35; }
.ev-calendar-rental-summary > div:last-child strong { font-size: 1rem; }
.ev-calendar-return-note { margin: 8px 0; padding: 9px 10px; border-radius: 9px; background: #fff7e8; color: #6a4b12; font-size: .7rem; font-weight: 720; line-height: 1.4; }
.ev-calendar-actions { margin-top: 8px; }
.ev-calendar-validation { min-height: 37px; margin: 8px 0 10px; padding: 9px 10px; border-radius: 9px; background: #f1f3f5; color: #65717b; font-size: .72rem; font-weight: 720; line-height: 1.4; }
.ev-calendar-validation.is-ok { background: var(--ev-success-soft); color: #17693f; }
.ev-calendar-validation.is-error { background: #fff0f1; color: #a52b2b; }
.ev-calendar-validation.is-loading { display: flex; align-items: center; gap: 7px; }
.ev-mini-spinner { width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid #d8dde1; border-top-color: var(--ev-accent); border-radius: 50%; animation: ev-spin .7s linear infinite; }
.ev-calendar-day.is-selected-start, .ev-calendar-day.is-selected-end { box-shadow: inset 0 0 0 2px var(--ev-dark); }
.ev-calendar-day.is-selected-range { background: #ccefdc; color: #116a40; }
.ev-calendar-day-info { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--ev-border); }
.ev-calendar-day-info > p { margin: 0; color: var(--ev-muted); font-size: .72rem; line-height: 1.45; }
.ev-day-bookings { display: grid; gap: 4px; padding: 9px 10px; border-radius: 9px; background: #f3f5f6; }
.ev-day-bookings strong { font-size: .72rem; }
.ev-day-bookings span { color: #5f6b75; font-size: .68rem; line-height: 1.35; }
.ev-day-bookings .ev-day-capacity-summary { margin: 2px 0 3px; padding: 6px 8px; border-radius: 7px; background: #fff; color: #35414a; font-size: .69rem; }
.ev-day-bookings .ev-day-capacity-summary b { font-weight: 850; }
.ev-day-bookings.is-free { background: #f5faf7; color: #28714b; }
.ev-day-availability { display: grid; gap: 3px; margin-top: 7px; padding: 9px 10px; border-radius: 9px; font-size: .7rem; line-height: 1.4; }
.ev-day-availability.is-available { background: var(--ev-success-soft); color: #17693f; }
.ev-day-availability.is-unavailable { background: #fff0f1; color: #a52b2b; }
.ev-info-dialog { width: min(560px, 100%); padding: 34px; }
.ev-info-dialog h2 { margin: 3px 44px 14px 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.ev-info-dialog [data-ev-guide-content], .ev-info-dialog > p:not(.ev-kicker) { color: var(--ev-muted); line-height: 1.65; }
.ev-info-dialog [data-ev-guide-content] p { margin: 0 0 12px; }
.ev-info-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: var(--ev-dark); color: #fff; font-weight: 900; }
.ev-info-icon--warning { background: var(--ev-accent); }
.ev-info-dialog > .ev-primary-button { margin-top: 8px; }
.ev-how-card--action, .ev-flow-strip__grid [data-ev-guide-action] { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.ev-how-card--action:hover { transform: translateY(-2px); border-color: #cbd2d8; box-shadow: var(--ev-shadow-soft); }
.ev-how-card--action:focus-visible, .ev-flow-strip__grid [data-ev-guide-action]:focus-visible { outline: 3px solid rgba(231,25,43,.22); outline-offset: 3px; }

/* Calendar polish checkpoint: browse months without leaving the product flow. */
.ev-calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ev-calendar-nav button { min-height: 38px; padding: 0 13px; border: 1px solid var(--ev-border); border-radius: 10px; background: #fff; color: var(--ev-text); font-weight: 800; cursor: pointer; }
.ev-calendar-nav button:disabled { opacity: .42; cursor: not-allowed; }
.ev-calendar-nav span { color: var(--ev-muted); font-size: .72rem; font-weight: 760; text-align: center; }


/* Staffed-return and checkout-hold clarity. */
.ev-return-adjustment { margin: 10px 0 12px; padding: 11px 12px; border-radius: 11px; background: #fff7e8; color: #6a4b12; }
.ev-return-adjustment strong, .ev-return-adjustment p, .ev-return-adjustment small { display: block; }
.ev-return-adjustment p { margin: 4px 0; font-size: .76rem; line-height: 1.45; }
.ev-return-adjustment small { opacity: .82; font-size: .65rem; line-height: 1.35; }
.ev-cart-return-note { margin-top: 5px !important; color: #7a5618 !important; }
.ev-cart-hold-note { display: grid; gap: 3px; margin-top: 14px; padding: 11px 13px; border: 1px solid #e1e5e8; border-radius: 11px; background: #f7f8f9; }
.ev-cart-hold-note strong { font-size: .78rem; }
.ev-cart-hold-note span { color: var(--ev-muted); font-size: .7rem; line-height: 1.4; }


/* Mobile calendar is a single-screen flow: one month, then time selection. */
@media (max-width: 560px) {
  .ev-modal[data-ev-calendar-modal] {
    padding: 0;
    place-items: stretch;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-dialog__header {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -2px;
    padding: 4px 48px 10px 2px;
    border-bottom: 1px solid var(--ev-border);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-dialog__header .ev-modal__close {
    top: 1px;
    right: 0;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-dialog__body {
    margin-top: 12px;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-nav {
    margin-bottom: 10px;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-nav span {
    display: none;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-months .ev-calendar-month:nth-child(n+2) {
    display: none;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-month {
    padding: 14px 10px;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-layout {
    gap: 14px;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-summary {
    scroll-margin-top: 68px;
    padding: 14px;
    border-color: var(--ev-border-strong);
    box-shadow: 0 8px 22px rgba(15,23,32,.07);
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-time-grid {
    gap: 7px;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-rental-summary {
    grid-template-columns: 1fr 1fr;
  }
  .ev-modal[data-ev-calendar-modal] .ev-calendar-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 4px -4px 0;
    padding: 8px 4px max(4px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(251,252,252,.76), #fbfcfc 28%);
  }
  .ev-modal[data-ev-calendar-modal] [data-ev-calendar-apply] {
    min-height: 52px;
    box-shadow: 0 8px 20px rgba(15,23,32,.13);
  }
}


/* Canonical multi-product cart continuation */
.ev-cart-item__edit {
  display: inline-flex;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ev-text);
  font-size: .7rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: #cbd1d7;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ev-cart-item__edit:hover { text-decoration-color: currentColor; }
.ev-cart-footer__actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.ev-cart-footer__actions .ev-secondary-button,
.ev-cart-footer__actions .ev-primary-button { min-height: 46px; }
@media (max-width: 560px) {
  .ev-cart-footer__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .ev-cart-footer__actions .ev-secondary-button,
  .ev-cart-footer__actions .ev-primary-button { width: 100%; }
}


/* Active rental context and non-blocking feedback */
.ev-active-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) minmax(130px,.65fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid var(--ev-border);
  border-radius: 14px;
  background: #f7f8f9;
}
.ev-active-search__item { min-width: 0; }
.ev-active-search__item small, .ev-active-search__item strong { display: block; }
.ev-active-search__item small { margin-bottom: 3px; color: var(--ev-muted); font-size: .65rem; font-weight: 760; }
.ev-active-search__item strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.ev-active-search__arrow { color: var(--ev-muted); font-weight: 900; }
.ev-active-search > .ev-link-button { justify-self: end; white-space: nowrap; }
.ev-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 34px;
  gap: 11px;
  align-items: start;
  width: min(430px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid #ead6d8;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,32,.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
}
.ev-toast.is-visible { opacity: 1; transform: translateY(0); }
.ev-toast__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff0f1; color: #a52b2b; font-weight: 900; }
.ev-toast strong, .ev-toast p { display: block; margin: 0; }
.ev-toast strong { font-size: .84rem; }
.ev-toast p { margin-top: 3px; color: var(--ev-muted); font-size: .75rem; line-height: 1.45; }
.ev-toast > button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f5; color: var(--ev-text); font-size: 1.05rem; cursor: pointer; }
@media (max-width: 720px) {
  .ev-active-search { grid-template-columns: 1fr auto 1fr; }
  .ev-active-search__location { grid-column: 1 / 3; }
  .ev-active-search > .ev-link-button { grid-column: 3; grid-row: 2; }
}
@media (max-width: 560px) {
  .ev-active-search { grid-template-columns: 1fr auto 1fr; gap: 9px; padding: 12px; }
  .ev-active-search__item strong { white-space: normal; line-height: 1.35; }
  .ev-active-search__location { grid-column: 1 / 3; }
  .ev-active-search > .ev-link-button { grid-column: 3; grid-row: 2; align-self: end; font-size: .72rem; }
  .ev-toast { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
}


/* Product detail modal viewport polish */
@media (min-width: 1081px) {
  .ev-modal[data-ev-product-modal] .ev-booking-panel {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (max-width: 560px) {
  body.easyvuokraus-v2.ev-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .ev-search-field input,
  .ev-search-field select,
  .ev-header-search-field input,
  .ev-product-search-control input,
  .ev-calendar-time-grid input,
  .ev-calendar-time-grid select {
    font-size: 16px;
  }
  .ev-modal:not([data-ev-product-modal]) {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .ev-modal:not([data-ev-product-modal]) .ev-modal__dialog {
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ev-modal[data-ev-product-modal] {
    padding: 0;
    place-items: stretch;
  }
  .ev-modal[data-ev-product-modal] .ev-product-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ev-modal[data-ev-product-modal] .ev-modal__close {
    position: sticky;
    top: max(10px, env(safe-area-inset-top));
    float: right;
    margin: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) -50px 0;
    z-index: 8;
    box-shadow: 0 6px 18px rgba(15,23,32,.12);
  }
  .ev-modal[data-ev-product-modal] .ev-product-detail-layout {
    padding: calc(max(14px, env(safe-area-inset-top)) + 42px) 14px max(20px, env(safe-area-inset-bottom));
    gap: 20px;
  }
  .ev-modal[data-ev-product-modal] .ev-product-gallery__main {
    min-height: 250px;
  }
  .ev-modal[data-ev-product-modal] .ev-product-info h2 {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }
  .ev-modal[data-ev-product-modal] .ev-booking-panel {
    padding: 16px;
    border-color: var(--ev-border-strong);
    box-shadow: 0 8px 24px rgba(15,23,32,.07);
  }
}


/* Reported UX fixes. */
.ev-cart-warning{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:16px 0 4px;padding:13px 14px;border:1px solid #dfe4e8;border-radius:12px;background:#f7f8f9}.ev-cart-warning.is-conflict{border-color:#ecd8b1;background:#fff8ea}.ev-cart-warning strong,.ev-cart-warning p{display:block;margin:0}.ev-cart-warning p{margin-top:4px;color:var(--ev-muted);font-size:.74rem;line-height:1.45}.ev-cart-warning .ev-secondary-button{flex:0 0 auto}.ev-search-field--date,.ev-search-field--date input{cursor:pointer}.ev-search-field--date input::-webkit-calendar-picker-indicator{opacity:0;width:0;height:0;margin:0;padding:0;pointer-events:none}@media (min-width:1081px){.ev-modal[data-ev-product-modal] .ev-product-dialog.is-description-expanded .ev-booking-panel,.ev-modal[data-ev-product-modal] .ev-product-detail-layout:has(.ev-description-panel.is-expanded) .ev-booking-panel{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}}@media (max-width:560px){.ev-cart-warning{align-items:stretch;flex-direction:column}.ev-cart-warning .ev-secondary-button{width:100%}}


/* Shared homepage/product rental-time picker. */
.ev-calendar-manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.ev-calendar-manual-grid label{display:block;padding:10px;border:1px solid var(--ev-border);border-radius:11px;background:#fff}.ev-calendar-manual-grid span{display:block;margin-bottom:5px;color:var(--ev-muted);font-size:.68rem;font-weight:760}.ev-calendar-manual-grid input,.ev-calendar-manual-grid select{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ev-text);font-weight:800}.ev-calendar-day.is-selectable{background:#f0f4f6;color:#22303a}.ev-calendar-day.is-selectable:hover{background:#e6edf1}.ev-search-field--date input[readonly]{pointer-events:none}.ev-search-field--date{user-select:none}@media(max-width:560px){.ev-calendar-manual-grid{grid-template-columns:1fr 1fr}.ev-calendar-manual-grid input,.ev-calendar-manual-grid select{font-size:16px}}

/* Desktop/mobile date-entry reliability. */
.ev-search-field--date{cursor:pointer}.ev-search-field--date:focus-visible{outline:3px solid rgba(231,25,43,.2);outline-offset:-3px;border-radius:12px}.ev-calendar-manual-grid input[type="text"]{font-variant-numeric:tabular-nums}.ev-calendar-manual-grid input[type="text"]::placeholder{color:#9aa3ab;font-weight:650}


/* Desktop booking panel stays in document flow; iOS header controls keep theme colors. */
@media (min-width:1081px){.ev-modal[data-ev-product-modal] .ev-booking-panel{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}}
.ev-icon-button,.ev-cart-button{-webkit-appearance:none;appearance:none;color:var(--ev-text);-webkit-text-fill-color:var(--ev-text)}
.ev-icon-button svg,.ev-cart-button svg{stroke:currentColor}


/* Direct rental-product entry: same product UI, normal document flow. */
.ev-direct-product-entry{min-height:calc(100vh - 72px);padding:40px 0 84px;background:#f4f6f7}
.ev-direct-product-entry__surface{width:min(1180px,100%);max-height:none;margin:0 auto;overflow:visible;border:0;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.12)}
.ev-direct-product-entry .ev-product-detail-layout{padding:48px 34px 34px}
.ev-direct-product-entry .ev-product-info h1{margin:5px 0 16px;font-size:clamp(2rem,3vw,3.3rem);line-height:.98;letter-spacing:-.045em}
.ev-direct-product-entry .ev-booking-panel{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important}
.ev-direct-product-entry__next{display:flex;justify-content:space-between;align-items:center;gap:24px;max-width:1320px;margin:24px auto 0;padding:22px 24px;border:1px solid var(--ev-border);border-radius:18px;background:#fff}
.ev-direct-product-entry__next p{margin:0 0 5px}
.ev-direct-product-entry__next strong{font-size:1rem}
.ev-direct-product-entry__next-actions{display:flex;gap:10px;align-items:center;flex:0 0 auto}
.ev-direct-product-entry__next-actions a{text-decoration:none}
.ev-direct-product-entry__bootstrap-form{display:none!important}
@media(max-width:900px){.ev-direct-product-entry{padding:22px 0 56px}.ev-direct-product-entry__surface{border-radius:18px}.ev-direct-product-entry .ev-product-detail-layout{grid-template-columns:1fr;gap:22px;padding:20px}.ev-direct-product-entry .ev-product-tabs-panel{grid-column:1}.ev-direct-product-entry__next{align-items:stretch;flex-direction:column}.ev-direct-product-entry__next-actions{flex-wrap:wrap}}
@media(max-width:560px){.ev-direct-product-entry .ev-product-detail-layout{padding:16px}.ev-direct-product-entry .ev-product-gallery__main{min-height:250px}.ev-direct-product-entry .ev-product-info h1{font-size:clamp(1.9rem,11vw,2.8rem)}.ev-direct-product-entry__next-actions{display:grid;grid-template-columns:1fr;width:100%}.ev-direct-product-entry__next-actions a{justify-content:center;width:100%}}

.ev-quantity-picker{display:grid;grid-template-columns:auto minmax(72px,96px);align-items:center;gap:6px 12px;margin:14px 0;padding:12px 14px;border:1px solid #d9dee2;border-radius:12px;background:#fff}
.ev-quantity-picker>span{font-weight:800;color:#1d252c}
.ev-quantity-picker input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cfd6dc;border-radius:9px;background:#fff;color:#1d252c;font:inherit}
.ev-quantity-picker small{grid-column:1/-1;color:#67727b;font-size:13px}
.ev-product-addons .ev-addon-card{min-width:0}


/* Standalone shop product 0.20.1 */
.ev-standalone-product{padding:36px 0 72px}
.ev-standalone-product__back{display:inline-block;margin-bottom:18px;color:var(--ev-text);font-weight:800;text-decoration:none}
.ev-standalone-product__card{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:34px;padding:28px;border:1px solid var(--ev-border);border-radius:22px;background:#fff;box-shadow:0 16px 45px rgba(15,23,32,.055)}
.ev-standalone-product__media{display:grid;place-items:center;min-height:360px;border-radius:18px;background:#f5f6f7;overflow:hidden}
.ev-standalone-product__media img{display:block;width:100%;height:100%;max-height:520px;object-fit:contain}
.ev-standalone-product__content h1{margin:4px 0 12px;font-size:clamp(2rem,4vw,3.2rem);line-height:1.02;letter-spacing:-.04em}
.ev-standalone-product__lead{color:var(--ev-muted);font-size:1rem;line-height:1.6}
.ev-standalone-product__price{margin:20px 0;font-size:1.8rem;font-weight:900}
.ev-standalone-product__buy{display:flex;align-items:end;gap:12px;margin:0 0 24px}
.ev-standalone-product__buy label{display:grid;gap:6px}
.ev-standalone-product__buy label span{font-size:.76rem;font-weight:800;color:var(--ev-muted)}
.ev-standalone-product__buy input[type="number"]{width:92px;min-height:52px;padding:8px 12px;border:1px solid var(--ev-border);border-radius:11px;background:#fff;font:inherit;font-weight:800;text-align:center}
.ev-standalone-product__buy .ev-primary-button{min-height:52px;padding:0 22px}
.ev-standalone-product__description{margin-top:24px;padding-top:22px;border-top:1px solid var(--ev-border)}
.ev-standalone-product__unavailable{padding:14px;border-radius:12px;background:#f7f8f9;color:var(--ev-muted)}
@media(max-width:720px){
  .ev-standalone-product{padding:20px 0 48px}
  .ev-standalone-product__card{grid-template-columns:1fr;gap:20px;padding:16px;border-radius:17px}
  .ev-standalone-product__media{min-height:250px}
  .ev-standalone-product__content h1{font-size:2rem}
  .ev-standalone-product__buy{align-items:stretch;flex-direction:column}
  .ev-standalone-product__buy label{width:100%}
  .ev-standalone-product__buy input[type="number"],.ev-standalone-product__buy .ev-primary-button{width:100%}
}


/* Guided mobile booking flow 0.20.3 */
.ev-calendar-return-to-days {
  display: none;
}
@media (max-width: 900px) {
  .ev-calendar-summary,
  .ev-calendar-months,
  .ev-booking-panel {
    scroll-margin-top: 18px;
  }
  .ev-calendar-return-to-days:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--ev-border);
    border-radius: 10px;
    background: #f7f8f9;
    color: var(--ev-text);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
  }
}
