:root {
  --checkout-bg: #080912;
  --checkout-surface: #11131d;
  --checkout-surface-2: #171925;
  --checkout-border: rgba(255, 255, 255, .13);
  --checkout-text: #f7f7fb;
  --checkout-muted: #b8bbc5;
  --checkout-orange: #ff6800;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--checkout-bg);
}

body.gigal-checkout-page {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 90px;
  color: var(--checkout-text);
  background:
    radial-gradient(circle at 14% 0, rgba(255, 104, 0, .11), transparent 32rem),
    linear-gradient(180deg, #090a13, #11131a 48%, #090a11);
  font-family: Inter, Arial, sans-serif;
}

.site-bar {
  position: sticky;
  z-index: 9000;
  top: 0;
  min-height: 66px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(8, 9, 18, .94);
  border-bottom: 1px solid var(--checkout-border);
  backdrop-filter: blur(14px);
}

.site-brand {
  color: #fff;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #e9eaf0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--checkout-orange);
}

.checkout-hero {
  padding: 72px 5vw 42px;
  text-align: center;
}

.checkout-hero .eyebrow {
  margin: 0 0 10px;
  color: #ff9c59;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.checkout-hero h1 {
  max-width: 780px;
  margin: 0 auto 14px;
  color: #fff;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.checkout-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--checkout-muted);
  font-size: 17px;
  line-height: 1.65;
}

.checkout-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.checkout-back {
  margin-bottom: 18px;
  display: inline-flex;
  color: #ff9c59;
  font-weight: 750;
  text-decoration: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 22px;
  align-items: start;
}

.checkout-panel {
  padding: 24px;
  color: var(--checkout-text);
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.checkout-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: 26px;
}

.checkout-items .gigal-cart-empty {
  margin: 0;
}

.checkout-items .gigal-cart-continue-link {
  margin-top: 16px;
}

.checkout-total-row {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--checkout-border);
  font-size: 17px;
  font-weight: 750;
}

.checkout-total-row strong {
  color: #fff;
  font-size: 23px;
}

.checkout-clear {
  margin-top: 12px;
  padding: 0;
  color: var(--checkout-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 650 13px/1.3 Inter, Arial, sans-serif;
  text-decoration: underline;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: #f1f2f6;
  font-size: 13px;
  font-weight: 750;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  color: #171820;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  font: 500 15px/1.3 Inter, Arial, sans-serif;
}

.checkout-form textarea {
  min-height: 104px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--checkout-orange);
  outline: none;
}

.checkout-help {
  margin: 2px 0 0;
  color: var(--checkout-muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 3px;
}

.checkout-button {
  min-height: 49px;
  padding: 11px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #252834;
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  cursor: pointer;
  font: 800 13px/1.2 Inter, Arial, sans-serif;
  text-align: center;
}

.checkout-button-primary {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--checkout-orange);
  border-color: var(--checkout-orange);
  font-size: 15px;
}

.checkout-button:hover,
.checkout-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.checkout-button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: .45;
}

.checkout-order-status {
  min-height: 20px;
  margin: 0;
  color: #75e0bb;
  font-size: 13px;
  font-weight: 700;
}

.checkout-order-status.is-error {
  color: #ff9b83;
}

.checkout-note {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 14px 17px;
  color: #c8cad2;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--checkout-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.checkout-footer {
  padding: 42px 20px 20px;
  color: #9296a2;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media screen and (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    padding-top: 54px;
  }
}

@media screen and (max-width: 600px) {
  body.gigal-checkout-page {
    padding-bottom: 78px;
  }

  .site-bar {
    min-height: 58px;
    padding: 0 14px;
    gap: 12px;
  }

  .site-brand {
    font-size: 15px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav a[href="/kontakt"] {
    display: none;
  }

  .checkout-hero {
    padding: 42px 18px 30px;
  }

  .checkout-hero p {
    font-size: 15px;
  }

  .checkout-shell {
    width: min(100% - 24px, 1180px);
  }

  .checkout-panel {
    padding: 17px;
    border-radius: 12px;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .checkout-button-primary {
    grid-column: auto;
  }
}
