/* ============================================================
   BulbaSoft Cart — Checkout Wizard
   ============================================================ */

.bsftcart-checkout {
	max-width: 1000px;
	margin: 0 auto;
	font-family: inherit;
}

/* ── Step pills ────────────────────────────────────────────────────────────── */

.bsftcart-steps {
	display: flex;
	align-items: center;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 24px;
}

.bsftcart-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.bsftcart-step__circle {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f1f5f9;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #94a3b8;
	transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.bsftcart-step__check  { display: none; }
.bsftcart-step__number { display: block; }

.bsftcart-step__label {
	font-size: 10px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	transition: color 0.25s;
}

/* Active */
.bsftcart-step.is-active .bsftcart-step__circle {
	background: #a855f7;
	border-color: #a855f7;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.bsftcart-step.is-active .bsftcart-step__label { color: #a855f7; }

/* Done */
.bsftcart-step.is-done .bsftcart-step__circle {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}
.bsftcart-step.is-done .bsftcart-step__check  { display: flex; }
.bsftcart-step.is-done .bsftcart-step__number { display: none; }
.bsftcart-step.is-done .bsftcart-step__label  { color: #16a34a; }

/* Skipped address step (pickup + delivery-first mode only) */
.bsftcart-checkout--delivery-first .bsftcart-step.is-skipped .bsftcart-step__circle {
	opacity: 0.45;
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #cbd5e1;
	box-shadow: none;
}
.bsftcart-checkout--delivery-first .bsftcart-step.is-skipped .bsftcart-step__label {
	color: #cbd5e1;
	text-decoration: line-through;
}
.bsftcart-checkout--delivery-first .bsftcart-step.is-skipped.is-done .bsftcart-step__circle {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #cbd5e1;
}
.bsftcart-checkout--delivery-first .bsftcart-step.is-skipped.is-done .bsftcart-step__label { color: #cbd5e1; }

/* Connector line */
.bsftcart-step-line {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	margin: 0 6px;
	margin-bottom: 22px;
	transition: background 0.25s;
	min-width: 16px;
}
.bsftcart-step-line.is-done { background: #16a34a; }

/* Optional step (shipping address — hidden when not needed) */
.bsftcart-step.is-optional-hidden,
.bsftcart-step-line.is-optional-hidden { display: none !important; }

/* Ship-to-different-address toggle */
.bsftcart-ship-different-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.bsftcart-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #1e293b; user-select: none; }
.bsftcart-checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #a855f7; cursor: pointer; flex-shrink: 0; }

/* ── Panels ─────────────────────────────────────────────────────────────────── */

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

/* ── Shared card ────────────────────────────────────────────────────────────── */

.bsftcart-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

.bsftcart-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 16px;
}

/* ── Cart table ─────────────────────────────────────────────────────────────── */

.bsftcart-table-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

.bsftcart-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

.bsftcart-table thead tr {
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
}

.bsftcart-table thead th {
	padding: 12px 16px;
	text-align: left;
	font-size: 10px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
}

.bsftcart-table thead .bsftcart-col-img,
.bsftcart-table thead .bsftcart-col-del { width: 1%; }

.bsftcart-table tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s;
}

.bsftcart-table tbody tr:last-child { border-bottom: none; }
.bsftcart-table tbody tr:hover      { background: #fdf4ff; }

.bsftcart-table td {
	padding: 14px 16px;
	vertical-align: middle;
}

/* Image */
.bsftcart-col-img { width: 80px; }

.bsftcart-product-img {
	width: 64px !important;
	height: 64px !important;
	max-width: 64px !important;
	min-width: 64px !important;
	object-fit: cover !important;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	display: block;
	flex-shrink: 0;
}

/* Name */
.bsftcart-product-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.4;
}
.bsftcart-product-name:hover { color: #a855f7; }

.bsftcart-product-meta {
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
}

/* Price */
.bsftcart-col-price { color: #475569; font-size: 14px; white-space: nowrap; }

/* Qty */
.bsftcart-col-qty { width: 136px; }

.bsftcart-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}
.bsftcart-qty-stepper:focus-within { border-color: #a855f7; }

.bsftcart-qty-btn {
	width: 32px;
	height: 36px;
	background: #f8fafc;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #475569;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	user-select: none;
	flex-shrink: 0;
}
.bsftcart-qty-btn:hover  { background: #ede9fe; color: #a855f7; }
.bsftcart-qty-btn:active { background: #ddd6fe; }

.bsftcart-qty-input {
	width: 40px;
	height: 36px;
	border: none;
	border-left: 1.5px solid #e2e8f0;
	border-right: 1.5px solid #e2e8f0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	outline: none;
	padding: 0;
	background: #fff;
	-moz-appearance: textfield;
}
.bsftcart-qty-input::-webkit-inner-spin-button,
.bsftcart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Total */
.bsftcart-col-total {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

/* Remove */
.bsftcart-col-del { width: 48px; text-align: center; }

.bsftcart-remove-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #cbd5e1;
	padding: 6px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, background 0.15s;
}
.bsftcart-remove-btn:hover { color: #ef4444; background: #fee2e2; }

/* Row states */
.bsftcart-item.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.bsftcart-item.is-removing {
	animation: bsftcart-row-out 0.28s ease forwards;
}

@keyframes bsftcart-row-out {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(24px); }
}

/* ── Cart footer ────────────────────────────────────────────────────────────── */

.bsftcart-cart-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	padding: 20px 24px;
	border-top: 1px solid #e2e8f0;
	flex-wrap: wrap;
}

/* Totals */
.bsftcart-totals { min-width: 240px; }

.bsftcart-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	color: #475569;
	border-bottom: 1px dashed #f1f5f9;
}
.bsftcart-total-row:last-child { border-bottom: none; }

.bsftcart-discount-row { color: #16a34a; }

.bsftcart-grand-row {
	padding-top: 10px;
	margin-top: 2px;
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	border-top: 2px solid #e2e8f0;
	border-bottom: none !important;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.bsftcart-checkout .bsftcart-btn,
.bsftcart-thankyou .bsftcart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}

.bsftcart-checkout .bsftcart-btn--primary,
.bsftcart-thankyou .bsftcart-btn--primary,
.bsftcart-checkout a.bsftcart-btn.bsftcart-btn--primary,
.bsftcart-thankyou a.bsftcart-btn.bsftcart-btn--primary {
	background: #a855f7;
	border-color: #a855f7;
	color: #fff;
	text-decoration: none;
}

.bsftcart-checkout .bsftcart-btn--primary:hover,
.bsftcart-thankyou .bsftcart-btn--primary:hover,
.bsftcart-checkout a.bsftcart-btn.bsftcart-btn--primary:hover,
.bsftcart-thankyou a.bsftcart-btn.bsftcart-btn--primary:hover {
	background: #9333ea;
	border-color: #9333ea;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.bsftcart-checkout .bsftcart-btn--ghost,
.bsftcart-thankyou .bsftcart-btn--ghost,
.bsftcart-checkout a.bsftcart-btn.bsftcart-btn--ghost,
.bsftcart-thankyou a.bsftcart-btn.bsftcart-btn--ghost {
	background: transparent;
	border-color: #e2e8f0;
	color: #475569;
	text-decoration: none;
}

.bsftcart-checkout .bsftcart-btn--ghost:hover,
.bsftcart-thankyou .bsftcart-btn--ghost:hover,
.bsftcart-checkout a.bsftcart-btn.bsftcart-btn--ghost:hover,
.bsftcart-thankyou a.bsftcart-btn.bsftcart-btn--ghost:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
	text-decoration: none;
}

/* ── Nav row ────────────────────────────────────────────────────────────────── */

.bsftcart-nav-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */

.bsftcart-checkout--empty .bsftcart-panel {
	display: block;
}

.bsftcart-empty {
	text-align: center;
	padding: 64px 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.bsftcart-empty__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	color: #cbd5e1;
}
.bsftcart-empty__icon svg { width: 100%; height: 100%; }

.bsftcart-empty__title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.bsftcart-empty__text {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 24px;
}

/* ── Step 2: Customer form ──────────────────────────────────────────────────── */

.bsftcart-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bsftcart-form-field--full { grid-column: 1 / -1; }

.bsftcart-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.bsftcart-required-mark { color: #ef4444; margin-left: 2px; }

.bsftcart-form-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.bsftcart-form-input:focus {
	border-color: #a855f7;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.bsftcart-form-input[readonly] {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
}

.bsftcart-form-input[readonly]:focus {
	border-color: #e2e8f0;
	box-shadow: none;
}

textarea.bsftcart-form-input {
	resize: vertical;
	min-height: 80px;
}

input[type="file"].bsftcart-form-input {
	padding: 8px 10px;
	cursor: pointer;
}

.bsftcart-form-field.has-error .bsftcart-form-input {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.bsftcart-form-error {
	display: none;
	font-size: 12px;
	color: #ef4444;
	margin-top: 4px;
}

.bsftcart-form-field.has-error .bsftcart-form-error { display: block; }

.bsftcart-identity-verify {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bsftcart-identity-verify-notice {
	font-size: 13px;
	margin: 0 0 8px;
}

.bsftcart-identity-verify-notice.bsftaccahub-error {
	color: #ef4444;
}

.bsftcart-identity-verify-notice.bsftaccahub-success {
	color: #16a34a;
}

.bsftcart-identity-verify__code-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.bsftcart-identity-verify__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bsftcart-identity-verify__actions .bsftcart-btn {
	flex: 1 1 auto;
	min-width: 140px;
	justify-content: center;
}

.bsftcart-identity-verify__hint,
.bsftcart-identity-verify__status {
	margin: 8px 0 0;
	font-size: 12px;
	color: #64748b;
}

.bsftcart-identity-verify__status {
	color: #16a34a;
}

.bsftcart-phone-field {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.bsftcart-phone-field__country {
	flex: 0 0 118px;
	width: auto;
	min-width: 118px;
	padding-left: 10px;
	padding-right: 8px;
}

.bsftcart-phone-field__local {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 640px) {
	.bsftcart-phone-field {
		flex-direction: column;
	}

	.bsftcart-phone-field__country {
		flex: 1 1 auto;
		width: 100%;
	}
}

.bsftcart-checkout-auth {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 18px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	color: #475569;
}

.bsftcart-checkout-auth__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bsftcart-checkout-auth__link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.bsftcart-checkout-auth__link:hover {
	text-decoration: underline;
}

.bsftcart-checkout-auth__divider {
	color: #94a3b8;
}

/* ── Method cards (shipping / payment) ─────────────────────────────────────── */

.bsftcart-method-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.bsftcart-method-card { display: block; cursor: pointer; }

.bsftcart-method-card input[type="radio"] { display: none; }

.bsftcart-method-card__body {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bsftcart-method-card:hover .bsftcart-method-card__body {
	border-color: #c4b5fd;
	background: #faf5ff;
}

.bsftcart-method-card input:checked + .bsftcart-method-card__body {
	border-color: #a855f7;
	background: #faf5ff;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

/* Radio dot */
.bsftcart-method-card__dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.15s;
}

.bsftcart-method-card__dot::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: transparent;
	transition: background 0.15s;
}

.bsftcart-method-card input:checked + .bsftcart-method-card__body .bsftcart-method-card__dot {
	border-color: #a855f7;
}

.bsftcart-method-card input:checked + .bsftcart-method-card__body .bsftcart-method-card__dot::after {
	background: #a855f7;
}

/* Info */
.bsftcart-method-card__info {
	flex: 1;
	min-width: 0;
}

.bsftcart-method-card__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.bsftcart-method-card__meta {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
}

/* Price */
.bsftcart-method-card__price {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	flex-shrink: 0;
}

.bsftcart-method-card__price.is-free { color: #16a34a; }
.bsftcart-method-card__price.is-negotiated {
	flex: 0 1 132px;
	max-width: 132px;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
	font-size: 12px;
	line-height: 1.35;
	text-align: right;
	color: #64748b;
	font-weight: 600;
}

.bsftcart-method-card:has(.bsftcart-method-card__price.is-negotiated) .bsftcart-method-card__body {
	align-items: flex-start;
}

.bsftcart-method-card:has(.bsftcart-method-card__price.is-negotiated) .bsftcart-method-card__price.is-negotiated {
	padding-top: 1px;
}

/* Icon */
.bsftcart-method-card__icon { flex-shrink: 0; }
.bsftcart-method-card__icon img { max-height: 24px; width: auto; vertical-align: middle; }

/* Misc notice text */
.bsftcart-notice-text {
	font-size: 14px;
	color: #64748b;
	padding: 12px 0;
}

.bsftcart-delivery-empty .bsftcart-notice-text {
	padding-bottom: 4px;
}

.bsftcart-delivery-hints {
	margin-top: 4px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.bsftcart-delivery-hints__title {
	font-size: 13px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 8px;
}

.bsftcart-delivery-hints__list {
	margin: 0;
	padding-left: 18px;
	color: #78350f;
	font-size: 13px;
	line-height: 1.55;
}

.bsftcart-delivery-hints__list li + li {
	margin-top: 6px;
}

/* ── Step 5: Order summary ──────────────────────────────────────────────────── */

.bsftcart-summary-block {
	border: 1px solid #f1f5f9;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
}

.bsftcart-summary-block__title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f8fafc;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #f1f5f9;
}

.bsftcart-summary-block__title svg { color: #a855f7; flex-shrink: 0; }

.bsftcart-summary-rows { padding: 8px 0; }

.bsftcart-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 16px;
	font-size: 13px;
	gap: 12px;
}

.bsftcart-summary-row:nth-child(even) { background: #fafafe; }

.bsftcart-summary-row__label { color: #475569; flex: 1; }

.bsftcart-summary-row__value {
	color: #0f172a;
	font-weight: 600;
	white-space: nowrap;
}

.bsftcart-summary-delivery {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 4px;
}

.bsftcart-summary-delivery__note {
	padding: 0 16px 4px;
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
}

.bsftcart-summary-row--delivery-head .bsftcart-summary-row__label {
	color: #0f172a;
	font-weight: 600;
}

/* Subtotal divider row in step-5 products block */
.bsftcart-summary-row--total-line {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
}
.bsftcart-summary-row--total-line .bsftcart-summary-row__label {
	color: #0f172a;
	font-weight: 600;
}
.bsftcart-summary-row--total-line .bsftcart-summary-row__value {
	color: #0f172a;
	font-weight: 700;
}

/* Skeleton placeholder */
.bsftcart-summary-placeholder { padding: 12px 16px; }

.bsftcart-summary-skeleton {
	height: 14px;
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
	background-size: 200% 100%;
	border-radius: 4px;
	animation: bsftcart-shimmer 1.4s infinite;
}

@keyframes bsftcart-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Grand total row */
.bsftcart-summary-grand {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #faf5ff;
	border: 1.5px solid #e9d5ff;
	border-radius: 10px;
	margin-top: 4px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.bsftcart-summary-grand .bsftcart-grand-total-final { color: #a855f7; font-size: 20px; }

/* Large button */
.bsftcart-checkout .bsftcart-btn--lg,
.bsftcart-thankyou .bsftcart-btn--lg {
	padding: 13px 28px;
	font-size: 15px;
}

/* ── Order success screen ────────────────────────────────────────────────────── */

.bsftcart-success {
	text-align: center;
	padding: 56px 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.bsftcart-success__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.bsftcart-success__title {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
}

.bsftcart-success__text {
	font-size: 15px;
	color: #475569;
	margin-bottom: 28px;
}

.bsftcart-success__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Place order loading state */
#bsftcart-place-order.is-loading {
	opacity: 0.65;
	pointer-events: none;
	cursor: wait;
}

/* ── Thank-you page ─────────────────────────────────────────────────────────── */

.bsftcart-thankyou {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 0 48px;
}

/* Hero */
.bsftcart-ty-hero {
	text-align: center;
	padding: 48px 24px 36px;
}

.bsftcart-ty-hero__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.bsftcart-ty-hero__title {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
}

.bsftcart-ty-hero__text {
	font-size: 15px;
	color: #64748b;
	max-width: 460px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Stats row */
.bsftcart-ty-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.bsftcart-ty-stat {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bsftcart-ty-stat__label {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.bsftcart-ty-stat__value {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.bsftcart-ty-stat__value--accent { color: #a855f7; font-size: 17px; }

/* Status badge */
.bsftcart-ty-stat__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	background: #f1f5f9;
	color: #475569;
}

.bsftcart-ty-stat__badge--pending      { background: #fef9c3; color: #854d0e; }
.bsftcart-ty-stat__badge--processing   { background: #dbeafe; color: #1e40af; }
.bsftcart-ty-stat__badge--on-hold      { background: #ffedd5; color: #9a3412; }
.bsftcart-ty-stat__badge--completed    { background: #dcfce7; color: #166534; }
.bsftcart-ty-stat__badge--cancelled,
.bsftcart-ty-stat__badge--failed       { background: #fee2e2; color: #991b1b; }

/* Card */
.bsftcart-ty-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

/* Items table */
.bsftcart-ty-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.bsftcart-ty-table thead tr {
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
}

.bsftcart-ty-table thead th {
	padding: 10px 14px;
	font-size: 10px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	text-align: left;
}

.bsftcart-ty-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.bsftcart-ty-table tbody tr:last-child { border-bottom: none; }
.bsftcart-ty-table tbody td { padding: 12px 14px; vertical-align: middle; }

.bsftcart-thankyou a.bsftcart-ty-item-name {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	display: block;
}

.bsftcart-thankyou a.bsftcart-ty-item-name:hover {
	color: #a855f7;
	text-decoration: none;
}

.bsftcart-ty-item-sku {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	margin-top: 2px;
}

/* Totals in tfoot */
.bsftcart-ty-table tfoot tr { border-top: 1px solid #e2e8f0; }

.bsftcart-ty-total-row th,
.bsftcart-ty-total-row td {
	padding: 8px 14px;
	font-size: 13px;
	color: #475569;
}

.bsftcart-ty-grand-row th,
.bsftcart-ty-grand-row td {
	padding: 12px 14px;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	border-top: 2px solid #e2e8f0;
}

/* Details grid */
.bsftcart-ty-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

/* Info rows inside cards */
.bsftcart-ty-info-block { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.bsftcart-ty-info-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 1px solid #f8fafc;
}

.bsftcart-ty-info-row:last-child { border-bottom: none; }

.bsftcart-ty-info-row > span:first-child {
	color: #64748b;
	flex-shrink: 0;
	font-weight: 500;
}

.bsftcart-ty-info-row > span:last-child {
	color: #0f172a;
	font-weight: 600;
	text-align: right;
}

.bsftcart-ty-delivery-summary {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bsftcart-ty-delivery-summary__note {
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
	padding: 0 0 6px;
}

.bsftcart-ty-info-row--delivery-head > span:first-child {
	color: #0f172a;
	font-weight: 600;
}

.bsftcart-ty-info-row__value {
	color: #0f172a;
	font-weight: 600;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	min-width: 0;
}

.bsftcart-ty-payment-gateway {
	font-weight: 500;
	color: #475569;
	text-align: right;
}

.bsftcart-ty-payment-gateway :where(p, ul, ol) {
	margin: 0;
}

.bsftcart-ty-payment-gateway :where(p + p, p + ul, p + ol, ul + p, ol + p) {
	margin-top: 4px;
}

.bsftcart-ty-info-row--note > span:last-child {
	font-style: italic;
	font-weight: 400;
	color: #475569;
}

/* Footer actions */
.bsftcart-ty-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* ── Thank-you responsive ────────────────────────────────────────────────────── */

@media (max-width: 680px) {
	.bsftcart-ty-stats { grid-template-columns: 1fr 1fr; }
	.bsftcart-ty-grid  { grid-template-columns: 1fr; }
}

/* ── Toast notice ───────────────────────────────────────────────────────────── */

.bsftcart-notice {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(16px);
	background: #1e293b;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 12px 24px;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s;
	z-index: 9999;
	white-space: nowrap;
}

.bsftcart-notice.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
	.bsftcart-steps   { padding: 14px 10px; gap: 2px; }
	.bsftcart-step__circle { width: 28px; height: 28px; font-size: 11px; }
	.bsftcart-step__label  { font-size: 8px; }
	.bsftcart-step-line    { min-width: 8px; margin: 0 3px 20px; }

	.bsftcart-table thead  { display: none; }

	.bsftcart-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		padding: 12px;
		gap: 8px;
		border-bottom: 1px solid #e2e8f0;
	}

	.bsftcart-table td { padding: 0; border: none; }

	.bsftcart-col-img  { flex: 0 0 auto; }
	.bsftcart-col-name { flex: 1; min-width: 120px; }
	.bsftcart-col-price,
	.bsftcart-col-qty,
	.bsftcart-col-total { flex: 0 0 auto; }
	.bsftcart-col-del  { flex: 0 0 auto; margin-left: auto; }

	.bsftcart-cart-footer { flex-direction: column; align-items: stretch; }
	.bsftcart-totals       { min-width: unset; }
	.bsftcart-nav-row      { justify-content: space-between; }

	.bsftcart-fields-grid  { grid-template-columns: 1fr; }
}

/* ── Delivery methods (Cart deliveries) ───────────────────────────────────── */

.bsftcart-method-card__subtitle {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.35;
}

@media (max-width: 560px) {
	.bsftcart-method-card:has(.bsftcart-method-card__price.is-negotiated) .bsftcart-method-card__body {
		flex-wrap: wrap;
	}

	.bsftcart-method-card__price.is-negotiated {
		flex: 1 1 100%;
		max-width: none;
		margin-top: 8px;
		padding-left: 34px;
		text-align: left;
	}
}

#bsftcart-delivery-methods-wrap.is-loading {
	opacity: .55;
	pointer-events: none;
}

.bsftcart-pickup-details,
.bsftcart-pickup-panel {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.bsftcart-pickup-content__embed iframe {
	display: block;
	width: 100%;
	min-height: 260px;
	border: 0;
	border-radius: 8px;
}

.bsftcart-pickup-content__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.bsftcart-pickup-layout {
	width: 100%;
}

.bsftcart-pickup-points {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bsftcart-pickup-layout--stretch .bsftcart-pickup-points {
	min-height: 100%;
}

.bsftcart-pickup-layout--stretch .bsftcart-pickup-point {
	flex: 1 1 0;
	display: flex;
	align-items: center;
}

.bsftcart-pickup-layout--auto .bsftcart-pickup-points {
	align-self: flex-start;
}

.bsftcart-pickup-layout--auto .bsftcart-pickup-point {
	flex: 0 0 auto;
}

.bsftcart-pickup-point {
	display: block;
	width: 100%;
	padding: 10px 12px;
	text-align: left;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}

.bsftcart-pickup-point:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
}

.bsftcart-pickup-point.is-active {
	border-color: #a855f7;
	background: #faf5ff;
	color: #6b21a8;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.bsftcart-pickup-content {
	min-width: 0;
}

.bsftcart-pickup-point-panel {
	width: 100%;
}

.bsftaccahub-section--checkout-consents {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.bsftaccahub-field--consent.is-invalid .bsftaccahub-consent {
	outline: 2px solid #ef4444;
	outline-offset: 2px;
	border-radius: 8px;
}
