/* Solar Circle static storefront — cart & order-request styles */
:root {
  --sc-ink: #1c2430;
  --sc-muted: #5b6675;
  --sc-line: #e2e6ec;
  --sc-bg: #f7f8fa;
  --sc-brand: #0d5c63;
  --sc-brand-dark: #094a50;
  --sc-accent: #d9822b;
  --sc-danger: #b23b3b;
  --sc-radius: 10px;
}

.sc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  color: var(--sc-ink);
  font-size: 16px;
  line-height: 1.55;
}
/* Kadence uses an absolutely-positioned transparent header on these pages. */
body.transparent-header .sc-wrap { padding-top: 150px; }
@media (max-width: 767px) { body.transparent-header .sc-wrap { padding-top: 120px; } }
.sc-wrap h1, .sc-wrap h2, .sc-wrap h3 { color: var(--sc-ink); margin-top: 0; }
.sc-wrap h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.sc-sub { color: var(--sc-muted); margin: 0 0 28px; }

.sc-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: 1fr; } }

.sc-card {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  padding: 22px;
  box-shadow: 0 2px 10px rgba(20, 30, 45, .04);
}
.sc-card + .sc-card { margin-top: 18px; }

.sc-item { border-bottom: 1px solid var(--sc-line); padding: 18px 0; }
.sc-item:first-child { padding-top: 0; }
.sc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sc-item-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.sc-item-head h3 { font-size: 1.05rem; margin: 0 0 2px; line-height: 1.35; }
.sc-item-meta { color: var(--sc-muted); font-size: .9rem; }
.sc-remove {
  background: none; border: 0; color: var(--sc-danger); cursor: pointer;
  font-size: .88rem; padding: 2px 0; text-decoration: underline; white-space: nowrap;
}
.sc-comp-table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: .9rem; }
.sc-comp-table th, .sc-comp-table td { text-align: left; padding: 5px 8px; border-bottom: 1px dashed var(--sc-line); }
.sc-comp-table th { color: var(--sc-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.sc-comp-table td.num, .sc-comp-table th.num { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .sc-comp-table { font-size: .82rem; }
  .sc-comp-table th, .sc-comp-table td { padding: 4px 4px; }
  /* the unit price is the least useful column on a phone */
  .sc-comp-table th:nth-child(3), .sc-comp-table td:nth-child(3) { display: none; }
  .sc-item-head h3 { font-size: 1rem; }
}
.sc-item-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 12px; }
.sc-qty { display: inline-flex; align-items: center; border: 1px solid var(--sc-line); border-radius: 8px; overflow: hidden; }
.sc-qty button { background: #fff; border: 0; width: 34px; height: 36px; font-size: 1.1rem; cursor: pointer; color: var(--sc-ink); }
.sc-qty button:hover { background: var(--sc-bg); }
.sc-qty input { width: 52px; height: 36px; border: 0; border-left: 1px solid var(--sc-line); border-right: 1px solid var(--sc-line); text-align: center; font-size: 1rem; }
.sc-line-total { font-weight: 700; font-size: 1.1rem; }

.sc-empty { text-align: center; padding: 48px 20px; }
.sc-empty p { color: var(--sc-muted); }

.sc-summary h3 { font-size: 1.1rem; margin-bottom: 14px; }
.sc-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .96rem; }
.sc-sum-row.discount { color: var(--sc-brand); }
.sc-sum-row.total { border-top: 2px solid var(--sc-ink); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; }
.sc-sum-row .muted { color: var(--sc-muted); font-size: .82rem; }
.sc-note { color: var(--sc-muted); font-size: .85rem; margin-top: 14px; }

.sc-btn {
  display: inline-block; text-align: center; border: 0; border-radius: 8px;
  padding: 13px 22px; font-size: 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.sc-btn-primary { background: var(--sc-brand); color: #fff; }
.sc-btn-primary:hover { background: var(--sc-brand-dark); color: #fff; }
.sc-btn-secondary { background: #fff; color: var(--sc-brand); border: 1px solid var(--sc-brand); }
.sc-btn-block { display: block; width: 100%; }
.sc-btn[disabled] { opacity: .6; cursor: not-allowed; }

.sc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.sc-actions .sc-btn { flex: 1 1 180px; }

/* checkout form */
.sc-field { margin-bottom: 16px; }
.sc-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.sc-field .req { color: var(--sc-danger); }
.sc-field input, .sc-field select, .sc-field textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 1rem;
  border: 1px solid #cfd6df; border-radius: 8px; background: #fff; color: var(--sc-ink);
}
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus {
  outline: none; border-color: var(--sc-brand); box-shadow: 0 0 0 3px rgba(13, 92, 99, .12);
}
.sc-field textarea { min-height: 90px; resize: vertical; }
.sc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .sc-row2 { grid-template-columns: 1fr; } }
.sc-help { color: var(--sc-muted); font-size: .82rem; margin-top: 4px; }
.sc-error { color: var(--sc-danger); font-size: .85rem; margin-top: 4px; display: none; }
.sc-field.invalid input, .sc-field.invalid select { border-color: var(--sc-danger); }
.sc-field.invalid .sc-error { display: block; }

.sc-pay { display: grid; gap: 10px; margin-top: 6px; }
.sc-pay label {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--sc-line);
  border-radius: 8px; padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0;
}
.sc-pay label:hover { border-color: #b9c3ce; }
.sc-pay input { margin-top: 3px; }
.sc-pay .pay-title { font-weight: 600; display: block; }
.sc-pay .pay-note { color: var(--sc-muted); font-size: .85rem; display: block; }
.sc-pay label.selected { border-color: var(--sc-brand); box-shadow: 0 0 0 3px rgba(13, 92, 99, .1); }

.sc-overlay {
  position: fixed; inset: 0; background: rgba(15, 22, 32, .55); z-index: 99999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sc-overlay.show { display: flex; }
.sc-overlay-card { background: #fff; border-radius: 12px; padding: 30px 34px; text-align: center; max-width: 420px; }
.sc-overlay-card h2 { margin-bottom: 8px; }
.sc-overlay-card p { color: var(--sc-muted); margin: 0; }
.sc-spinner {
  width: 34px; height: 34px; border: 3px solid var(--sc-line); border-top-color: var(--sc-brand);
  border-radius: 50%; margin: 0 auto 16px; animation: sc-spin .8s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-badge { display: inline-block; background: #eef5f2; color: var(--sc-brand); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 600; }

/* Keep the header navigation on one line. */
a.geo-cart-link,
#site-navigation .menu-item > a,
.main-navigation .menu-item > a,
header .wp-block-navigation-item__content,
header .menu-item > a { white-space: nowrap; }
#site-navigation .menu, .main-navigation ul { flex-wrap: nowrap; }

/* Currency code after kit prices (main kit price, listings, home carousel). */
body.sc-store-ca.single-product .summary .price .woocommerce-Price-amount::after,
body.sc-store-ca.home .carousel-slider .price .woocommerce-Price-amount::after,
body.sc-store-ca.page-id-3301 .price .woocommerce-Price-amount::after {
  content: " CAD";
  font-size: .7em;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sc-muted);
  margin-left: .25em;
}
body.sc-store-us.single-product .summary .price .woocommerce-Price-amount::after,
body.sc-store-us.home .carousel-slider .price .woocommerce-Price-amount::after,
body.sc-store-us.page-id-3301 .price .woocommerce-Price-amount::after {
  content: " USD";
  font-size: .7em;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sc-muted);
  margin-left: .25em;
}

/* Price and the "Looking for CAD?" link on the same line. */
.summary > .price, .entry-summary .price, .summary .price {
  display: inline-block;
  margin: 0;
  vertical-align: baseline;
}
.sc-cross-kit {
  display: inline-block;
  margin-left: .5em;
  font-size: .86rem;
  color: var(--sc-muted);
  text-decoration: underline;
  vertical-align: baseline;
}
.sc-cross-kit:hover { color: var(--sc-brand); }

/* “Click here to view the other store” line on the kits listing — styled to
   match the paragraph below it. */
.sc-store-switch { margin: -6px 0 10px; font-size: 1rem; color: #60656a; font-weight: 400; }
.sc-store-switch a { color: #4386fc; font-weight: 400; text-decoration: underline; }

/* Header dropdown: let the white panel grow to fit the longer labels. */
header .sub-menu {
  width: max-content !important;
  min-width: 220px;
}
header .sub-menu li,
header .sub-menu a {
  width: auto !important;
}

/* Country prompt, shown when the visitor's Cloudflare country differs. */
.sc-geo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 25, 40, .18);
  font-size: .95rem;
  color: var(--sc-ink);
}
.sc-geo p { margin: 0 0 14px; line-height: 1.45; }
.sc-geo .sc-btn { display: block; width: 100%; }
.sc-geo-close {
  position: absolute;
  top: 4px;
  right: 10px;
  background: none;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--sc-muted);
  cursor: pointer;
}
@media (max-width: 600px) {
  .sc-geo { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
.sc-thanks { max-width: 720px; margin: 0 auto; text-align: center; }
.sc-thanks .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sc-bg); padding: 3px 8px; border-radius: 6px; }
