/* RTKSA Checkout Widget — default styles.
   Matches the original static site's checkout-grid (1.5fr/1fr fluid split,
   not a fixed sidebar width) so it fills its container edge-to-edge like
   every other widget, instead of capping its own max-width. !important is
   used on card/input/button look-and-feel because many WordPress themes
   ship global input/button/table resets that otherwise override this file. */

.rtksa-ew-checkout { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
.rtksa-ew-checkout *, .rtksa-ew-checkout *::before, .rtksa-ew-checkout *::after { box-sizing: border-box; }

.rtksa-ew-checkout-head { text-align: center; margin-bottom: 32px; }
.rtksa-ew-checkout-heading { font-size: 28px; font-weight: 800; color: var(--rtksa-ew-grey-900); margin: 0 0 10px; }
.rtksa-ew-checkout-sub { color: var(--rtksa-ew-grey-600); font-size: 15px; max-width: 52ch; margin: 0 auto; }

/* Stepper */
.rtksa-ew-stepper { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.rtksa-ew-step { display: flex; align-items: center; gap: 8px; opacity: .55; }
.rtksa-ew-step.is-active, .rtksa-ew-step.is-done { opacity: 1; }
.rtksa-ew-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--rtksa-ew-grey-200); color: var(--rtksa-ew-grey-600); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.rtksa-ew-step.is-active .rtksa-ew-step-num { background: var(--rtksa-ew-blue); color: #fff; }
.rtksa-ew-step.is-done .rtksa-ew-step-num { background: var(--rtksa-ew-green); color: #fff; }
.rtksa-ew-step-label { font-size: 13px; font-weight: 700; color: var(--rtksa-ew-grey-900); }
.rtksa-ew-step-line { width: 36px; height: 2px; background: var(--rtksa-ew-grey-200); }

/* Grid: main + summary — matches the original 1.5fr/1fr fluid ratio, not a
   fixed pixel sidebar, so the whole widget scales with its container. */
.rtksa-ew-checkout-grid { display: grid !important; grid-template-columns: 1.5fr 1fr !important; gap: 32px !important; align-items: start !important; width: 100% !important; max-width: 100%; }
.rtksa-ew-checkout-grid > * { min-width: 0 !important; max-width: 100%; }
@media (max-width: 860px) {
	.rtksa-ew-checkout-grid { grid-template-columns: 1fr !important; }
	.rtksa-ew-summary { position: static !important; top: auto !important; }
}

.rtksa-ew-panel { display: none; }
.rtksa-ew-panel.is-active { display: block; }

.rtksa-ew-checkout-card {
	background: #fff !important; border: 1px solid var(--rtksa-ew-grey-200) !important; border-radius: 22px !important;
	padding: 38px !important; box-shadow: 0 4px 20px rgba(6,26,51,.05) !important; width: 100% !important;
}

/* Plan pick (step 1) */
.rtksa-ew-plan-pick {
	display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important;
	border: 1.5px solid var(--rtksa-ew-grey-200) !important; border-radius: 14px !important; padding: 20px 22px !important;
	margin-bottom: 14px !important; cursor: pointer; transition: border-color .15s ease, background .15s ease;
	background: #fff !important;
}
.rtksa-ew-plan-pick:hover { border-color: var(--rtksa-ew-blue) !important; }
.rtksa-ew-plan-pick.is-checked { border-color: var(--rtksa-ew-blue) !important; background: #E4F0FE !important; }
.rtksa-ew-plan-pick-l { display: flex; flex-direction: column; gap: 2px; }
.rtksa-ew-plan-pick-l strong { font-size: 16px; color: var(--rtksa-ew-grey-900); display: block; }
.rtksa-ew-plan-pick-l span { font-size: 13px; color: var(--rtksa-ew-grey-600); }
.rtksa-ew-plan-pick-r { font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; font-weight: 700; font-size: 18px; color: var(--rtksa-ew-blue); white-space: nowrap; }
.rtksa-ew-plan-pick input[type="radio"] { display: none; }

/* Fields (step 2) */
.rtksa-ew-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .rtksa-ew-field-row { grid-template-columns: 1fr; } }
.rtksa-ew-field { margin-bottom: 18px; }
.rtksa-ew-field label { display: block !important; font-weight: 700 !important; font-size: 13px !important; margin: 0 0 7px !important; color: var(--rtksa-ew-grey-900) !important; }
.rtksa-ew-field input, .rtksa-ew-field select, .rtksa-ew-field textarea {
	display: block !important; width: 100% !important; padding: 12px 14px !important;
	border: 1.5px solid var(--rtksa-ew-grey-200) !important; border-radius: 10px !important; font-size: 14px !important;
	background-color: #fff !important; font-family: inherit !important; color: var(--rtksa-ew-grey-900) !important;
	box-shadow: none !important; -webkit-appearance: none; appearance: none; height: auto !important; line-height: normal !important;
}
.rtksa-ew-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3e%3cpath d='M1 1l6 6 6-6' stroke='%235B6472' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important; background-position: right 14px center !important; padding-right: 36px !important;
}
.rtksa-ew-field input:focus, .rtksa-ew-field select:focus, .rtksa-ew-field textarea:focus { outline: none !important; border-color: var(--rtksa-ew-blue) !important; box-shadow: 0 0 0 4px #E4F0FE !important; }
.rtksa-ew-field-error { display: block; color: var(--rtksa-ew-red); font-size: 12px; margin-top: 5px; min-height: 14px; }
.rtksa-ew-field.has-error input, .rtksa-ew-field.has-error select { border-color: var(--rtksa-ew-red) !important; }

.rtksa-ew-checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--rtksa-ew-grey-600); margin: 8px 0 4px; cursor: pointer; }
.rtksa-ew-checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.rtksa-ew-checkbox-row a { color: var(--rtksa-ew-blue); font-weight: 600; }

/* Payment (step 3) */
.rtksa-ew-pay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.rtksa-ew-pay-opt {
	display: flex !important; align-items: center !important; gap: 10px !important; border: 1.5px solid var(--rtksa-ew-grey-200) !important;
	border-radius: 12px !important; padding: 14px 16px !important; font-weight: 700 !important; font-size: 14px !important; cursor: pointer;
	background: #fff !important;
}
.rtksa-ew-pay-opt:has(input:checked) { border-color: var(--rtksa-ew-blue) !important; }
.rtksa-ew-trust-note { font-size: 12px; color: var(--rtksa-ew-grey-600); margin: 0 0 22px; }

.rtksa-ew-form-error { color: var(--rtksa-ew-red); font-size: 13px; margin-top: 14px; min-height: 14px; text-align: center; }

/* Buttons */
.rtksa-ew-btn-row { display: flex; gap: 12px; margin-top: 8px; }
.rtksa-ew-btn {
	position: relative !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
	border: none !important; padding: 15px 26px !important; border-radius: 99px !important; font-weight: 800 !important; font-size: 14px !important;
	box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; font-family: inherit;
}
.rtksa-ew-btn-block { width: 100% !important; }
.rtksa-ew-btn-primary { background: var(--rtksa-ew-blue) !important; color: #fff !important; }
.rtksa-ew-btn-primary:hover { background: #1470D6 !important; color: #fff !important; }
.rtksa-ew-btn-ghost { background: #fff !important; color: var(--rtksa-ew-grey-900) !important; border: 1.5px solid var(--rtksa-ew-grey-200) !important; }
.rtksa-ew-btn-ghost:hover { border-color: var(--rtksa-ew-blue) !important; }
.rtksa-ew-btn-accent { background: var(--rtksa-ew-green) !important; color: var(--rtksa-ew-blue-dark) !important; }
.rtksa-ew-btn-accent:hover { background: #3ED895 !important; }
.rtksa-ew-btn[disabled] { opacity: .65; pointer-events: none; }

.rtksa-ew-spinner {
	display: none; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; animation: rtksa-ew-spin .7s linear infinite;
}
.rtksa-ew-btn.is-loading .rtksa-ew-spinner { display: inline-block; }
.rtksa-ew-btn.is-loading .rtksa-ew-btn-text { opacity: .7; }
@keyframes rtksa-ew-spin { to { transform: rotate(360deg); } }

/* Confirmation */
.rtksa-ew-confirm { text-align: center; padding: 60px 38px; }
.rtksa-ew-confirm-icon {
	width: 68px; height: 68px; border-radius: 50%; background: var(--rtksa-ew-green); color: #fff;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.rtksa-ew-confirm h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.rtksa-ew-confirm p { color: var(--rtksa-ew-grey-600); max-width: 44ch; margin: 0 auto; line-height: 1.5; }

/* Summary sidebar */
.rtksa-ew-summary { background: var(--rtksa-ew-grey-50) !important; border: 1px solid var(--rtksa-ew-grey-200) !important; border-radius: 18px !important; padding: 24px !important; position: sticky; top: 100px; width: 100% !important; max-width: 100%; box-sizing: border-box !important; }
.rtksa-ew-summary h4 { margin: 0 0 16px !important; font-size: 13px !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--rtksa-ew-grey-600) !important; }
.rtksa-ew-summary-line { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 10px; padding: 12px 0 !important; border-bottom: 1px solid var(--rtksa-ew-grey-200) !important; font-size: .92rem !important; }
.rtksa-ew-summary-line span:first-child { color: var(--rtksa-ew-grey-600) !important; flex-shrink: 0; }
.rtksa-ew-summary-line strong { color: var(--rtksa-ew-grey-900) !important; font-weight: 700 !important; text-align: right; word-break: break-word; }
.rtksa-ew-summary-total { border-bottom: none !important; padding-top: 16px !important; }
.rtksa-ew-summary-total strong { font-size: 1.05rem !important; color: var(--rtksa-ew-grey-900) !important; font-weight: 800 !important; }
