.supplier-availability{display:flex;align-items:flex-start;gap:5px;font-size:10px;line-height:1.6;margin:9px 0 12px;font-weight:650}
.supplier-availability .icon{width:15px;height:15px;margin-top:1px;flex-shrink:0}
.supplier-availability--local{color:#356b17}
.supplier-availability--limited{color:#86580b}
.supplier-availability--delivery{color:#50687d}
.condition-note{font-size:11px;line-height:1.6;color:#86580b;margin:9px 0 12px}
.detail-eu-labels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:19px 0 22px}
.detail-eu-labels>div{background:#f2f6fa;border:1px solid #dce5ee;padding:12px;border-radius:6px}
.detail-eu-labels dt{display:flex;align-items:flex-start;gap:5px;color:#50687d;font-size:10px;line-height:1.5;min-height:32px}
.detail-eu-labels dt .icon{width:15px;height:15px;flex-shrink:0}
.detail-eu-labels dd{margin:8px 0 0;font-size:22px;font-weight:750;color:#15354d}
.tyre-specifications{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 35px;margin:8px 0 20px}
.tyre-specifications>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #dce5ee;padding:11px 0;font-size:12px}
.tyre-specifications dt{color:#50687d}
.tyre-specifications dd{text-align:right;margin:0;font-weight:700}
@media(max-width:680px){.supplier-availability{font-size:10px;margin:7px 0 10px}.detail-eu-labels{gap:6px}.detail-eu-labels>div{padding:9px}.detail-eu-labels dt{font-size:9px;min-height:29px}.detail-eu-labels dt .icon{width:13px;height:13px}.detail-eu-labels dd{font-size:21px}.tyre-specifications{grid-template-columns:1fr;gap:0}.tyre-specifications>div{font-size:11px}}

#modal.tyre-detail-dialog {
  width: min(1220px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  background: #f6f8fa;
  overscroll-behavior: contain;
}
.tyre-detail-dialog #modal-content { padding: clamp(16px, 2.5vw, 32px); }
.tyre-product {
  --tyre-pad: clamp(16px, 2vw, 25px);
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(305px, 1fr);
  grid-template-areas: "studio order" "specs order";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 16px 22px;
  color: #102c46;
}
.tyre-product :is(h2, h3, p, dl, dd) { margin: 0; }
.tyre-studio {
  grid-area: studio;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid #d8e5eb;
  border-radius: 18px;
  background: radial-gradient(ellipse at 75% 43%, #fff, #f0f6f7 47%, transparent 75%),
              linear-gradient(124deg, #eef4f6, #d7e4e9);
}
.tyre-identity { min-width: 0; position: relative; z-index: 1; overflow-wrap: anywhere; }
.tyre-detail-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #cfdfe6;
  border-radius: 24px;
  background: #fff;
  color: #234d65;
  font-size: .8125rem;
  font-weight: 700;
}
.tyre-detail-badge .icon { width: 15px; height: 15px; }
.tyre-identity h2 {
  margin-block: clamp(13px, 2.5vw, 27px) 7px;
  color: #102c46;
  font-size: clamp(1.85rem, 3.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.tyre-detail-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #375661;
  font-size: .875rem;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tyre-detail-brand::before { content: ""; width: 17px; height: 3px; border-radius: 2px; background: #729e1f; flex: none; }
.tyre-dimension { font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.035em; }
.tyre-index { color: #466073; font-weight: 650; font-size: .875rem; }
.tyre-photo {
  display: block;
  width: 100%;
  height: clamp(265px, 28vw, 365px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tyre-zoom {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: clamp(14px, 2.5vw, 30px);
  padding: 7px 11px;
  border: 1px solid #bdcfd8;
  border-radius: 23px;
  background: #fff;
  color: #17405b;
  font-size: .8125rem;
  font-weight: 750;
  cursor: pointer;
}
.tyre-zoom .icon { width: 17px; height: 17px; flex: none; }
.tyre-zoom[hidden] { display: none; }
.tyre-zoom:hover { border-color: var(--blue); }

.tyre-order { grid-area: order; border: 1px solid #d7e1e7; border-radius: 18px; background: #fff; box-shadow: 0 9px 30px #15354d0b; }
.tyre-cash {
  padding: 19px var(--tyre-pad);
  border-radius: 17px 17px 0 0;
  color: white;
  background: radial-gradient(ellipse at right top, #255469, transparent 78%), #102c46;
}
.tyre-cash h3 { max-width: calc(100% - 25px); color: #d6ed7b; font-size: 1rem; line-height: 1.4; font-weight: 750; }
.tyre-cash p.tyre-cash-amount { margin-block: 2px 7px; font-size: clamp(2.55rem, 4.6vw, 3.65rem); line-height: 1.1; font-weight: 800; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.tyre-cash-amount small { font-size: .46em; letter-spacing: 0; font-weight: 650; }
.tyre-cash p.tyre-cash-unpriced { font-size: clamp(1.95rem, 3vw, 2.5rem); }
.tyre-cash-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; font-size: .8125rem; color: #e3edf2; }
.tyre-cash-meta :is(.supplier-availability, .availability-date) { color: inherit; font-size: inherit; }
.tyre-cash-meta .supplier-availability { padding: 0; border: 0; background: transparent; }
.tyre-cash-meta .availability-date { flex-basis: 100%; font-size: .75rem; }
.tyre-card-payment { padding: 12px var(--tyre-pad); background: #edf3f7; font-size: .8125rem; line-height: 1.45; color: #435d6e; }
.tyre-card-payment strong { display: block; color: #102c46; font-size: .875rem; }
.tyre-config { padding: 12px var(--tyre-pad) 14px; }
.tyre-config .detail-quantity { margin: 0 0 13px; font-size: .9375rem; font-weight: 750; }
.tyre-config .stepper :is(button,input) { min-width: 42px; min-height: 44px; }
.tyre-config .tyre-fulfillment { margin-block: 0 12px; }
.tyre-config .fulfillment-options { grid-template-columns: 1fr; }
.tyre-config .fulfillment-options label { align-items: center; padding: 8px 10px; min-height: 44px; }
.tyre-config .fulfillment-options input { order: 1; }
.tyre-config .fulfillment-options label > span { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.tyre-config .fulfillment-options .icon { width: 17px; height: 17px; flex: none; color: #45637a; }
.tyre-config .fulfillment-options small { margin: 0 0 0 auto; text-align: right; }
.tyre-config .fulfillment-options strong { font-size: .875rem; }
.tyre-config [data-fulfillment-note] { font-size: .75rem; color: #466073; }
.tyre-config .branch-picker { margin-top: 9px; }
.tyre-checkout { padding: 12px var(--tyre-pad) 16px; border-top: 1px solid #d7e1e7; }
.tyre-checkout .quote-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0; margin: 0 0 9px; border: 0; gap: 5px 10px; }
.tyre-checkout .quote-total span { color: #486071; font-size: .8125rem; line-height: 1.3; font-weight: 700; }
.tyre-checkout .quote-total strong { white-space: nowrap; font-size: clamp(1.25rem, 2.8vw, 1.68rem); color: #102c46; }
.tyre-checkout .btn { width: 100%; min-height: 48px; padding-inline: 12px; white-space: nowrap; }
.tyre-checkout .btn .icon { width: 17px; height: 17px; }

.tyre-specs { grid-area: specs; min-width: 0; padding: 15px var(--tyre-pad) 0; border: 1px solid #d7e1e7; border-radius: 18px; background: #fff; }
.tyre-specs h3 { font-size: 1.125rem; letter-spacing: -.03em; }
.tyre-specs .detail-eu-labels { margin: 12px 0 15px; gap: 0; }
.tyre-specs .detail-eu-labels > div { display: flex; flex-direction: column; justify-content: space-between; padding: 0 7px; border: 0; border-radius: 0; background: transparent; }
.tyre-specs .detail-eu-labels > div:first-child { padding-left: 0; }
.tyre-specs .detail-eu-labels > div + div { border-left: 1px solid #d7e1e7; }
.tyre-specs .detail-eu-labels dt { min-height: 0; font-size: .8125rem; line-height: 1.32; }
.tyre-specs .detail-eu-labels dd { margin-top: 4px; font-size: 1.55rem; white-space: nowrap; }
.tyre-specs .detail-eu-labels dd small { font-size: .85rem; }
.tyre-specs > p { margin-bottom: 10px; font-size: .8125rem; color: #466073; }
.tyre-specs .tyre-specifications { margin-bottom: 10px; }
.tyre-specifications dd { overflow-wrap: anywhere; }
.tyre-hotel { border-top: 1px solid #d7e1e7; scroll-margin-block: 12px; }
.tyre-hotel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 51px;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  line-height: 1.35;
  font-size: .9375rem;
}
.tyre-hotel summary::-webkit-details-marker { display: none; }
.tyre-hotel summary::after { content: ""; width: 7px; height: 7px; flex: none; margin: -4px 3px 0 1px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tyre-hotel[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.tyre-hotel summary .icon { flex: none; width: 19px; height: 19px; }
[data-hotel-status] { margin-left: auto; color: #486071; font-size: .8125rem; text-align: right; }
[data-hotel-status].selected { color: var(--blue); font-weight: 800; }
.tyre-hotel > p { margin: 0 0 10px; color: #486071; font-size: .8125rem; line-height: 1.5; }
.tyre-hotel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tyre-hotel table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.tyre-hotel thead { background: #f1f5f8; color: #486071; }
.tyre-hotel :is(th,td) { padding: 4px; }
.tyre-hotel th:first-child { text-align: left; }
.tyre-hotel tbody tr { border-bottom: 1px solid #d7e1e7; }
.tyre-hotel label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--blue);
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.tyre-hotel label:has(:checked) { background: #eef5ff; border-color: var(--blue); }
.tyre-hotel label.tyre-hotel-none { display: inline-flex; margin-block: 4px; font-size: .8125rem; }
.tyre-hotel label.tyre-hotel-none:has(:checked) { border-color: transparent; background: transparent; }
.tyre-hotel input { width: 15px; height: 15px; flex: none; margin: 0; accent-color: var(--blue); }
.tyre-visual-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

dialog.tyre-subdialog {
  width: min(565px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(15px, 3vw, 24px);
  border: 1px solid #d7e1e7;
  border-radius: 16px;
  overscroll-behavior: contain;
  background: #fff;
}
.tyre-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.tyre-dialog-heading h3 { font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.3; }
.tyre-dialog-heading p { color: #486071; }
.tyre-dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7e1e7;
  border-radius: 50%;
  background: #fff;
  color: #102c46;
  cursor: pointer;
}
.tyre-view-frame { height: clamp(195px, 54dvh, 465px); margin-block: 12px; border-radius: 12px; overflow: hidden; background: #f1f5f7; }
.tyre-view-photo { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tyre-view-frame[data-view="tread"] .tyre-view-photo { transform: scale(1.9); transform-origin: 48% 42%; }
.tyre-view-buttons { display: flex; gap: 8px; }
.tyre-view-buttons button { flex: 1; min-height: 44px; padding: 6px; border: 1px solid #d7e1e7; border-radius: 8px; background: white; color: #102c46; font-weight: 750; cursor: pointer; }
.tyre-view-buttons button[aria-pressed="true"] { border-color: var(--blue); background: #eef5ff; color: var(--blue); }
.tyre-product .tyre-quote-lines { margin-block: 13px 9px; }
.tyre-quote-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #d7e1e7; font-size: .875rem; line-height: 1.4; }
.tyre-quote-lines dt { color: #486071; }
.tyre-quote-lines dd { text-align: right; font-weight: 750; }
.tyre-quote-lines > div:last-child dd { color: #102c46; font-size: 1.1rem; white-space: nowrap; }
.tyre-edit-order { min-height: 44px; margin-bottom: 15px; }
[data-tyre-viber] { margin-top: 14px; }
[aria-label="Pripremljeni Viber upit"] { margin-block: 10px; }

@media (max-width: 760px) {
  #modal.tyre-detail-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); }
  .tyre-detail-dialog #modal-content { padding: 12px 12px 0; }
  .tyre-product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "studio" "order" "specs" "checkout"; grid-template-rows: auto; gap: 11px; }
  .tyre-studio { padding: 14px; border-radius: 13px; }
  .tyre-photo { height: clamp(185px, 66vw, 325px); }
  .tyre-identity h2 { font-size: clamp(1.48rem, 6.1vw, 2.65rem); }
  .tyre-order { display: contents; }
  .tyre-order-body { grid-area: order; border: 1px solid #d7e1e7; background: #fff; border-radius: 15px; }
  .tyre-cash { border-radius: 14px 14px 0 0; }
  .tyre-specs { border-radius: 15px; }
  .tyre-hotel { scroll-margin-block-end: calc(86px + env(safe-area-inset-bottom)); }
  .tyre-checkout {
    grid-area: checkout;
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    margin-inline: -12px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 18px #15354d14;
  }
  .tyre-checkout .quote-total { display: grid; justify-items: start; gap: 2px; margin: 0; }
  .tyre-checkout .quote-total span { font-size: .75rem; }
  .tyre-checkout .btn { width: auto; padding-inline: 9px; }
  .tyre-specs .detail-eu-labels dt { flex-direction: column; gap: 4px; }
}
@media (max-width: 365px) {
  .tyre-product { --tyre-pad: 12px; }
  .tyre-studio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 11px; }
  .tyre-detail-badge { font-size: .75rem; }
  .tyre-hotel :is(th,td,label) { padding-inline: 2px; }
  .tyre-hotel table { font-size: .75rem; }
  .tyre-hotel label { gap: 3px; }
  .tyre-hotel input { width: 13px; height: 13px; }
}
