.bank-modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  margin: 0 0 14px;
  border: 1px solid #ccdae7;
  border-radius: 12px;
  background: #eaf1f7;
}
.bank-page .bank-modes a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 17px;
  border-radius: 8px;
  color: #274961;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.bank-page .bank-modes a[aria-current] { background: #153d60; color: white; }
.bank-page .bank-modes a:hover:not([aria-current]) { background: white; }
.bank-page :is(#iban-qr, #vyhledavac) { scroll-margin-top: 155px; }
#bank-use-account { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.pay-panel {
  margin-bottom: 18px;
  border: 1px solid #cddde9;
  border-radius: 14px;
  background: white;
  color: #153650;
}
.pay-header { padding: 24px 28px 20px; border-bottom: 1px solid #d8e5ef; border-radius: 14px 14px 0 0; background: #eff7fb; }
.pay-header h2 { margin: 0 0 8px; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.pay-header > p:last-child { max-width: 74ch; margin: 0; color: #415f73; line-height: 1.6; }
.pay-columns { display: grid; grid-template-columns: 1fr 1fr; }
.pay-step { min-width: 0; padding: 24px 28px; }
.pay-step + .pay-step { border-left: 1px solid #dce7f0; }
.pay-step h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.4; margin: 0 0 19px; }
.pay-number { display: inline-grid; flex: none; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e4f3f3; color: #08696c; font-size: 14px; }
.pay-step label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.pay-step label small { color: #50667b; font-size: 12px; font-weight: 450; }
.pay-step input {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 47px;
  padding: 10px 12px; border: 1px solid #9fb7ca; border-radius: 7px; background: white; color: #153650; font: inherit; font-size: 16px;
}
.pay-step input::placeholder { color: #64798a; opacity: 1; }
.pay-step input[aria-invalid="true"] { border-color: #ab3c30; }
.pay-fields { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12px; margin-bottom: 15px; }
.pay-fields > div { min-width: 0; }
.pay-hint, .pay-footnote { font-size: 13px; line-height: 1.6; color: #4f687b; }
.pay-panel .pay-hint { margin: 7px 0 0; }
.pay-panel .pay-footnote { margin: 0; padding: 14px 28px; border-top: 1px solid #dde7ee; }
.pay-panel .pay-error { margin: 6px 0 0; color: #9b332e; font-size: 14px; line-height: 1.5; }
.pay-primary, .pay-secondary, .bank-page .pay-panel a.pay-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border: 1px solid #9ab8cc; border-radius: 7px; padding: 9px 16px;
  background: #fff; color: #165078; font: inherit; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.pay-primary { margin-top: 16px; background: #0766be; color: white; border-color: #0766be; }
.pay-primary:hover { background: #084f94; }
.pay-secondary:hover, .bank-page .pay-panel a.pay-secondary:hover { background: #edf6fc; }
.pay-iban { margin-top: 14px; padding: 15px; border-radius: 9px; border: 1px solid #b4d7d0; background: #edf8f4; }
.pay-iban > strong, .pay-code strong { font-size: 13px; }
.pay-iban output { display: block; margin: 5px 0; font: 700 clamp(16px, 2vw, 21px)/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.pay-iban p { margin: 0 0 10px; font-size: 13px; color: #355e59; }
.pay-example { margin-top: 10px; font-size: 13px; }
.pay-example summary { padding: 12px 0; line-height: 1.6; color: #185c8a; cursor: pointer; width: fit-content; }
.pay-example figure { margin: 0; padding: 14px; background: #f3f7fb; border-radius: 8px; }
.pay-example figcaption { color: #425c71; line-height: 1.6; }
.pay-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.pay-parts div { display: flex; flex-direction: column-reverse; padding: 5px 8px; border-bottom: 2px solid #6c99b3; background: white; }
.pay-parts dt { font-size: 11px; color: #4f6779; }
.pay-parts dd { margin: 0; font: 650 16px/1.5 ui-monospace, Consolas, monospace; }
.pay-ticket { display: flex; align-items: center; gap: 26px; margin: 0 28px 22px; padding: 20px; border-radius: 10px; background: #f1f8f7; border: 1px solid #c7ded8; }
.pay-code { flex: 0 1 240px; max-width: 100%; min-width: 0; padding: 4px 4px 8px; background: white; color: #163040; text-align: center; border-radius: 7px; }
.pay-code canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.pay-receipt { min-width: 0; flex: 1; }
.pay-receipt h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.pay-receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 13px 0 16px; font-size: 14px; line-height: 1.55; }
.pay-receipt dt { color: #46636b; }
.pay-receipt dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 740px) {
  .pay-columns { grid-template-columns: 1fr; }
  .pay-step + .pay-step { border-left: 0; border-top: 1px solid #dce7f0; }
  .pay-header, .pay-step { padding: 18px; }
  .pay-panel .pay-footnote { padding: 12px 18px; }
  .pay-step h3 { margin-bottom: 12px; }
  .pay-ticket { margin: 0 14px 14px; padding: 14px; flex-direction: column; align-items: stretch; gap: 14px; }
  .pay-code { flex: none; width: min(100%, 250px); align-self: center; }
}
@media (max-width: 450px) {
  .bank-page .bank-modes a { padding-inline: 11px; }
  .pay-fields { grid-template-columns: 1fr; }
  .pay-primary { width: 100%; }
  .pay-receipt dl { grid-template-columns: 1fr; gap: 1px; }
  .pay-receipt dd { margin-bottom: 5px; }
}
