/* ==========================================================================
   Barktive Stripe checkout — design tokens measured from the reference
   checkout (Shopify) on 2026-07-02. Do not eyeball-adjust; re-measure.

   font        Poppins 400/500/700, base 14px
   headings    20px/700, line-height 24px
   input       wrapper 1px solid #DEDEDE, radius 12px, height 49px, 14px text
   muted text  rgba(0,0,0,.56)
   buttons     #090000, white, radius 12px, 14px/700, height ~50px
   banner      #F5F5F5, radius 12px, padding 16px
   ship empty  #F6F6F6, radius 12px, padding 16px
   sidebar     #CBE4DE, divider 1px #DFDFDF
   upsell card 1px solid #B7C2BF, radius 12px, padding 14px
   apply idle  #C3DBD6 bg, black text
   header      white, border-bottom 1px #DFDFDF, ~183px tall
   layout      left col 500px, divider at 50%+80px, right col 400px
   ========================================================================== */

:root {
  --font: "Poppins", sans-serif;
  --black: #090000;
  --text: #000;
  --muted: rgba(0, 0, 0, 0.56);
  --border: #dedede;
  --divider: #dfdfdf;
  --mint: #cbe4de;
  --mint-btn: #c3dbd6;
  --mint-border: #b7c2bf;
  --gray-box: #f5f5f5;
  --radius: 12px;
  --error: #d72c0d;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
}

body { font-size: 14px; line-height: 1.35; }

/* ============================== Header ============================== */

.ck-header {
  position: relative;
  border-bottom: 1px solid var(--divider);
  background: #fff;
  padding: 22px 0 20px;
  min-height: 183px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ck-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ck-header__brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ck-header__logo img { display: block; width: 155px; height: auto; }

.ck-avatars { display: flex; }

.ck-avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.ck-avatars img + img { margin-left: -10px; }

.ck-header__social-proof { font-size: 21px; font-weight: 700; letter-spacing: -0.2px; }

.ck-trust-pill {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--gray-box);
  border-radius: var(--radius);
  padding: 9px 22px;
}

.ck-trust-pill__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.ck-trust-pill__item svg { flex: 0 0 auto; }

.ck-header__cart {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  display: flex;
}

/* ============================== Layout ============================== */

.ck-layout { display: flex; align-items: stretch; min-height: calc(100vh - 184px); }

.ck-main-col {
  flex: 0 0 calc(50% + 80px);
  display: flex;
  justify-content: flex-end;
  background: #fff;
}

.ck-main { width: 500px; margin-right: 70px; padding: 38px 0 48px; min-width: 0; }

.ck-aside-col {
  flex: 1 1 auto;
  background: var(--mint);
  border-left: 1px solid var(--divider);
  min-width: 0;
}

.ck-aside { width: 400px; margin-left: 12px; padding: 38px 0 48px; }

.ck-summary-toggle { display: none; }

/* ============================== Shared bits ============================== */

h2 { font-size: 20px; font-weight: 700; line-height: 24px; margin: 0; }

.ck-section { margin-top: 32px; }

.ck-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ck-section__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.ck-link { color: var(--text); font-size: 14px; text-decoration: underline; }

.ck-row { display: flex; gap: 12px; }
.ck-row > .ck-field { flex: 1 1 0; min-width: 0; }

.ck-field { margin-top: 12px; }

/* Inputs — Shopify-style floating labels */

.ck-input {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  height: 49px;
  display: flex;
  align-items: center;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.ck-input:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.ck-input input,
.ck-input select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 14px var(--font);
  color: var(--text);
  padding: 0 10px;
  height: 100%;
  border-radius: var(--radius);
}

.ck-input input::placeholder { color: var(--muted); }

.ck-input label {
  position: absolute;
  left: 11px;
  top: 6px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* label floats when the field has a value */
.ck-input.has-value label, .ck-input label.is-float { opacity: 1; }
.ck-input.has-value input, .ck-input--select select { padding-top: 16px; }
.ck-input.has-value input::placeholder { color: transparent; }

.ck-input--select select { cursor: pointer; padding-right: 34px; }

.ck-input__chevron,
.ck-input__hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  pointer-events: none;
}

.ck-input__hint[title] { pointer-events: auto; cursor: help; }

/* field errors */
.ck-error {
  display: none;
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--error);
}

.ck-field.has-error .ck-error { display: block; }
.ck-field.has-error .ck-input { border-color: var(--error); }
.ck-field.has-error .ck-input:focus-within { box-shadow: 0 0 0 1px var(--error); }

/* ============================== Express checkout ============================== */

.ck-express__label { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.ck-express__buttons { display: flex; gap: 12px; }

.ck-express__btn {
  flex: 1 1 0;
  height: 49px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.ck-express__btn--applepay { background: #000; color: #fff; }
.ck-express__btn--gpay { background: #000; color: #fff; }
.ck-express__btn--link { background: #00d66f; color: #011e0f; }

.applepay-word { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
.gpay-word { font-size: 18px; font-weight: 500; }
.gpay-word .g { font-weight: 700; }
.link-word { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }

.ck-express__legal { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

.ck-or {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 20px 0 24px;
}

.ck-or::before, .ck-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============================== Banner ============================== */

.ck-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-box);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 56px;
}

.ck-banner small { font-size: 12px; }
.ck-banner__icon { flex: 0 0 auto; color: var(--text); }

/* ============================== Shipping method ============================== */

.ck-ship-empty {
  background: #f6f6f6;
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

.ck-ship-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--black);
  box-shadow: 0 0 0 1px var(--black);
  border-radius: var(--radius);
  padding: 15px 16px;
  margin-top: 14px;
  background: #fff;
}

.ck-ship-option__price { font-weight: 700; }

/* ============================== Payment box ============================== */

.ck-paybox { margin-top: 14px; }

.ck-paybox__head {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--black);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  padding: 15px 14px;
  position: relative;
  z-index: 1;
}

.ck-paybox__head strong { font-size: 14px; font-weight: 700; }

.ck-paybox__body {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fafafa;
  padding: 14px;
}

.ck-paybox__body > .ck-field:first-child,
.ck-paybox__body > #card-demo > .ck-field:first-child { margin-top: 0; }
.ck-paybox__body .ck-input { border-radius: var(--radius); }

/* radio */
.ck-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #b5b5b5;
  background: #fff;
  flex: 0 0 auto;
  cursor: pointer;
}

.ck-radio.is-checked {
  border: 5.5px solid var(--black);
}

/* card brand badges */
.ck-cards { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.ck-card-badge {
  width: 38px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ck-card-badge--visa { color: #1a1f71; font-style: italic; }

.ck-card-badge--mc i {
  width: 13px; height: 13px; border-radius: 50%; display: block;
}
.ck-card-badge--mc i:first-child { background: #eb001b; }
.ck-card-badge--mc i:last-child { background: #f79e1b; margin-left: -5px; opacity: 0.9; }

.ck-card-badge--amex { background: #1f72cd; color: #fff; border-color: #1f72cd; font-size: 7.5px; }

.ck-cards__more { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* checkbox */
.ck-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.ck-check input { position: absolute; opacity: 0; }

.ck-check__box {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid #b5b5b5;
  background: #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.1s, border-color 0.1s;
}

.ck-check input:checked + .ck-check__box { background: var(--black); border-color: var(--black); }

/* ============================== Save info / note / pay ============================== */

.ck-save__title { font-size: 14px; margin: 0 0 12px; }

.ck-input--phone .ck-input__phone-icon { display: flex; margin-left: 12px; color: var(--text); }
.ck-input--phone input { padding-top: 16px; }
.ck-input--phone label { left: 38px; }

.ck-note { margin: 26px 0 0; font-size: 14px; }

.ck-pay {
  width: 100%;
  margin-top: 22px;
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  height: 50px;
  font: 700 14px var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.12s;
}

.ck-pay:hover { opacity: 0.88; }
.ck-pay:disabled { opacity: 0.55; cursor: default; }

.ck-pay__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ck-spin 0.7s linear infinite;
}

@keyframes ck-spin { to { transform: rotate(360deg); } }

.ck-error--pay { margin-top: 10px; font-size: 13px; }
.ck-error--pay:not(:empty) { display: block; }

.ck-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding-top: 18px;
}

.ck-footer a { color: var(--text); font-size: 14px; text-decoration: none; }

/* ============================== Order summary ============================== */

.ck-upsells__title { font-size: 12px; font-weight: 700; display: block; margin-bottom: 12px; }

.ck-upsell-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--mint-border);
  border-radius: var(--radius);
  padding: 14px;
}

.ck-upsell-card + .ck-upsell-card { margin-top: 12px; }

.ck-upsell-card__thumb {
  width: 60px;
  height: 66px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ck-upsell-card__thumb img { max-width: 46px; max-height: 54px; object-fit: contain; }

.ck-upsell-card__info { min-width: 0; flex: 1 1 auto; }
.ck-upsell-card__info strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ck-upsell-card__info span { font-size: 14px; }

.ck-upsell-card__cta {
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 14px;
  font: 700 14px var(--font);
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ck-upsell-card__cta.is-added { background: transparent; color: var(--black); border: 1px solid var(--black); }

.ck-upsells__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

.ck-upsells__nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--mint-border);
  background: transparent;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ck-upsells__nav button:disabled { color: #9fb0ab; cursor: default; }

/* line items */
.ck-items { margin-top: 26px; }

.ck-item { display: flex; align-items: flex-start; gap: 16px; }
.ck-item + .ck-item { margin-top: 14px; }

.ck-item__thumb {
  position: relative;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ck-item__thumb img { max-width: 52px; max-height: 56px; object-fit: contain; }

.ck-item__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.ck-item__info { flex: 1 1 auto; min-width: 0; }
.ck-item__info p { margin: 0; font-size: 14px; line-height: 1.4; }
.ck-item__info small { color: var(--muted); font-size: 12px; }
.ck-item__price { font-size: 14px; white-space: nowrap; }

/* discount */
.ck-discount { display: flex; gap: 12px; margin-top: 24px; }
.ck-discount .ck-input { flex: 1 1 auto; }

.ck-discount__apply {
  flex: 0 0 auto;
  background: var(--mint-btn);
  color: var(--text);
  border: 0;
  border-radius: var(--radius);
  height: 49px;
  padding: 0 18px;
  font: 700 14px var(--font);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.ck-discount__apply.is-active { background: var(--black); color: #fff; }

#discount-error { margin: 8px 2px 0; }
#discount-error:not(:empty) { display: block; }

.ck-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 12px;
  margin-left: 4px;
}

/* totals */
.ck-totals { margin-top: 26px; }

.ck-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}

.ck-totals__row .is-muted { color: var(--muted); }

.ck-totals__info { vertical-align: -3px; color: var(--muted); margin-left: 2px; }

.ck-totals__row--total { margin-top: 14px; }
.ck-totals__row--total strong { font-size: 18px; font-weight: 700; }

.ck-totals__amount small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 6px; }

/* testimonial */
.ck-testimonial {
  background: #fff;
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 22px 20px 18px;
}

.ck-testimonial__heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.25;
}

.ck-testimonial__grid { display: flex; gap: 4px; }

.ck-testimonial__grid figure { margin: 0; position: relative; flex: 1 1 0; min-width: 0; }

.ck-testimonial__grid img {
  width: 100%;
  aspect-ratio: 0.98;
  object-fit: cover;
  display: block;
}

.ck-testimonial__grid figure:first-child img { border-radius: 8px 0 0 8px; }
.ck-testimonial__grid figure:last-child img { border-radius: 0 8px 8px 0; }

.ck-testimonial__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.ck-testimonial__quote { text-align: center; font-size: 13px; margin: 16px 0 0; }
.ck-testimonial__quote span { color: var(--muted); }

.ck-testimonial__divider { height: 1px; background: var(--border); margin: 16px 0 14px; }

.ck-testimonial__product { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ck-testimonial__product img { width: 26px; height: 30px; object-fit: contain; }
.ck-testimonial__product span { font-size: 13px; }

/* ============================== Stripe element containers ============================== */

#payment-element, #express-checkout-element { margin-top: 0; }
#payment-element + .ck-field { margin-top: 12px; }

/* ============================== Responsive ============================== */

@media (max-width: 1000px) {
  .ck-header { min-height: 0; padding: 16px 48px 14px 16px; }
  .ck-header__center { gap: 10px; max-width: 100%; }
  .ck-header__brand-row { flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
  .ck-header__social-proof { font-size: 14px; }
  .ck-header__logo img { width: 104px; }
  .ck-trust-pill { gap: 10px 14px; padding: 8px 12px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .ck-trust-pill__item { font-size: 11px; gap: 5px; }
  .ck-trust-pill__item svg { width: 15px; height: 15px; }
  .ck-header__cart { right: 14px; }
  .ck-avatars img { width: 24px; height: 24px; }

  .ck-layout { flex-direction: column-reverse; min-height: 0; }

  .ck-main-col { flex: 1 1 auto; justify-content: center; }
  .ck-main { width: 100%; max-width: 560px; margin: 0; padding: 8px 20px 40px; }

  .ck-aside-col { border-left: 0; border-bottom: 1px solid var(--divider); }

  .ck-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    font: 400 14px var(--font);
    padding: 16px 20px;
    cursor: pointer;
  }

  .ck-summary-toggle strong { font-size: 18px; font-weight: 700; }
  .ck-summary-toggle svg { transition: transform 0.15s; vertical-align: -1px; margin-left: 4px; }
  .ck-summary-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .ck-aside { display: none; width: 100%; margin: 0; padding: 0 20px 26px; }
  .ck-aside.is-open { display: block; }
}
