/* 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-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-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-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.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; color: var(--ev-text); font-weight: 800; text-decoration: underline; text-decoration-color: #cbd1d7; text-underline-offset: 4px; }

/* 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 { width: 18px; height: 18px; accent-color: var(--ev-dark); }
.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 { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ev-text); font-weight: 800; }
.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; min-height: 62px; padding: 7px 8px; }
.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-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.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; }
