/* BahnCard 50 — visual match to int.bahn.de */

:root {
  --db-red: #ec0016;
  --db-red-hover: #c50014;
  --db-bg: #f0f3f5;
  --db-text: #282d37;
  --db-muted: #646973;
  --db-border: #afb4bb;
  --db-border-light: #d2d5da;
  --db-white: #ffffff;
  --db-green: #408335;
  --db-meta-bg: #f0f3f5;
  --db-footer-bg: #d7dce1;
  --db-faq-hover: #e8ecf0;
  --db-header-max: 1200px;
  --db-doc-max: 1280px;
  --db-header-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --font-sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-head: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --check-icon: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2c4.41 0 8 3.563 8 7.99 0 4.415-3.59 8.01-8 8.01s-8-3.595-8-8.01C2 5.595 5.59 2 10 2Zm3.493 4.732-4.898 4.897L6.51 9.548l-1.444 1.405 3.555 3.476 6.317-6.273-1.444-1.424Z' fill='%23408335'/%3E%3C/svg%3E");
  --chevron-down: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.994 7A.998.998 0 0 0 4 7.995c0 .266.133.531.298.697l5.006 5.01c.199.198.464.298.696.298a.936.936 0 0 0 .62-.22l5.082-5.088c.199-.166.298-.431.298-.697A.998.998 0 0 0 15.006 7c-.266 0-.53.1-.73.299L10 11.579l-4.276-4.28A1.028 1.028 0 0 0 4.994 7Z' fill='%23282d37'/%3E%3C/svg%3E");
  --chevron-up: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.994 13A.998.998 0 0 1 4 12.005c0-.266.133-.531.298-.697l5.006-5.01C9.503 6.1 9.768 6 10 6c.227 0 .455.073.62.22l5.082 5.088c.199.166.298.431.298.697a.998.998 0 0 1-.994.995c-.266 0-.53-.1-.73-.299L10 8.421l-4.276 4.28c-.2.2-.464.299-.73.299Z' fill='%23282d37'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--db-text);
  background: var(--db-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--db-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* —— Cookie banner —— */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 45, 55, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-overlay.hidden {
  display: none;
}

.cookie-modal {
  background: var(--db-white);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cookie-modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cookie-modal p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.cookie-modal a {
  text-decoration: underline;
}

.cookie-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 24px;
}

.cookie-settings::before {
  content: "›";
  font-size: 18px;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.btn-outline {
  border: 1px solid var(--db-muted);
  background: var(--db-white);
  color: var(--db-text);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
}

.btn-outline:hover {
  border-color: var(--db-text);
  background: var(--db-bg);
}

/* —— Header —— */
.site-header {
  background: var(--db-white);
  box-shadow: var(--db-header-shadow);
  position: sticky;
  top: 0;
  z-index: 201;
  max-width: var(--db-header-max);
  margin: 0 auto;
  width: 100%;
}

.site-header .meta-bar-inner,
.site-header .main-nav-bar {
  max-width: var(--db-header-max);
  margin: 0 auto;
}

.meta-bar {
  background: var(--db-meta-bg);
}

.meta-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 16px;
}

.meta-tabs {
  display: flex;
  align-items: stretch;
}

.meta-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--db-text);
  position: relative;
  background: transparent;
}

.meta-tab.active {
  background: var(--db-white);
}

.meta-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background: transparent;
}

.meta-tab.active::after {
  background: var(--db-red);
}

.meta-tab:hover {
  text-decoration: none;
  color: var(--db-text);
}

.meta-tab:not(.active):hover::after {
  background: var(--db-muted);
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  padding-right: 8px;
}

.meta-right a,
.meta-right .lang-btn {
  color: var(--db-text);
  font-weight: 400;
  font-size: 14px;
}

.meta-right a:hover {
  color: var(--db-red);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.lang-btn svg {
  width: 12px;
  height: 12px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--db-white);
  border: 1px solid var(--db-border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  display: none;
  z-index: 50;
  margin-top: 8px;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--db-text);
  font-size: 14px;
}

.lang-dropdown a:hover {
  background: var(--db-bg);
  text-decoration: none;
}

.main-nav-bar {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 0;
  padding: 0 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 16px;
  line-height: 1;
}

.logo img {
  width: 40px;
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
  height: 80px;
}

.nav-item {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 1.2em;
  font-size: 16px;
  font-weight: 700;
  color: var(--db-text);
  white-space: nowrap;
  position: relative;
  height: 100%;
  user-select: none;
}

.nav-link:hover {
  text-decoration: none;
  color: var(--db-red);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--db-red);
}

.nav-chevron {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  height: 80px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--db-text);
  font-weight: 700;
  font-size: 16px;
  height: 100%;
  position: relative;
}

.icon-btn.search {
  color: var(--db-red);
}

.icon-btn:hover {
  color: var(--db-red);
  text-decoration: none;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn.login {
  border-left: 1px solid #d7dce1;
  padding-left: 16px;
  margin-left: 4px;
}

.mobile-menu-btn {
  display: none;
  padding: 10px;
  color: var(--db-text);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* —— Main document —— */
.doc {
  width: 100%;
  max-width: var(--db-doc-max);
  margin: 0 auto;
}

/* —— Breadcrumb —— */
.breadcrumb {
  padding: 24px 72px 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: 14px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--db-muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--db-text);
}

.breadcrumb a:hover {
  color: var(--db-red);
}

.breadcrumb li:last-child span {
  color: var(--db-text);
}

/* —— Page title —— */
.page-title {
  padding: 40px 168px;
}

.page-title h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 40px;
  color: var(--db-text);
  max-width: 840px;
  letter-spacing: normal;
  margin: 0;
}

/* —— Product section —— */
.product-section {
  padding: 40px 168px;
  background: transparent;
}

.product-grid {
  display: flex;
  align-items: flex-start;
}

.product-image {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-details {
  flex: 1 1 50%;
  max-width: 50%;
  padding-left: 40px;
}

.product-details h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
  margin-bottom: 16px;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.advantages-list li {
  background-image: var(--check-icon);
  background-position: 0 2px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  margin-bottom: 8px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--db-text);
}

.advantages-list strong {
  font-weight: 700;
}

.price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  margin-bottom: 20px;
  color: var(--db-text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--db-red);
  color: var(--db-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--db-red);
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--db-red-hover);
  border-color: var(--db-red-hover);
  text-decoration: none;
  color: var(--db-white);
}

.btn-primary.full {
  width: auto;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 72px;
}

/* —— FAQ —— */
.faq-section {
  max-width: 752px;
  margin: 0 auto;
  padding: 40px 0;
}

.faq-section h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  margin-bottom: 24px;
  color: var(--db-text);
}

.faq-list {
  background: transparent;
  border: none;
}

.faq-item {
  background: var(--db-white);
  border-bottom: 1px solid var(--db-border);
  width: calc(100% + 2rem);
  margin: 0 -1rem;
}

.faq-item:hover {
  background: var(--db-faq-hover);
}

.faq-item.open:hover {
  background: var(--db-white);
}

.faq-trigger {
  width: 100%;
  display: block;
  text-align: left;
  min-height: 64px;
  padding: 16px 56px 16px 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--db-text);
  position: relative;
}

.faq-trigger:hover {
  color: var(--db-text);
}

.faq-trigger .chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: var(--chevron-down);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  pointer-events: none;
}

.faq-item.open .faq-trigger .chevron {
  background-image: var(--chevron-up);
}

.faq-panel {
  display: none;
  padding: 0 16px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--db-text);
}

.faq-item.open .faq-panel {
  display: block;
}

.faq-panel p {
  margin-bottom: 12px;
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

.faq-panel ul {
  margin: 8px 0 12px 20px;
  list-style: disc;
}

.faq-panel ol {
  margin: 8px 0 12px 20px;
  padding-left: 4px;
}

.faq-panel li {
  margin-bottom: 6px;
  list-style: disc;
}

.faq-panel ol li {
  list-style: decimal;
}

.faq-panel a {
  color: var(--db-red);
  font-weight: 700;
}

/* —— Payment + footer —— */
.site-footer {
  background: var(--db-footer-bg);
  color: var(--db-text);
}

.payment-section {
  background: transparent;
  max-width: 80rem;
  margin: 0 auto;
  padding: 32px 72px 40px;
}

.payment-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-section h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.payment-icons a {
  display: flex;
  align-items: center;
}

.payment-icons a:hover {
  opacity: 0.85;
}

.payment-icons img {
  height: 33px;
  width: auto;
}

.payment-icons img.paypal {
  height: 33px;
}

.payment-icons img.creditcard {
  height: 24px;
}

.footer-meta {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 32px 20px 40px;
  margin: 0 20px;
}

.footer-links a {
  color: #3c414b;
  font-size: 14px;
  line-height: 12px;
  margin: 0 12px;
  padding: 8px 0;
}

.footer-links a:hover {
  color: var(--db-text);
  text-decoration: underline;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #3c414b;
  margin-top: 8px;
  padding: 0 12px 8px;
}

/* —— Responsive —— */
@media (max-width: 1280px) {
  .page-title,
  .product-section {
    padding: 40px 72px;
  }

  .breadcrumb {
    padding: 24px 40px 20px;
  }
}

@media (max-width: 960px) {
  .page-title,
  .product-section {
    padding: 32px 24px;
  }

  .breadcrumb {
    padding: 20px 24px 16px;
  }

  .product-grid {
    flex-direction: column;
    gap: 28px;
  }

  .product-image,
  .product-details {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .product-details {
    padding-left: 0;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-actions .login-label {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--db-white);
    box-shadow: var(--db-header-shadow);
    padding: 8px 0;
    z-index: 90;
    height: auto;
  }

  .main-nav.open .nav-link {
    padding: 14px 20px;
    height: auto;
  }

  .main-nav.open .nav-link.active::after {
    display: none;
  }

  .faq-section {
    max-width: none;
    padding: 32px 24px;
  }

  .faq-item {
    width: 100%;
    margin: 0;
  }

  .payment-section {
    padding: 28px 24px 32px;
  }

  .cta-wrap {
    padding: 32px 24px;
  }

  .page-title h1 {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 640px) {
  .meta-right .contact-link {
    display: none;
  }

  .meta-tab {
    padding: 0 12px;
    font-size: 13px;
  }

  .main-nav-bar {
    min-height: 64px;
  }

  .logo {
    margin: 12px;
  }

  .page-title h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .faq-section h2 {
    font-size: 22px;
  }

  .faq-trigger {
    font-size: 16px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn-outline {
    width: 100%;
  }

  .payment-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    max-width: none;
  }
}

/* —— Checkout / payment —— */
.page-title--payment {
  padding-bottom: 16px;
}

.page-title--payment h1 {
  max-width: none;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 32px;
  padding: 0 72px 56px;
  align-items: start;
}

.checkout-form-panel,
.checkout-summary {
  background: var(--db-white);
  padding: 32px;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--db-muted);
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-step.active {
  color: var(--db-text);
}

.checkout-step.done {
  color: var(--db-green);
}

.checkout-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--db-bg);
  color: var(--db-muted);
  font-size: 12px;
  font-weight: 700;
}

.checkout-step.active .checkout-step-num {
  background: var(--db-red);
  color: var(--db-white);
}

.checkout-step.done .checkout-step-num {
  background: var(--db-green);
  color: var(--db-white);
}

.checkout-step-line {
  flex: 1;
  min-width: 24px;
  max-width: 64px;
  height: 2px;
  background: var(--db-border-light);
}

.checkout-form-panel h2,
.checkout-summary h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  margin-bottom: 12px;
}

.checkout-lead {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--db-text);
}

.card-brands {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--db-border-light);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--db-text);
  background: var(--db-bg);
}

.card-brand.visa {
  color: #1a1f71;
}

.card-brand.mc {
  color: #eb001b;
  font-size: 10px;
}

.card-brand.amex {
  color: #2e77bb;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--db-text);
}

.form-field input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--db-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  color: var(--db-text);
  background: var(--db-white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input[type="text"]::placeholder {
  color: #9499a0;
}

.form-field input[type="text"]:hover {
  border-color: var(--db-muted);
}

.form-field input[type="text"]:focus {
  border-color: var(--db-text);
  box-shadow: 0 0 0 1px var(--db-text);
}

.form-field input[type="text"].invalid {
  border-color: var(--db-red);
  box-shadow: 0 0 0 1px var(--db-red);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 48px;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--db-muted);
  pointer-events: none;
}

.input-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--db-red);
}

.hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--db-muted);
  color: var(--db-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hint-btn:hover {
  border-color: var(--db-text);
  color: var(--db-text);
}

.checkbox-field {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: 15px !important;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--db-red);
}

.checkbox-label a {
  font-weight: 700;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-outline-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 16px 24px;
  border: 1px solid var(--db-muted);
  border-radius: 4px;
  color: var(--db-text);
  font-size: 16px;
  font-weight: 700;
  background: var(--db-white);
}

.btn-outline-pay:hover {
  border-color: var(--db-text);
  text-decoration: none;
  background: var(--db-bg);
}

.pay-submit {
  flex: 1;
  min-width: 200px;
}

.pay-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pay-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--db-muted);
  margin-top: 4px;
}

.pay-secure svg {
  flex-shrink: 0;
  color: var(--db-green);
}

.checkout-summary .summary-product {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--db-border-light);
}

.summary-product img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.summary-name {
  font-weight: 700;
  font-size: 16px;
}

.summary-meta {
  font-size: 14px;
  color: var(--db-muted);
  margin-top: 4px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.summary-lines dt {
  color: var(--db-text);
}

.summary-lines dd {
  font-weight: 700;
  white-space: nowrap;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 2px solid var(--db-text);
  font-size: 16px;
  margin-bottom: 16px;
}

.summary-total strong {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
}

.summary-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--db-muted);
}

.pay-success {
  text-align: center;
  padding: 24px 8px;
}

.pay-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--db-green);
  color: var(--db-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.pay-success h2 {
  margin-bottom: 12px;
}

.pay-success p {
  margin-bottom: 28px;
  color: var(--db-text);
}

.cvc-popover {
  position: absolute;
  z-index: 300;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--db-text);
  color: var(--db-white);
  font-size: 13px;
  line-height: 1.45;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .checkout {
    grid-template-columns: 1fr;
    padding: 0 24px 40px;
  }

  .checkout-summary {
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pay-actions {
    flex-direction: column-reverse;
  }

  .btn-outline-pay,
  .pay-submit {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .checkout-form-panel,
  .checkout-summary {
    padding: 20px 16px;
  }

  .checkout {
    padding: 0 16px 32px;
  }

  .checkout-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .checkout-step span:last-child {
    display: none;
  }

  .checkout-step-num {
    width: 28px;
    height: 28px;
  }

  .checkout-step-line {
    min-width: 16px;
    max-width: 32px;
  }

  .page-title--payment {
    padding: 24px 16px 16px;
  }

  .page-title--payment h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .checkout-summary .summary-product img {
    width: 80px;
  }

  .summary-total strong {
    font-size: 20px;
  }

  .main-nav-bar {
    min-height: 56px;
  }

  .logo {
    margin: 8px;
  }

  .logo img {
    width: 32px;
    height: 22px;
  }

  .icon-btn {
    padding: 8px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .site-header {
    max-width: none;
  }

  .meta-bar-inner {
    padding: 0 8px;
    min-height: 28px;
  }

  .meta-tab {
    padding: 0 10px;
    font-size: 12px;
  }

  .footer-links {
    padding: 24px 12px 32px;
    margin: 0 8px;
  }

  .footer-links a {
    font-size: 12px;
    margin: 0 6px;
    padding: 6px 0;
  }

  .footer-copy {
    font-size: 12px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .cta-wrap {
    padding: 24px 16px;
  }

  .product-section {
    padding: 24px 16px;
  }

  .payment-section {
    padding: 20px 16px 24px;
  }

  .payment-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-icons {
    gap: 16px;
  }
}
