/* MotorAPI form CSS */


:root {
  --motorapi-maxw: 900px;
  --motorapi-gap: 12px;
  --motorapi-radius: 10px;
  --motorapi-border: 1px solid #e6e6e9;
  --motorapi-muted: #222326;
  --motorapi-fg: #0f172a;
  --motorapi-bg: #ffffff;
  --motorapi-panel: #f8fafc;

  /* PRIMARY (updated) */
  --motorapi-primary: #da071f;        /* main brand red */
  --motorapi-primary-ink: #ffffff;    /* button text */
  --motorapi-primary-hover: #b20619;  /* slightly darker hover */

  --motorapi-success: #16a34a;
  --motorapi-error: #dc2626;
  --motorapi-info: #334155;

  --motorapi-shadow: 0 1px 2px rgba(2,6,23,0.06), 0 6px 24px rgba(2,6,23,0.08);
}

/* Wrapper */
.motorapi-wrap { width: 100%; max-width: var(--motorapi-maxw); margin-inline: auto; color: var(--motorapi-fg);  }
.motorapi-wrap, .motorapi-progress { scroll-margin-top: 100px; }
.motorapi-wrap * { box-sizing: border-box; }

/* Step 0 form */
.motorapi-form { display: grid; grid-template-columns: 1fr auto; gap: var(--motorapi-gap); align-items: end; }
.motorapi-form.is-loading { opacity: .85; pointer-events: none; }
.motorapi-field { display: grid; gap: 6px; }
.motorapi-label { font-weight: 600; margin-top: 20px; }
.motorapi-input {
  width: 100%; padding: 12px 14px; border: var(--motorapi-border); border-radius: 8px;
  background: var(--motorapi-bg); color: var(--motorapi-fg);
  outline: none; transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.motorapi-input::placeholder { color: var(--motorapi-muted); }
.motorapi-input:focus-visible {
  border-color: var(--motorapi-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--motorapi-primary) 25%, transparent);
}
.motorapi-actions { display: flex; align-items: center; justify-content: flex-end; }
.motorapi-button {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
  padding: 12px 18px; border: 0; border-radius: 10px;
  background: var(--motorapi-primary); color: var(--motorapi-primary-ink);
  font-weight: 700; cursor: pointer; transition: transform .06s ease, filter .15s ease, background-color .15s ease;
  box-shadow: var(--motorapi-shadow);
	margin-top: 15px;
}
.motorapi-button:hover { background: var(--motorapi-primary-hover); }
.motorapi-button:active { transform: translateY(1px); }
.motorapi-button:disabled { opacity: .6; cursor: not-allowed; }

/* Loading spinner */
.motorapi-button__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: motorapi-spin 0.8s linear infinite;
}
.motorapi-button__spinner[hidden] { display: none; }
.motorapi-button.is-loading .motorapi-button__text { opacity: 0.7; }
@keyframes motorapi-spin { to { transform: rotate(360deg); } }

/* SVG car diagram: clickable glass areas */
.siderude-svg .hit { cursor: pointer; outline: none; }
.siderude-svg .hit.is-selected { filter: drop-shadow(0 0 0.6px rgba(0,0,0,.25)); }
.siderude-svg .hit:focus-visible { outline: 2px dashed rgba(0,0,0,.35); outline-offset: 2px; }
.motorapi-hint { 
	margin: 6px 0 0; 
	grid-column: 1 / -1; 
	font-size: 16px; 
	color: var(--motorapi-muted); 
	margin-bottom:8px;
}

/* Status */
.motorapi-status { margin-top: 12px; font-weight: 600; color: var(--motorapi-info); }
.motorapi-status--error { 
	color: var(--motorapi-error); 
border: solid;
    border-radius: 12px;
    padding: 12px;
}
.motorapi-status--success { color: var(--motorapi-success); margin-bottom:15px;}
.motorapi-status--info { color: var(--motorapi-info); margin-bottom:15px;}

/* Step 1: Summary + manual fallback */
.motorapi-summary { margin-top: 16px; padding: 16px; border: var(--motorapi-border); border-radius: var(--motorapi-radius); background: var(--motorapi-panel); box-shadow: var(--motorapi-shadow); }
.motorapi-wrap h3.motorapi-summary-title { margin: 0 0 12px !important; font-size: 1.3rem !important; }
.motorapi-summary-list { margin: 0 0 12px; }
.motorapi-summary-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--motorapi-muted) 30%, transparent);
}
.motorapi-summary-row:last-child { border-bottom: 0; }
.motorapi-summary-row dt { font-weight: 700; color: var(--motorapi-fg); }
.motorapi-summary-row dd { margin: 0; color: var(--motorapi-fg); }

.motorapi-manual { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--motorapi-gap); margin-bottom: 10px; }
.motorapi-manual .motorapi-field label { font-weight: 600; }
.motorapi-manual .motorapi-field input[type="text"],
.motorapi-manual .motorapi-field input[type="number"] {
  width: 100%; padding: 12px 14px; border: var(--motorapi-border); border-radius: 8px; background: var(--motorapi-bg); color: var(--motorapi-fg);
}
.motorapi-confirm-btn { margin-top: 4px; }

/* Step 2: Type skade */
.motorapi-step2 { margin-top: 16px; padding: 16px; border: var(--motorapi-border); border-radius: var(--motorapi-radius); background: var(--motorapi-panel); box-shadow: var(--motorapi-shadow); }
.motorapi-wrap h3.motorapi-step2-title { margin: 0 0 12px !important; font-size: 1.3rem !important; }
.motorapi-fieldset { display: grid; gap: 10px; }
.motorapi-radio { display: inline-flex; align-items: center; gap: 10px; }
.motorapi-radio input[type="radio"] { inline-size: 18px; block-size: 18px; accent-color: var(--motorapi-primary); }

/* Step 3: Insurance */
.motorapi-step3 { margin-top: 16px; padding: 16px; border: var(--motorapi-border); border-radius: var(--motorapi-radius); background: var(--motorapi-panel); box-shadow: var(--motorapi-shadow); }
.motorapi-wrap h3.motorapi-step3-title { margin: 0 0 12px !important; font-size: 1.3rem !important; }

/* Responsive */
@media (max-width: 840px) {
  .motorapi-summary-row { grid-template-columns: 1fr; }
  .motorapi-manual { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .motorapi-form { grid-template-columns: 1fr; }
  .motorapi-actions { justify-content: stretch; }
  .motorapi-button { width: 100%; }
}

/* Accessibility & utilities */
.motorapi-button:focus-visible,
.motorapi-input:focus-visible,
.motorapi-manual input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--motorapi-primary) 70%, transparent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .motorapi-button, .motorapi-input { transition: none !important; }
}
.motorapi-wrap [hidden] { display: none !important; }

/* Siderude choice buttons: default look */
.motorapi-siderude-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #e5e7eb; /* light gray default */
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.motorapi-siderude-card:hover {
  border-color: #cbd5e1; /* slightly darker on hover */
}
.motorapi-siderude-card:focus-visible {
  outline: 3px solid #60a5fa; /* blue focus ring for accessibility */
  outline-offset: 2px;
}

/* RED selection state */
.motorapi-siderude-card.is-selected {
  border-color: #d41919;               /* red border when chosen */
  box-shadow: 0 0 0 2px rgba(212,25,25,0.15) inset;
}

/* optional: small press feedback */
.motorapi-siderude-card:active { transform: scale(0.98); }

/* keep images tidy */
.motorapi-siderude-card .motorapi-siderude-img {
  display:block;
  max-width: 140px;
  height: auto;
}

.motorapi-siderude-grid {
	margin-bottom:20px;
}

#siderude-type-preview-wrap {
	margin-top:20px;
	
}

#siderude-type-image {
    max-width: 380px !important;
    width: 100% !important;
}

.motorapi-siderude-note {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.3;
  color: #6b7280;
}

/* --- Foldout (disclosure) for preview --- */
.motorapi-disclosure { margin-top:10px; max-width:380px; }
.motorapi-disclosure__btn{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  font: inherit; font-weight:600;
  padding:10px 12px; border-radius:10px;
  background:#eef2f5; border:1px solid #e3e7ee; cursor:pointer;
  transition: background .2s, border-color .2s;
}
.motorapi-disclosure__btn:hover{ background:#e9eef4; border-color:#d9dee7; }
.motorapi-disclosure__chev{ transition: transform .2s; }
.motorapi-disclosure__btn[aria-expanded="true"] .motorapi-disclosure__chev{ transform: rotate(90deg); }
.motorapi-disclosure__panel{
  padding:10px 0 0 0;
}

/* === Responsive override for Siderude-diagram === */
/* Gør hele diagramsektionen flydende og 100%-bredde på små skærme */
#motorapi-siderude-diagram,
.motorapi-siderude-diagram {
  width: 100%;
  max-width: 380px;        /* bevar din max-bredde på større skærme */
  margin: 12px 0 0;
}

/* Selve SVG'en skal fylde containerens bredde og skalere proportionalt */
.siderude-svg {
  width: 100% !important;  /* vigtig: overstyr den faste 380px fra inline-style */
  height: auto !important; /* bevar proportioner ved skalering */
  display: block;
  border-radius: 12px;
  background: #f7f8fb;
  box-shadow: inset 0 0 0 1px #eef1f5;
}

/* Foldout/preview og billede følger også containerens bredde */
.motorapi-disclosure {
  margin-top: 10px;
  max-width: 100%;         /* ikke låst til 380px på små skærme */
}

#siderude-type-image,
.motorapi-siderude-img {
  width: 100% !important;
  height: auto !important;
  max-width: 380px;        /* samme visuelle loft som diagrammet */
  display: block;
}

/* Lille polish på meget små skærme */
@media (max-width: 480px) {
  .siderude-svg { border-radius: 10px; }
}

/* Fortsæt-knappen i Step 1 (beholder din .motorapi-button-stil) */
#motorapi-confirm.motorapi-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* Skub til højre på større skærme, fuld bredde på mobil */
@supports (width: fit-content) {
  #motorapi-confirm.motorapi-confirm-btn {
    display: block;
    width: fit-content;
    margin-left: auto;  /* højrejustér i kortet */
  }
}

@media (max-width: 640px) {
  #motorapi-confirm.motorapi-confirm-btn {
    width: 100%;
    margin-left: 0;
  }
}

/* (Valgfrit) en sekundær-stil, hvis du senere vil have en "Tilbage"-knap */
.motorapi-button--secondary {
  background: transparent;
  color: var(--motorapi-primary);
  border: 2px solid var(--motorapi-primary);
}
.motorapi-button--secondary:hover {
  background: color-mix(in srgb, var(--motorapi-primary) 8%, transparent);
}


/* Lille accordion-følelse ved åbning/lukning */
.motorapi-summary,
.motorapi-step2,
.motorapi-step2b,
.motorapi-step3,
.motorapi-step4,
.motorapi-step5,
.motorapi-step6 {
  transition: opacity .2s ease, transform .2s ease;
}
.motorapi-wrap [hidden] {
  display: none !important;
  opacity: 0;
  transform: translateY(-4px);
}

/* Gør Fortsæt-knapperne lette at få øje på */
.motorapi-actions .motorapi-next {
  margin-top: 12px;
}

/* ✅ Grønt checkmark på færdige sektioner */
.motorapi-summary.is-done > h3::after,
.motorapi-step2.is-done > h3::after,
.motorapi-step2b.is-done > h3::after,
.motorapi-step3.is-done > h3::after,
.motorapi-step4.is-done > h3::after,
.motorapi-step5.is-done > h3::after,
.motorapi-step6.is-done > h3::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--motorapi-success);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--motorapi-success) 20%, transparent);
}

/* === Klikbar kalender (dato-vælger) — RESPONSIV VERSION === */
.motorapi-cal{
  user-select: none;
  width: 100%;
  max-width: 380px;              /* bevar din desktop-grænse */
  box-sizing: border-box;
  overflow: hidden;               /* undgå “ud over kanten” */
  margin: 8px auto 12px;          /* centrer på mobil */
  background: var(--motorapi-panel);
  border: var(--motorapi-border);
  border-radius: 12px;
  box-shadow: var(--motorapi-shadow);
  padding: 10px;
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
}

.motorapi-cal__hdr{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap: wrap;                 /* så den kan bryde på små skærme */
  gap: 6px;
  margin-bottom: 8px;
}
.motorapi-cal__title{
  font-weight: 800; display:flex; gap:6px;
  flex: 1 1 auto; text-align: center;
}
.motorapi-cal__nav{
  appearance:none; border:0; background:transparent;
  font-size: 22px; line-height: 1; cursor:pointer;
  padding: 4px 8px; border-radius: 8px;
}
.motorapi-cal__nav:hover{ background: rgba(0,0,0,.05); }

.motorapi-cal__dow{
  display:grid; grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 6px; margin-bottom: 6px; padding: 0 2px;
  color: var(--motorapi-muted); font-size: 12px; text-align:center;
}
.motorapi-cal__dow > span{ padding: 4px 0; }

.motorapi-cal__grid{
  display:grid; grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 6px;
}

.motorapi-cal__cell{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 0;
  height: clamp(28px, 9.5vw, 40px);   /* skalerer på mobil */
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #e8f3ea;                /* grønlig for åbne dage */
  color: var(--motorapi-fg);
  font-weight: 700;
  font-size: clamp(12px, 3.2vw, 14px);
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.motorapi-cal__cell:hover{ filter: brightness(0.97); }
.motorapi-cal__cell:active{ transform: translateY(1px); }
.motorapi-cal__cell.is-empty{ visibility:hidden; }

.motorapi-cal__cell.is-selected{
  outline: 3px solid color-mix(in srgb, var(--motorapi-primary) 40%, transparent);
  outline-offset: 1px;
  background: #ffffff;
  border-color: var(--motorapi-primary);
}

.motorapi-cal__cell.is-closed{
  background: #fde4e6;              /* rødlig for lukkede/fortid/weekend */
  border-color: #f3b1b6;
  color: #b20619;
  cursor: not-allowed;
  opacity: 0.9;
}

/* Ekstra tightening for meget små mobiler */
@media (max-width: 360px){
  .motorapi-cal{ padding-left: 8px; padding-right: 8px; }
  .motorapi-cal__grid{ gap: 4px; }
  .motorapi-cal__dow{ gap: 4px; font-size: 10px; }
  .motorapi-cal__cell{ height: clamp(26px, 10vw, 34px); font-size: 12px; }
}

/* Sikr at intet inde i kalenderen overstiger containerens bredde */
.motorapi-cal, .motorapi-cal * { max-width: 100%; }

/* --- SVG highlight ved valg (mørk grøn) --- */
.siderude-svg .hit {
  transition: fill .15s ease, stroke .15s ease, opacity .15s ease;
}

/* Når et felt er valgt via JS-klasssen .is-selected */
.siderude-svg .hit.is-selected {
  fill: #0b6b23 !important;   /* mørkere grøn */
  stroke: #0b6b23 !important; /* match stroke hvis der er outline */
  opacity: 1;
}

/* === Leaflet: Bilglasgruppen rund logo-markør === */
.bg-marker-wrap {
  background: transparent !important;
  border: 0 !important;
}
.bg-marker {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-image: url("../img/bilglasgruppen-sort-logo-150x150-white-bg.png");;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12);
  border: 2px solid #fff;
}
.leaflet-marker-icon.bg-marker-wrap:active .bg-marker {
  transform: scale(0.96);
}


/* Tooltip style for Leaflet (desktop hover) */
.leaflet-tooltip.bg-tooltip {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f3b1b6;
  background: #fff5f6;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  color: #0f172a;
  font-weight: 600;
}

/* Selected marker: red faded ring/glow */
.leaflet-marker-icon.bg-marker-wrap.is-selected .bg-marker,
.leaflet-marker-icon.bg-marker-wrap .bg-marker.is-selected,
.leaflet-marker-icon.bg-marker-wrap.is-selected {
  box-shadow:
    0 0 0 3px rgba(218, 7, 31, 0.25),
    0 8px 22px rgba(218, 7, 31, 0.15);
  border-color: #da071f;
}

#workshop-change-btn {
	background-color:white! important;
	border: 1px solid #da071f !important;
    color: black !important;
}



/* === WIZARD / STEP-BY-STEP MODE === */

/* Progress Bar */
.motorapi-progress {
  display: flex;
  background: var(--motorapi-panel);
  border: var(--motorapi-border);
  border-radius: var(--motorapi-radius);
  padding: 16px 12px;
  margin-bottom: 16px;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.motorapi-progress__step {
  flex: 1;
  min-width: 60px;
  max-width: 120px;
  text-align: center;
  position: relative;
}

.motorapi-progress__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.motorapi-progress__label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

.motorapi-progress__step.is-active .motorapi-progress__number {
  background: var(--motorapi-primary);
  color: var(--motorapi-primary-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--motorapi-primary) 20%, transparent);
}

.motorapi-progress__step.is-active .motorapi-progress__label {
  color: var(--motorapi-primary);
  font-weight: 700;
}

.motorapi-progress__step.is-completed .motorapi-progress__number {
  background: var(--motorapi-success);
  color: #fff;
}

.motorapi-progress__step.is-completed .motorapi-progress__label {
  color: var(--motorapi-success);
}

/* Connector lines between steps */
.motorapi-progress__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.motorapi-progress__step.is-completed:not(:last-child)::after {
  background: var(--motorapi-success);
}

/* Steps Wrapper */
.motorapi-steps-wrapper {
  position: relative;
  min-height: 300px;
}

/* Individual step content - WIZARD MODE */
.motorapi-steps-wrapper > .motorapi-summary,
.motorapi-steps-wrapper > .motorapi-step2,
.motorapi-steps-wrapper > .motorapi-step2b,
.motorapi-steps-wrapper > .motorapi-step3,
.motorapi-steps-wrapper > .motorapi-step4,
.motorapi-steps-wrapper > .motorapi-step5,
.motorapi-steps-wrapper > .motorapi-step6 {
  display: none;
  animation: motorapi-fadeIn 0.3s ease;
}

.motorapi-steps-wrapper > .motorapi-wizard-active {
  display: block !important;
}

@keyframes motorapi-fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(8px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Navigation Buttons */
.motorapi-nav-buttons {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  gap: 12px;
}

.motorapi-nav-buttons .motorapi-button {
  min-width: 120px;
}

#motorapi-prev-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed
}

/* Responsive adjustments - Tablet */
@media (max-width: 768px) {
  .motorapi-progress {
    padding: 14px 10px;
    gap: 3px;
  }
  
  .motorapi-progress__step {
    min-width: 50px;
    max-width: 100px;
  }
  
  .motorapi-progress__number {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  
  .motorapi-progress__label {
    font-size: 10px;
  }
  
  .motorapi-progress__step:not(:last-child)::after {
    display: none;
  }
}

/* Responsive adjustments - Mobile */
@media (max-width: 640px) {
  .motorapi-progress {
    padding: 12px 8px;
    gap: 2px;
  }
  
  .motorapi-progress__step {
    min-width: 40px;
    max-width: 80px;
  }
  
  .motorapi-progress__number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .motorapi-progress__label {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .motorapi-nav-buttons {
    flex-direction: column-reverse;
  }
  
  .motorapi-nav-buttons .motorapi-button {
    width: 100%;
  }
}

/* Responsive adjustments - Small Mobile */
@media (max-width: 480px) {
  .motorapi-progress {
    padding: 10px 6px;
    gap: 1px;
  }
  
  .motorapi-progress__step {
    min-width: 32px;
    max-width: 60px;
  }
  
  .motorapi-progress__number {
    width: 24px;
    height: 24px;
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .motorapi-progress__label {
    font-size: 8px;
  }
}

/* Very small screens - hide labels */
@media (max-width: 360px) {
  .motorapi-progress__label {
    display: none;
  }
  
  .motorapi-progress__step {
    min-width: 28px;
    max-width: 50px;
  }
  
  .motorapi-progress__number {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin-bottom: 0;
  }
}	  
	  
/* --- Popup button for preview --- */
.motorapi-preview-btn-wrap {
  margin-top: 8px;
}

.motorapi-preview-popup-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}

.motorapi-preview-popup-btn:hover {
  background: #005a87;
}

/* --- Popup overlay and modal --- */
.motorapi-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motorapi-popup-content {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.motorapi-popup-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.motorapi-popup-close {
  background: #f0f0f0;
  border: 1px solid #ccc;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 4px;
}

.motorapi-popup-close:hover {
  background: #e0e0e0;
  color: #000;
}

.motorapi-popup-content .motorapi-siderude-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.motorapi-popup-content .motorapi-siderude-note {
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 13px;
}


/* --- Outline button style for Tilbage --- */
.motorapi-button--outline {
  background: transparent;
  color: #666;
  border: 2px solid #ccc;
}

.motorapi-button--outline:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.motorapi-button--outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Notice box for mobile-only workshops --- */
.motorapi-notice {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.motorapi-notice--info {
  background: #e7f3ff;
  border-left: 4px solid #0073aa;
  color: #00395d;
}

.motorapi-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}


.motorapi-address {
	margin-top:10px;
}

.motorapi-stenslag-extra {
  margin-top: 16px;
}