.hidden { display: none !important; }

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

html, body {
  margin: 0;
  min-height: 100%;
}

body.ss-checkout {
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.ss-checkout--skeleton .sc-top,
body.ss-checkout--skeleton .sc-page,
body.ss-checkout--skeleton #ss-modals-root {
  visibility: hidden;
}

.sc-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 22px 20px 18px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.sc-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #111;
}

.sc-logo__img {
  display: block;
  max-height: 52px;
  max-width: min(240px, 70vw);
  object-fit: contain;
}

.sc-logo.is-image .sc-logo__text { display: none; }

.sc-logo__title {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.sc-logo__sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sc-logo__sub:empty { display: none; }

.sc-cart-icon {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a1a1a;
}

.sc-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.sc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0 48px;
  align-items: start;
}

.sc-main {
  padding: 28px 8px 0 0;
  min-width: 0;
}

.sc-side {
  padding: 28px 0 0 8px;
  border-left: 1px solid #e8e8e8;
  min-height: 70vh;
  padding-left: 36px;
}

.sc-section { margin: 0 0 28px; }

.sc-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 650;
}

.form-row { margin: 0 0 10px; }

.sc-float {
  display: block;
  position: relative;
}

.sc-float > span {
  position: absolute;
  left: 12px;
  top: 16px;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #707070;
  pointer-events: none;
  transition: top 0.12s ease, font-size 0.12s ease;
}

.sc-float:has(input:focus) > span,
.sc-float:has(input:not(:placeholder-shown)) > span,
.sc-float:has(select) > span {
  top: 6px;
  font-size: 11px;
}

.sc-float .input-text,
.sc-float select,
.sc-float input[type="text"],
.sc-float input[type="email"],
.sc-float input[type="tel"] {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 24px 12px 8px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 18px;
}

.sc-float input::placeholder {
  color: transparent;
  opacity: 0;
}

.sc-float select {
  padding-top: 20px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sc-float .input-text:focus,
.sc-float select:focus,
.sc-float input:focus {
  outline: none;
  border-color: #1773b0;
  box-shadow: 0 0 0 1px #1773b0;
}

.sc-float--icon input { padding-right: 36px; }

.sc-search-icon {
  position: absolute;
  right: 12px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23777' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/16px no-repeat;
}

.sc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: #333;
  font-size: 14px;
}

.sc-ship-empty {
  padding: 16px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  background: #fafafa;
  color: #6f6f6f;
}

.sc-secure {
  margin: -4px 0 12px;
  color: #6f6f6f;
}

.sc-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow: hidden;
}

.sc-pay-list .wc_payment_method {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  overflow: hidden;
}

.sc-pay-list .wc_payment_method:last-child { border-bottom: 0; }

.sc-pay-list .wc_payment_method > input.input-radio {
  margin: 18px 0 0 12px;
}

.sc-pay-list .wc_payment_method > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  min-width: 0;
  padding: 12px 12px 12px 8px;
  font-size: 14px;
  font-weight: 500;
}

.sc-pay-list .wc_payment_method > label > img,
.sc-pay-list .wc_payment_method > label .sscb-payment-mark {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 20px;
  max-width: 72px;
  max-height: 22px;
  object-fit: contain;
}

.sc-card-brands {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  max-width: min(220px, 58%);
  padding: 3px 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8edf3;
}

.sc-card-brands img {
  display: block;
  flex: 0 0 auto;
  height: 16px;
  width: 26px;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.sc-card-brands.is-detected img {
  opacity: 0.28;
  filter: grayscale(1);
}

.sc-card-brands.is-detected img.is-active {
  opacity: 1;
  filter: none;
}

.sc-pay-list .payment_box {
  grid-column: 1 / -1;
  padding: 12px;
  background: #f6f6f6;
}

.sc-pay-list .sscb-card-inline,
.sc-pay-list .sscb-card-inline .cd-form--inline {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sc-pay-list .cd-field { margin: 0 0 10px; }

.sc-pay-list .sscb-card-inline .cd-field label.sc-float {
  position: relative;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  color: inherit;
}

.sc-pay-list .sscb-card-inline .cd-field .sc-float > span {
  position: absolute;
  left: 12px;
  top: 16px;
  z-index: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: #707070;
  pointer-events: none;
}

.sc-pay-list .sscb-card-inline .cd-field .sc-float:has(input:focus) > span,
.sc-pay-list .sscb-card-inline .cd-field .sc-float:has(input:not(:placeholder-shown)) > span {
  top: 6px;
  font-size: 11px;
}

.sc-pay-list .sscb-card-inline .cd-field .sc-float input {
  height: auto !important;
  min-height: 0 !important;
  padding: 24px 48px 8px 12px !important;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 18px !important;
  box-shadow: none;
}

.sc-pay-list .cd-number-wrap {
  display: block;
  position: relative;
}

.sc-pay-list .cd-brand-single {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sc-pay-list .cd-brand-single:not(.has-brand) {
  visibility: hidden;
}

.sc-pay-list .cd-brand-inline,
.sc-pay-list .cd-brand-inline img {
  display: block;
  width: 34px;
  height: 22px;
  object-fit: contain;
}

.sc-pay-list .cd-brand-inline[hidden] {
  display: none !important;
}

.sc-pay-list .sscb-card-inline .cd-field .sc-float input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.sc-pay-list .cd-powered { display: none; }

.sc-paynow {
  width: 100%;
  height: 52px;
  margin: 8px 0 24px;
  border: 0;
  border-radius: 8px;
  background: #166534;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.sc-paynow:hover { background: #14532d; }

.sc-paynow.loading,
.sc-paynow:disabled {
  opacity: 0.7;
  cursor: wait;
}

.sc-lines { display: flex; flex-direction: column; gap: 16px; }

.sc-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.sc-line__media {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #f3f3f3;
  overflow: hidden;
}

.sc-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-line__qty {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #666;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.sc-line__name { font-weight: 550; }

.sc-line__variant {
  margin-top: 2px;
  color: #6f6f6f;
  font-size: 13px;
}

.sc-line__price { font-weight: 550; white-space: nowrap; }

.sc-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 22px 0 18px;
}

.sc-discount input {
  height: 48px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
}

.sc-discount button {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #f0f0f0;
  color: #8a8a8a;
  font-weight: 600;
}

.sc-discount button.is-ready {
  background: #111;
  color: #fff;
  cursor: pointer;
}

.sc-totals { display: flex; flex-direction: column; gap: 10px; }

.sc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sc-total-row em {
  font-style: normal;
  color: #8a8a8a;
}

.sc-total-row--grand {
  padding-top: 10px;
  border-top: 1px solid #ececec;
  font-size: 16px;
}

.sc-total-row--grand small {
  margin-right: 6px;
  color: #6f6f6f;
  font-size: 12px;
  font-weight: 500;
}

.sc-tax-note {
  margin: 0;
  color: #6f6f6f;
  font-size: 12px;
  text-align: right;
}

.woocommerce-notices-wrapper { margin: 16px 0 0; }

.woocommerce-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  list-style: none;
}

.checkout-empty {
  text-align: center;
  padding: 64px 20px;
  color: #64748b;
}

@media (max-width: 900px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-side {
    border-left: 0;
    border-top: 1px solid #e8e8e8;
    padding: 24px 0 0;
    min-height: 0;
    order: -1;
  }
  .sc-main { padding: 20px 0 0; }
  .sc-logo__title { font-size: 28px; }
}

@media (max-width: 640px) {
  .sc-two { grid-template-columns: 1fr; }
  .sc-cart-icon { right: 16px; }
  .sc-card-brands { max-width: 52%; }
}

.sc-pay-list .payment_method_ss_paypal > label > img.sscb-payment-mark {
  display: block !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0;
  object-fit: contain;
}
