@font-face {
  font-family: "ROregular";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("/assets/fonts/ROsanswebtextregular.woff2") format("woff2"),
       url("/assets/fonts/ROsanswebtextregular.woff") format("woff");
}

@font-face {
  font-family: "ROitalic";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("/assets/fonts/ROsanswebtextitalic.woff2") format("woff2"),
       url("/assets/fonts/ROsanswebtextitalic.woff") format("woff");
}

@font-face {
  font-family: "RObold";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("/assets/fonts/ROsanswebtextbold.woff2") format("woff2"),
       url("/assets/fonts/ROsanswebtextbold.woff") format("woff");
}

:root {
  --pay-width: 820px;
  --logo-blue: #154273;
  --bar-blue: #8fcae7;
  --btn-blue: #007bc7;
  --link-blue: #01689b;
  --panel-blue: #e5f1f9;
  --panel-gray: #f0f0f0;
  --page-gray: #eeeeee;
  --footer-bg: #eef7fb;
  --arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.627 7.056 6.65 2.293c-.497-.519-1.14-.242-1.385.013a.973.973 0 0 0 .028 1.36l3.63 4.33L8.919 8l.004.004-3.63 4.33a.973.973 0 0 0-.028 1.36c.246.255.888.531 1.385.013l4.977-4.763c.25-.26.374-.603.373-.944a1.35 1.35 0 0 0-.373-.944'/%3E%3C/svg%3E");
  --arrow-up: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.295 6.351c-.52.498-.242 1.14.013 1.385a.97.97 0 0 0 1.36-.028L6.922 4.98v9.277c0 .572.607.742 1.144.742.538 0 1.015-.17 1.015-.742V4.98l3.254 2.728a.97.97 0 0 0 1.36.028c.255-.245.532-.887.013-1.385L8.945 1.374A1.35 1.35 0 0 0 8 1.001a1.35 1.35 0 0 0-.943.373z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
  border: 2px solid var(--link-blue);
}

.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== LOGO — Belastingdienst tarzı: üstten asılı ========== */
.bld-logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  background: #fff;
  padding: 0 0 var(--logo-gap, 16px);
  margin: 0;
  line-height: 0;
}

.bld-logo[data-align="left"] {
  justify-content: flex-start;
  padding-left: max(20px, calc((100% - var(--pay-width, 820px)) / 2 + 20px));
  padding-right: 20px;
}

.bld-logo[data-align="right"] {
  justify-content: flex-end;
  padding-right: max(20px, calc((100% - var(--pay-width, 820px)) / 2 + 20px));
  padding-left: 20px;
}

.bld-logo[data-align="center"] {
  justify-content: center;
}

.bld-logo__link {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-decoration: none;
  line-height: 0;
  transform: translateX(var(--logo-offset-x, 0px));
}

.bld-logo__link:hover {
  text-decoration: none;
}

/* Yüklenen logo boyutu admin'den --logo-height / --logo-width */
.bld-logo__img {
  display: block;
  height: var(--logo-height, 125px);
  width: var(--logo-width, auto);
  max-width: 94vw;
  object-fit: contain;
  object-position: top center;
}

.bld-logo__mark,
.bld-logo__mark svg {
  width: calc(var(--logo-height, 125px) * 0.4);
  height: var(--logo-height, 125px);
  max-height: var(--logo-height, 125px);
}

/* ========== BLAUWE BALK ========== */
.subheader {
  width: 100%;
  background: var(--bar-blue);
  padding: 0;
}

.subheader .container {
  max-width: var(--bar-width, var(--pay-width));
  margin: 0 auto;
  min-height: var(--bar-height, 46px);
  height: auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.subheader h1 {
  margin: 0;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-bar, 18px);
  font-weight: 400;
  line-height: 1.35;
  color: #000;
  text-align: left;
  width: 100%;
  overflow-wrap: anywhere;
}

/* ========== BETAALKAART ========== */
.main {
  flex: 1 0 auto;
  background: var(--page-gray);
  padding: 24px 16px 40px;
}

.pay-wrap {
  max-width: var(--pay-width);
  margin: 0 auto;
}

.pay-card {
  background: #fff;
  padding: 20px;
}

.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--details-width, 1fr)) minmax(0, var(--method-width, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.pay-details {
  background: var(--panel-blue);
  padding: 28px 24px;
  min-height: var(--panel-height, 240px);
  height: auto;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pay-amount {
  margin: 0 0 20px;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-amount, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.pay-label {
  margin: 0;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-label, 15px);
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}

.pay-value {
  margin: 0 0 14px;
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-value, 15px);
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}

.pay-value:last-child {
  margin-bottom: 0;
}

.pay-method {
  background: var(--panel-gray);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--panel-height, 240px);
  height: auto;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.ideal-logo {
  flex-shrink: 0;
  width: clamp(48px, 10vw, 72px);
  height: auto;
  margin-top: 0;
}

.ideal-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.pay-method__text {
  min-width: 0;
  padding-top: 0;
  flex: 1;
}

.pay-method__title {
  margin: 0;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-idealTitle, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.pay-method__sub {
  margin: 6px 0 0;
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-idealSub, 16px);
  font-weight: 400;
  line-height: 1.35;
  color: #000;
}

.pay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-button, 16px);
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn--secondary {
  background: #fff;
  color: var(--btn-blue);
  border-color: var(--btn-blue);
}

.btn--secondary:hover {
  background: #d9ebf7;
}

.btn--primary {
  background: var(--btn-blue);
  color: #fff;
  border-color: var(--btn-blue);
}

.btn--primary:hover {
  background: #005c95;
  border-color: #005c95;
}

.info-card {
  background: #fff;
  padding: 32px 24px;
  max-width: var(--pay-width);
  margin: 0 auto;
}

.info-card h1 {
  margin: 0 0 12px;
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.info-card p {
  margin: 0;
  max-width: 40rem;
}

/* ========== FOOTER (ongewijzigd t.o.v. site-structuur) ========== */
.bldc-footer {
  background-color: var(--footer-bg);
  margin-top: 3rem;
  color: #000;
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 22px;
}

.bldc-footer .bldc-footer-lists {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  padding-top: 5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #8fcae7;
}

.bldc-footer .col {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 10px;
  padding-right: 10px;
}

.bldc-footer h3,
.bldc-footer h4 {
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.75rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #000;
}

.bldc-footer h3 {
  font-size: var(--fs-footerTitle, 16px);
}

.bldc-footer h4 {
  font-size: var(--fs-footerTitle, 16px);
  margin-top: 1rem;
}

.bldc-footer h4:first-of-type {
  margin-top: 0.5rem;
}

.bld-hyperlink {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bld-hyperlink li a {
  position: relative;
  display: inline-block;
  color: var(--link-blue);
  font-family: ROregular, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-footerLink, 15px);
  font-weight: 400;
  line-height: 1.375rem;
  padding: 0.5rem 0 0.5rem 20px;
  text-decoration: none;
  break-inside: avoid;
}

.bld-hyperlink li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  background-color: var(--link-blue);
  -webkit-mask: var(--arrow) no-repeat center / contain;
  mask: var(--arrow) no-repeat center / contain;
}

.bld-hyperlink li a:hover {
  text-decoration: underline;
}

.bldc-footer-basic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.bldc-footer-basic ul {
  display: flex;
  flex-flow: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bldc-footer-basic ul a {
  display: inline-block;
  color: var(--link-blue);
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-footerLink, 15px);
  font-weight: 400;
  line-height: 22px;
  padding: 12px 24px;
  text-decoration: none;
  border: 1px solid transparent;
}

.bldc-footer-basic ul a:hover {
  text-decoration: underline;
}

.basic-right-container {
  display: flex;
  justify-content: center;
}

.btn.minimal.js-to-top {
  position: relative;
  display: block;
  background: transparent;
  border: 1px solid transparent;
  color: var(--link-blue);
  font-family: RObold, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--fs-footerLink, 15px);
  font-weight: 400;
  line-height: 22px;
  padding: 12px 48px 12px 24px;
  cursor: pointer;
}

.btn.minimal.js-to-top::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-color: var(--link-blue);
  -webkit-mask: var(--arrow-up) no-repeat center / contain;
  mask: var(--arrow-up) no-repeat center / contain;
}

.btn.minimal.js-to-top:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .bldc-footer .col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }

  .pay-grid {
    grid-template-columns: 1fr !important;
  }

  .pay-details,
  .pay-method {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  /* Logo: ortala, kaydırmayı kapat, boyutu sınırla */
  .bld-logo[data-align="left"],
  .bld-logo[data-align="right"],
  .bld-logo[data-align="center"] {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  .bld-logo__link {
    transform: none;
    max-width: 100%;
  }

  .bld-logo__img {
    height: min(var(--logo-height, 125px), 88px) !important;
    width: auto !important;
    max-width: calc(100vw - 24px);
  }

  .bld-logo__mark,
  .bld-logo__mark svg {
    height: min(var(--logo-height, 125px), 80px) !important;
    width: calc(min(var(--logo-height, 125px), 80px) * 0.4) !important;
    max-height: 80px;
  }

  .bld-logo {
    padding-bottom: 12px;
  }

  /* Mavi bar */
  .subheader .container {
    max-width: 100% !important;
    min-height: auto;
    padding: 10px 16px;
  }

  .subheader h1 {
    font-size: min(var(--fs-bar, 18px), 16px);
    line-height: 1.35;
  }

  /* Ödeme kartı */
  .main {
    padding: 16px 12px 28px;
    overflow-x: hidden;
  }

  .pay-wrap {
    max-width: 100%;
  }

  .pay-card {
    padding: 12px;
  }

  .pay-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .pay-details,
  .pay-method {
    min-height: 0 !important;
    padding: 18px 16px;
    width: 100%;
  }

  .pay-method {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }

  .ideal-logo {
    width: 56px;
  }

  .ideal-logo img {
    max-height: 48px;
  }

  .pay-amount {
    font-size: min(var(--fs-amount, 22px), 20px);
    margin-bottom: 14px;
  }

  .pay-label,
  .pay-value {
    font-size: min(var(--fs-label, 15px), 14px);
  }

  .pay-value {
    font-size: min(var(--fs-value, 15px), 14px);
  }

  .pay-method__title {
    font-size: min(var(--fs-idealTitle, 22px), 18px);
  }

  .pay-method__sub {
    font-size: min(var(--fs-idealSub, 16px), 14px);
  }

  .pay-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: min(var(--fs-button, 16px), 15px);
    min-height: 44px;
  }

  .info-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 575px) {
  .bldc-footer .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .bldc-footer .bldc-footer-lists {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .bldc-footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bld-hyperlink li a {
    font-size: min(var(--fs-footerLink, 15px), 14px);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .bldc-footer h3,
  .bldc-footer h4 {
    font-size: min(var(--fs-footerTitle, 16px), 15px);
  }

  .bldc-footer-basic ul a,
  .btn.minimal.js-to-top {
    padding-left: 12px;
    padding-right: 12px;
    font-size: min(var(--fs-footerLink, 15px), 14px);
  }

  .bldc-footer-basic {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .basic-right-container {
    justify-content: flex-start;
    width: 100%;
  }
}
