/* AGB card presentation 0.3.1: no global theme/Swiper/price/CTA overrides. */
.agb-layout-media,
.agb-layout-result-wrap {
  box-sizing: border-box;
  width: min(1160px, calc(100% - 40px));
  margin: 24px auto 32px;
}
.agb-layout-media {
  overflow: hidden;
  border: 1px solid #e0e4e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(20 29 40 / 6%);
}
.agb-layout-media button,
.agb-layout-dialog button,
.agb-layout-dealer-media button {
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  touch-action: manipulation;
}
.agb-layout-media button:focus-visible,
.agb-layout-dialog button:focus-visible,
.agb-layout-dealer-media button:focus-visible {
  outline: 3px solid #1767a7;
  outline-offset: 3px;
}
.agb-layout-media__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 620px;
  background: #f0f2f4;
}
.agb-layout-media__open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.agb-layout-media .agb-layout-media__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  margin: 0;
  object-fit: contain;
}
.agb-layout-media__full-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 6px;
  background: rgb(16 23 31 / 84%);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.agb-layout-media__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: rgb(16 23 31 / 82%);
  color: #fff;
  font-family: Arial, sans-serif !important;
  font-size: 34px !important;
  line-height: 1 !important;
}
.agb-layout-media__arrow--prev { left: 12px; }
.agb-layout-media__arrow--next { right: 12px; }
.agb-layout-media [hidden], .agb-layout-dialog [hidden] { display: none !important; }
.agb-layout-media__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}
.agb-layout-media__count {
  color: #4b5663;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.agb-layout-media .agb-layout-watch,
.agb-layout-dealer-media .agb-layout-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #202b36;
  border-radius: 8px;
  background: #202b36;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.agb-layout-media .agb-layout-watch:hover,
.agb-layout-dealer-media .agb-layout-watch:hover { background: #344352; }
.agb-layout-media__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 18px 18px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.agb-layout-media__thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 62px;
  margin: 0;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f0f2f4;
}
.agb-layout-media__thumb[aria-pressed="true"] { border-color: #202b36; }
.agb-layout-media__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 4px;
  object-fit: contain;
}
.agb-layout-source-gallery { display: none !important; }
.agb-layout-compact-hero { height: auto !important; min-height: 0 !important; }
.mtr-job-single__hero.agb-layout-compact-hero {
  padding: 38px 0 34px !important;
  background: #121820;
  color: #fff;
}
.mtr-job-single__hero.agb-layout-compact-hero .mtr-job-single__background,
.mtr-job-single__hero.agb-layout-compact-hero .mtr-job-single__overlay,
.ept-repair-hero.agb-layout-compact-hero .ept-repair-hero__media { display: none !important; }
.agb-layout-compact-hero .mtr-job-single__heading { padding-top: 0; padding-bottom: 0; }
.agb-layout-compact-hero .mtr-back-link,
.agb-layout-compact-hero .ept-back-link { margin-bottom: 16px; }
.agb-layout-compact-hero .mtr-eyebrow,
.agb-layout-compact-hero .ept-eyebrow { margin-bottom: 10px; }
.agb-layout-compact-hero h1 {
  max-width: 960px;
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 46px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em;
}
.ept-repair-hero.agb-layout-compact-hero { padding: 34px 0 !important; }
.agb-layout-compact-hero .ept-repair-hero__grid { display: block; }
.agb-layout-repair-ready .agb-layout-result-wrap { margin-top: 0; margin-bottom: 28px; }
.agb-layout-result {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 24px 26px !important;
  border: 1px solid #dfe5e8;
  border-left: 4px solid #526e57;
  border-radius: 10px;
  background: #f3f7f4;
  color: #202b36;
}
.agb-layout-result h2 {
  margin: 0 0 10px !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
}
.agb-layout-result p,
.agb-layout-result .ept-prose { margin: 0 !important; font-size: 17px; line-height: 1.65; }
.agb-layout-repair .mtr-section,
.agb-layout-ept .ept-repair-story { padding-top: 12px; padding-bottom: 40px; }
.agb-layout-repair .mtr-job-single__story,
.agb-layout-ept .ept-repair-story__content { font-size: 17px; line-height: 1.7; }
.agb-layout-repair .mtr-job-single__story h2,
.agb-layout-ept .ept-repair-story__content h2 { font-size: 25px; line-height: 1.3; margin-bottom: 14px; }
.agb-layout-repair .mtr-job-single__story .mtr-job-detail,
.agb-layout-ept .ept-repair-story__content .ept-repair-section { margin-top: 24px; }
.agb-layout-dealer-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  background: #f6f7f8;
}
.agb-layout-dealer-media__hint { color: #4b5663; font-size: 14px; line-height: 1.4; }
.agb-layout-dialog {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  overflow: auto;
  border: 1px solid #53606d;
  border-radius: 12px;
  background: #10171f;
  color: #fff;
  box-shadow: 0 20px 80px rgb(0 0 0 / 45%);
}
.agb-layout-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.agb-layout-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.agb-layout-dialog .agb-layout-dialog__title { margin: 0; font-size: 18px; line-height: 1.4; color: #fff; }
.agb-layout-dialog .agb-layout-dialog__close,
.agb-layout-dialog .agb-layout-photo-dialog__arrow {
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #687482;
  border-radius: 6px;
  background: #202b36;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.agb-layout-dialog .agb-layout-photo-dialog__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  margin: auto;
  object-fit: contain;
}
.agb-layout-photo-dialog__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.agb-layout-photo-dialog__count { color: #fff; font-size: 14px; }
.agb-layout-video-dialog .agb-video-gallery { max-width: none; margin: 0 !important; padding: 0 !important; background: transparent; }
.agb-layout-video-dialog .agb-video-gallery > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agb-layout-video-dialog .agb-video-gallery__grid { display: flex !important; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 20px; }
.agb-layout-video-dialog .agb-video-gallery__item { flex: 0 1 100%; width: 100%; max-width: 100%; margin: 0 !important; padding: 0; border: 0; background: transparent; }
.agb-layout-video-dialog .agb-video-gallery video {
  display: block !important;
  width: auto !important;
  height: calc(100vh - 150px) !important;
  height: calc(100dvh - 150px) !important;
  max-width: 100% !important;
  max-height: calc(100vh - 150px) !important;
  max-height: calc(100dvh - 150px) !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  background: #000;
}
.agb-layout-video-dialog figcaption { margin-top: 8px; color: #fff; font-size: 14px; }
body.agb-layout-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .agb-layout-media, .agb-layout-result-wrap { width: calc(100% - 28px); margin-top: 16px; margin-bottom: 24px; }
  .agb-layout-media { border-radius: 10px; }
  .agb-layout-media__stage { aspect-ratio: 4 / 3; }
  .agb-layout-media__footer { padding: 12px 12px 6px; gap: 8px; }
  .agb-layout-media__thumbs { padding: 6px 12px 12px; }
  .agb-layout-media__thumb { flex-basis: 64px; width: 64px; height: 54px; }
  .agb-layout-media__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .agb-layout-media__arrow--prev { left: 7px; }
  .agb-layout-media__arrow--next { right: 7px; }
  .agb-layout-media__full-label { right: 9px; bottom: 9px; font-size: 11px; }
  .mtr-job-single__hero.agb-layout-compact-hero, .ept-repair-hero.agb-layout-compact-hero { padding: 25px 0 24px !important; }
  .agb-layout-compact-hero h1 { font-size: 28px !important; }
  .agb-layout-result { padding: 19px 18px !important; }
  .agb-layout-result h2 { font-size: 21px !important; }
  .agb-layout-result p, .agb-layout-result .ept-prose { font-size: 16px; }
  .agb-layout-dealer-media { margin-top: 10px; padding: 10px 12px; }
  .agb-layout-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .agb-layout-dialog__bar { gap: 10px; margin-bottom: 10px; }
  .agb-layout-video-dialog .agb-video-gallery video { height: calc(100vh - 125px) !important; height: calc(100dvh - 125px) !important; max-height: calc(100dvh - 125px) !important; }
}
