/* ---------------------------------------------------------------
   Typography — applied to top-level plugin containers so all
   child elements inherit the configured font families.
--------------------------------------------------------------- */
.ssr-subscribe-widget,
.ssr-checkout-section {
  font-family: var(--ssr-font-body, inherit);
}

.ssr-checkout-panel__title,
.ssr-checkout-confirmation h2 {
  font-family: var(--ssr-font-heading, var(--ssr-font-body, inherit));
}

/* ---------------------------------------------------------------
   Widget wrapper
--------------------------------------------------------------- */
.ssr-subscribe-widget {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ---------------------------------------------------------------
   Custom select
--------------------------------------------------------------- */
.ssr-select {
  position: relative;
  user-select: none;
}

/* Trigger (visible "select box") */
.ssr-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  color: #1d2327;
  cursor: pointer;
  transition: border-color 0.15s;
  gap: 10px;
}

.ssr-select-trigger-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ssr-trigger-price {
  font-size: 13px;
  color: var(--ssr-primary, #635bff);
  font-weight: 600;
  white-space: nowrap;
}

.ssr-trigger-recurrence {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  white-space: nowrap;
}

.ssr-trigger-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--ssr-badge, #22c55e);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.ssr-select-trigger:focus {
  outline: none;
  border-color: var(--ssr-primary, #635bff);
  box-shadow: 0 0 0 2px var(--ssr-primary-a20, rgba(99, 91, 255, 0.2));
}

.ssr-select.ssr-open .ssr-select-trigger {
  border-color: var(--ssr-primary, #635bff);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ssr-select-selected {
  color: #1d2327;
  font-weight: 500;
}

/* Chevron arrow */
.ssr-select-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-left: 10px;
  border-right: 2px solid #777;
  border-bottom: 2px solid #777;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.ssr-select.ssr-open .ssr-select-arrow {
  transform: rotate(225deg) translateY(-2px);
}

/* Dropdown list */
.ssr-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid var(--ssr-primary, #635bff);
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
}

.ssr-select.ssr-open .ssr-select-dropdown {
  display: block;
}

/* Individual option */
.ssr-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
  gap: 12px;
}

.ssr-select-option:hover {
  background: #f3f2ff;
}

.ssr-select-option.ssr-selected {
  background: #ebe9ff;
}

.ssr-option-name {
  font-size: 14px;
  color: #1d2327;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssr-option-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ssr-option-price {
  font-size: 13px;
  color: var(--ssr-primary, #635bff);
  font-weight: 600;
  white-space: nowrap;
}

.ssr-option-recurrence {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  white-space: nowrap;
}

.ssr-option-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--ssr-badge, #22c55e);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------
   Single-purchase row (qty + add-to-cart)
--------------------------------------------------------------- */
.ssr-single-purchase-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.ssr-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  gap: 6px;
}

.ssr-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--ssr-primary, #635bff);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s ease;
  padding: 0;
}

.ssr-qty-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 1;
  pointer-events: none;
}

.ssr-qty-btn svg {
  display: block;
  fill: currentColor;
  width: 1em;
  height: 1em;
  pointer-events: none;
}

.ssr-qty-btn:hover {
  background-color: var(--ssr-primary-dark, #4f46e5);
}

.ssr-qty-input {
  width: 48px;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}

.ssr-qty-input::-webkit-inner-spin-button,
.ssr-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ssr-add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px 16px;
  background-color: var(--ssr-primary, #635bff);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ssr-add-to-cart-btn i {
  color: currentColor;
}

.ssr-add-to-cart-btn svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

.ssr-add-to-cart-btn:hover:not(:disabled) {
  background-color: var(--ssr-primary-dark, #4f46e5);
}

.ssr-add-to-cart-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Stacked layout: qty above button, both full-width */
.ssr-single-purchase-row.ssr-atc-layout-stacked {
  flex-direction: column;
}

.ssr-single-purchase-row.ssr-atc-layout-stacked .ssr-qty-wrap {
  width: 100%;
  justify-content: center;
}

.ssr-single-purchase-row.ssr-atc-layout-stacked .ssr-add-to-cart-btn {
  width: 100%;
}

/* ---------------------------------------------------------------
   Subscribe button
--------------------------------------------------------------- */
.ssr-subscribe-btn i {
  color: currentColor;
}

.ssr-subscribe-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ssr-subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background-color: var(--ssr-primary, #635bff);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ssr-subscribe-btn:hover:not(:disabled) {
  background-color: var(--ssr-primary-dark, #4f46e5);
}

.ssr-subscribe-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
   Cards layout
--------------------------------------------------------------- */
.ssr-layout-cards .ssr-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.ssr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  padding: 20px 16px 16px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  gap: 6px;
  user-select: none;
}

.ssr-card:hover {
  border-color: var(--ssr-primary, #635bff);
  box-shadow: 0 2px 10px var(--ssr-primary-a12, rgba(99, 91, 255, 0.12));
}

.ssr-card.ssr-card-selected {
  border-color: var(--ssr-primary, #635bff);
  background-color: #f3f2ff;
  box-shadow: 0 2px 12px var(--ssr-primary-a18, rgba(99, 91, 255, 0.18));
}

.ssr-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ssr-primary-a25, rgba(99, 91, 255, 0.25));
}

.ssr-card-recurrence {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ssr-card-price {
  font-size: 20px;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.2;
}

.ssr-card-recurrence-label {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-top:-6px;
}

.ssr-card-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.ssr-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ssr-badge, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------
   Plan description
--------------------------------------------------------------- */
.ssr-plan-description {
  display: none;
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   Subscription Price widget
--------------------------------------------------------------- */
.ssr-sub-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.ssr-sub-price-current {
  display: inline;
  margin-right: 6px;
}

.ssr-sub-price-prefix,
.ssr-sub-price-value,
.ssr-sub-price-suffix {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.ssr-sub-price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8em;
}

/* ---------------------------------------------------------------
   Inline error
--------------------------------------------------------------- */
.ssr-error {
  margin: 0;
  font-size: 13px;
  color: #cc1818;
  min-height: 1em;
}

/* ---------------------------------------------------------------
   Checkout page — section background + wrap
--------------------------------------------------------------- */
.ssr-checkout-section {
  background: #f5f6fa;
  padding: 48px 0 64px;
  min-height: 70vh;
}

.ssr-checkout-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Step row: bubbles + connector lines */
.ssr-checkout-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Individual step: bubble stacked over label */
.ssr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Numbered / icon circle */
.ssr-step__bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #ddd;
  background: #fff;
  color: #bbb;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Checkmark SVG inside done bubbles */
.ssr-step__check {
  width: 13px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

.ssr-step__label {
  font-size: 13px;
  font-weight: 600;
  color: #bbb;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

/* Horizontal connector line — stretches between steps */
.ssr-step__connector {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  /* vertically centre against the 36px bubble: (36px / 2) - (2px / 2) = 17px */
  margin-top: 17px;
  transition: background 0.2s;
}

.ssr-step__connector--done {
  background: var(--ssr-primary, #635bff);
}

/* ── Done ── */
.ssr-step--done .ssr-step__bubble {
  background: var(--ssr-primary, #635bff);
  border-color: var(--ssr-primary, #635bff);
  color: #fff;
}

.ssr-step--done .ssr-step__label {
  color: var(--ssr-primary, #635bff);
}

/* ── Active ── */
.ssr-step--active .ssr-step__bubble {
  background: #ebe9ff;
  border-color: var(--ssr-primary, #635bff);
  color: var(--ssr-primary, #635bff);
  box-shadow: 0 0 0 4px var(--ssr-primary-a15, rgba(99, 91, 255, 0.15));
}

.ssr-step--active .ssr-step__label {
  color: var(--ssr-primary, #635bff);
  font-weight: 700;
}

/* ── Inactive ── */
.ssr-step--inactive .ssr-step__bubble {
  background: #fff;
  border-color: #ddd;
  color: #bbb;
}

.ssr-step--inactive .ssr-step__label {
  color: #bbb;
}

/* ---------------------------------------------------------------
   Checkout two-column layout
--------------------------------------------------------------- */
.ssr-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.ssr-checkout-left {
  min-width: 0;
}

.ssr-checkout-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

/* ---------------------------------------------------------------
   Panel cards  —  wrap payment form, order summary, change plan
--------------------------------------------------------------- */
.ssr-checkout-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ssr-checkout-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2327;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

.ssr-checkout-panel__secure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.03em;
}

.ssr-checkout-panel__secure svg {
  margin-top:-2px;
  width: 11px;
  height: 13px;
  flex-shrink: 0;
}

.ssr-checkout-panel__body {
  padding: 18px;
}

/* Payment panel: Stripe manages its own internal padding */
.ssr-checkout-panel__body--flush {
  padding: 14px 18px;
}

#ssr-stripe-checkout {
  min-height: 500px;
  width: 100%;
}

/* Hide the "Change Plan" panel when JS leaves the switcher empty
   (only one plan configured — no options to show) */
.ssr-freq-panel:has(.ssr-freq-switcher:empty) {
  display: none;
}

/* ---------------------------------------------------------------
   Order product header  —  image + name above the summary rows
--------------------------------------------------------------- */
.ssr-order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.ssr-order-product__image {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #f6f6f6;
}

.ssr-order-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssr-order-product__name {
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
  line-height: 1.3;
}

/* ---------------------------------------------------------------
   Order summary  —  lives inside a panel body, no own border
--------------------------------------------------------------- */
.ssr-order-summary {
  font-size: 14px;
  color: #1d2327;
}

.ssr-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssr-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ssr-summary-label {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

.ssr-summary-value {
  font-size: 13px;
  font-weight: 500;
  color: #1d2327;
  text-align: right;
}

.ssr-summary-row--total {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  margin-top: 4px;
}

.ssr-summary-row--total .ssr-summary-label,
.ssr-summary-row--total .ssr-summary-value {
  font-size: 15px;
  font-weight: 700;
  color: #1d2327;
}

.ssr-summary-savings {
  color: var(--ssr-badge, #22c55e);
  font-weight: 600;
}

.ssr-summary-free {
  color: var(--ssr-badge, #22c55e);
  font-weight: 600;
}

.ssr-summary-renewal {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   Frequency switcher  —  lives inside a panel body
--------------------------------------------------------------- */
.ssr-freq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssr-freq-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.ssr-freq-option:hover {
  border-color: var(--ssr-primary, #635bff);
  box-shadow: 0 2px 10px var(--ssr-primary-a12, rgba(99, 91, 255, 0.12));
}

.ssr-freq-option:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ssr-primary-a25, rgba(99, 91, 255, 0.25));
}

.ssr-freq-option--active {
  border-color: var(--ssr-primary, #635bff);
  background: #f3f2ff;
  box-shadow: 0 2px 12px var(--ssr-primary-a18, rgba(99, 91, 255, 0.18));
}

.ssr-freq-label {
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.ssr-freq-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ssr-primary, #635bff);
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Loading skeleton
--------------------------------------------------------------- */
@keyframes ssr-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.ssr-checkout-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  min-height: 500px;
}

.ssr-skeleton-line {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 600px 100%;
  animation: ssr-shimmer 1.4s infinite linear;
  width: 100%;
}

.ssr-skeleton-line--title {
  height: 22px;
  width: 55%;
}

.ssr-skeleton-line--short {
  width: 40%;
}

/* ---------------------------------------------------------------
   Confirmation state
--------------------------------------------------------------- */
.ssr-checkout-confirmation {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 36px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ssr-checkout-confirmation__icon {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  color: var(--ssr-primary, #635bff);
}

.ssr-checkout-confirmation__icon svg {
  width: 100%;
  height: 100%;
}

.ssr-checkout-confirmation h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.3;
}

.ssr-checkout-confirmation__email {
  font-size: 14px;
  color: #555;
  margin: 0 0 4px;
  line-height: 1.6;
}

.ssr-checkout-confirmation p {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.6;
}

.ssr-confirm-details {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0 28px;
  font-size: 14px;
}

.ssr-confirm-details__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 16px;
  gap: 12px;
}

.ssr-confirm-details__row + .ssr-confirm-details__row {
  border-top: 1px solid #f0f0f0;
}

.ssr-confirm-details__label {
  color: #888;
  white-space: nowrap;
}

.ssr-confirm-details__value {
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
}

.ssr-confirm-details__interval {
  font-weight: 400;
  color: #888;
}

.ssr-confirm-details__row--total {
  border-top: 1px solid #e8e8e8 !important;
  background: #fafafa;
}

.ssr-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ssr-confirm-actions .ssr-btn {
  flex: 1;
  min-width: 140px;
}

/* ---------------------------------------------------------------
   Utility
--------------------------------------------------------------- */
.ssr-hidden {
  display: none !important;
}

/* ---------------------------------------------------------------
   Order Details form
--------------------------------------------------------------- */
.ssr-details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ssr-form-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ssr-form-section__header .ssr-form-section__title {
  margin-bottom: 0;
}

.ssr-form-section__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 12px;
}

.ssr-login-prompt {
  margin: 0;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

.ssr-login-link {
  color: var(--ssr-primary, #635bff);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.ssr-login-link:hover {
  text-decoration: underline;
}

.ssr-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.ssr-form-row:last-child {
  margin-bottom: 0;
}

.ssr-form-row--cols {
  flex-direction: row;
  gap: 12px;
}

.ssr-form-row--cols .ssr-form-field {
  flex: 1;
  min-width: 0;
}

.ssr-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ssr-field-error {
  font-size: 12px;
  color: #c0392b;
  margin: 0;
  min-height: 1em;
}


/* ---------------------------------------------------------------
   State searchable select
--------------------------------------------------------------- */
.ssr-state-select {
  position: relative;
}

.ssr-checkout-section .ssr-state-trigger,
.ssr-checkout-section .ssr-state-trigger:hover,
.ssr-checkout-section .ssr-state-trigger:active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: normal;
  line-height: inherit;
  color: #1d2327;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  text-transform: none;
  letter-spacing: normal;
}

.ssr-checkout-section .ssr-state-trigger:focus,
.ssr-checkout-section .ssr-state-select--open .ssr-state-trigger {
  border-color: var(--ssr-primary, #635bff);
  box-shadow: 0 0 0 3px var(--ssr-primary-a12, rgba(99, 91, 255, 0.12));
}

.ssr-state-trigger__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssr-state-trigger__label--placeholder {
  color: #aaa;
}

.ssr-state-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ssr-checkout-section .ssr-state-select--open .ssr-state-chevron {
  transform: rotate(180deg);
}

.ssr-state-dropdown {
  /* position: fixed applied by JS so it escapes overflow:hidden parents */
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.ssr-state-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.ssr-state-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #1d2327;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}

.ssr-state-search:focus {
  border-color: var(--ssr-primary, #635bff);
}

.ssr-state-options {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
}

.ssr-state-option {
  padding: 10px 14px;
  font-size: 14px;
  color: #1d2327;
  cursor: pointer;
  transition: background 0.1s;
}

.ssr-state-option:hover {
  background: #f3f2ff;
}

.ssr-state-option--selected {
  background: var(--ssr-primary, #635bff);
  color: #fff;
}

.ssr-state-option--selected:hover {
  background: var(--ssr-primary-dark, #4f46e5);
}

.ssr-state-option--hidden {
  display: none;
}

.ssr-shipping-country-notice {
  font-size: 13px;
  color: #666;
  margin: 8px 0 0;
}

/* ---------------------------------------------------------------
   Order Details proceed button wrapper
--------------------------------------------------------------- */
#ssr-details-proceed {
  margin-top: 10px;
}

/* ---------------------------------------------------------------
   Email step
--------------------------------------------------------------- */
.ssr-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssr-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.ssr-input, input[type=text].ssr-input, input[type=tel].ssr-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  color: #1d2327;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
}



select.ssr-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.ssr-input:focus, input[type=text].ssr-input:focus, input[type=tel].ssr-input:focus {
  border-color: var(--ssr-primary, #635bff);
  box-shadow: 0 0 0 3px var(--ssr-primary-a12, rgba(99, 91, 255, 0.12));
}

/* ---------------------------------------------------------------
   Submit area
--------------------------------------------------------------- */
#ssr-submit-area {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssr-terms-notice {
  margin: 0;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.5;
}

.ssr-terms-notice a {
  color: var(--ssr-primary, #635bff);
  text-decoration: none;
  font-weight: 500;
}

.ssr-terms-notice a:hover {
  text-decoration: underline;
}

.ssr-btn--full, [type=button].ssr-btn--full, [type=reset].ssr-btn--full, [type=submit].ssr-btn--full, button.ssr-btn--full {
  display: block;
  width: 100%;
  text-align: center;
}

/* Matches .ssr-subscribe-btn defaults */
.ssr-btn, [type=button].ssr-btn, [type=reset].ssr-btn, [type=submit].ssr-btn, button.ssr-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ssr-primary, #635bff);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ssr-btn:hover, [type=button].ssr-btn:hover, [type=reset].ssr-btn:hover, [type=submit].ssr-btn:hover, button.ssr-btn:hover {
  background: var(--ssr-primary-dark, #4f46e5);
  color: #fff;
}

.ssr-btn--secondary {
  background: #fff;
  color: var(--ssr-primary, #635bff);
  border: 1px solid var(--ssr-primary, #635bff);
}

.ssr-btn--secondary:hover {
  background: #f5f4ff;
  color: var(--ssr-primary, #635bff);
}

/* ---------------------------------------------------------------
   Responsive — single column below 680px
--------------------------------------------------------------- */
@media (max-width: 680px) {
  .ssr-checkout-section {
    padding: 24px 0 40px;
  }

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

  /* Summary + plan switcher stack above the payment form */
  .ssr-checkout-left  { order: 2; }
  .ssr-checkout-right { order: 1; position: static; }

  .ssr-checkout-confirmation {
    padding: 28px 20px;
  }

  .ssr-checkout-panel__title {
    font-size: 12px;
    padding: 12px 16px;
  }

  .ssr-checkout-panel__body {
    padding: 14px;
  }

  .ssr-form-row--cols {
    flex-direction: column;
    gap: 0;
  }
}
