/* Klubovyshop.cz – potvrzení objednávky v1 */
body {
  --ks-thanks-ready: 1;
}

body.ks-thanks-page {
  --ks-thanks-ink: #103e70;
  --ks-thanks-navy: #0b3460;
  --ks-thanks-muted: #36536f;
  --ks-thanks-line: #d5e3f3;
  --ks-thanks-soft: #e6eef9;
  --ks-thanks-surface: #f3f7fc;
  --ks-thanks-width: 1160px;
  --ks-thanks-side: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ks-thanks-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ks-thanks-surface);
}

body.ks-thanks-page .overall-wrapper,
body.ks-thanks-page #content-wrapper,
body.ks-thanks-page #content-wrapper .content-wrapper-in {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  background: var(--ks-thanks-surface);
}

body.ks-thanks-page .overall-wrapper {
  padding-top: 0 !important;
}

body.ks-thanks-page #header.ks-thanks__header {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ks-thanks-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ks-thanks-page #header.ks-thanks__header::before,
body.ks-thanks-page #header.ks-thanks__header::after,
body.ks-thanks-page #header .ks-thanks__header-inner::before,
body.ks-thanks-page #header .ks-thanks__header-inner::after,
body.ks-thanks-page #header .ks-thanks__header-inner > :not(.site-name):not(.ks-thanks__header-back),
body.ks-thanks-page .club-wrapper {
  display: none !important;
}

body.ks-thanks-page #header .ks-thanks__header-inner {
  position: static !important;
  display: flex !important;
  box-sizing: border-box;
  width: calc(100% - 2 * var(--ks-thanks-side)) !important;
  max-width: var(--ks-thanks-width) !important;
  min-height: 74px !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto !important;
  padding: 8px 0 !important;
  transform: none !important;
}

body.ks-thanks-page #header .ks-thanks__header-inner .site-name,
body.ks-thanks-page #header .ks-thanks__header-inner .site-name > a {
  position: static !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

body.ks-thanks-page #header .ks-thanks__header-inner .site-name img {
  position: static !important;
  display: block !important;
  width: clamp(148px, 25vw, 230px) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 54px !important;
  padding: 0 !important;
  background: transparent !important;
  object-fit: contain;
  transform: none !important;
}

body.ks-thanks-page #header .ks-thanks__header-back {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--ks-thanks-soft);
  color: var(--ks-thanks-navy);
  font: 650 13px/1.25 var(--ks-thanks-font);
  text-decoration: none;
  text-transform: none;
}

body.ks-thanks-page main.ks-thanks__content,
body.ks-thanks-page #content.ks-thanks__content {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--ks-thanks-side)) !important;
  max-width: var(--ks-thanks-width) !important;
  min-width: 0 !important;
  margin: clamp(20px, 4vw, 42px) auto 40px !important;
  padding: clamp(16px, 3vw, 32px) !important;
  border: 1px solid var(--ks-thanks-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 62, 112, .05);
  color: var(--ks-thanks-ink);
  font-family: var(--ks-thanks-font);
}

.ks-thanks__content .content-inner {
  min-width: 0;
  padding: 0;
}

.ks-thanks__content .ks-thanks__title {
  margin: 0 0 16px !important;
  padding: 0;
  color: var(--ks-thanks-navy);
  font: 750 clamp(24px, 3.4vw, 38px)/1.18 var(--ks-thanks-font) !important;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-transform: none;
}

.ks-thanks__content .ks-thanks__title--pending {
  padding: 12px 15px;
  border-left: 4px solid #a46016;
  border-radius: 0 10px 10px 0;
  background: #fff6e9;
}

.ks-thanks__content .ks-thanks__number {
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ks-thanks-soft);
  color: var(--ks-thanks-navy);
  overflow-wrap: anywhere;
}

.ks-thanks__content .recapitulation-wrapper {
  min-width: 0;
  margin-block: 18px;
}

.ks-thanks__content .ks-thanks__card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--ks-thanks-line);
  border-radius: 13px;
  background: var(--ks-thanks-surface);
  overflow-wrap: anywhere;
}

.ks-thanks__content :is(h2, h3, .h4) {
  color: var(--ks-thanks-navy);
}

.ks-thanks__content .recapitulation-table {
  width: 100%;
  max-width: 100%;
}

.ks-thanks__content .recapitulation-table :is(th, td) {
  padding: 5px 8px 5px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.ks-thanks__content .recapitulation-table th {
  color: var(--ks-thanks-muted);
}

.ks-thanks__content .recapitulation-wrapper .cart-table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
}

.ks-thanks__content .recapitulation-wrapper .cart-table td {
  border-color: var(--ks-thanks-line);
  padding-inline: clamp(4px, 1.4vw, 14px);
  overflow-wrap: anywhere;
}

.ks-thanks__content .recapitulation-wrapper .cart-table img,
.ks-thanks__content .qrcode {
  max-width: 100%;
  height: auto;
}

body.ks-thanks-page .ks-thanks__content :is(.ks-thanks__pay, .ks-thanks__return) {
  display: inline-flex;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-block: 4px;
  padding: 9px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font: 700 15px/1.35 var(--ks-thanks-font) !important;
  letter-spacing: normal !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  transition: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.ks-thanks-page .ks-thanks__content .ks-thanks__pay {
  background: var(--ks-thanks-navy) !important;
  color: #fff !important;
}

body.ks-thanks-page .ks-thanks__content .ks-thanks__return {
  border-color: var(--ks-thanks-line) !important;
  background: var(--ks-thanks-soft) !important;
  color: var(--ks-thanks-navy) !important;
}

body.ks-thanks-page .ks-thanks__content .ks-thanks__pay:hover {
  background: #174f86 !important;
}

body.ks-thanks-page .ks-thanks__content :is(.ks-thanks__pay, .ks-thanks__return):is(:disabled, [aria-disabled="true"]) {
  opacity: .65;
}

.ks-thanks__content :is(.ks-thanks__pay, .ks-thanks__return)::before,
.ks-thanks__content :is(.ks-thanks__pay, .ks-thanks__return)::after {
  display: none !important;
}

.ks-thanks__content .order-complete-links {
  margin-top: 18px;
  text-align: left;
}

.ks-thanks__content :is(a, button, input):focus-visible,
.ks-thanks__header-inner a:focus-visible {
  outline: 2px solid #246ab0 !important;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  body.ks-thanks-page #header .ks-thanks__header-inner {
    min-height: 64px !important;
  }

  body.ks-thanks-page #header .ks-thanks__header-back {
    padding-inline: 9px;
    font-size: 12px;
  }

  body.ks-thanks-page .ks-thanks__content :is(.ks-thanks__pay, .ks-thanks__return) {
    width: 100%;
  }

  .ks-thanks__content .recapitulation-wrapper .cart-table td {
    padding-block: 7px;
  }
}
