:root {
	--bc-bg: #111212;
	--bc-panel: #1a1b1b;
	--bc-panel-deep: #0d0e0e;
	--bc-line: #343636;
	--bc-line-strong: #555858;
	--bc-text: #f8f7f4;
	--bc-muted: #a9adb2;
	--bc-accent: #dc1737;
	--bc-accent-dark: #b90f2b;
	--bc-info: #28a8e0;
	--bc-success: #20a66a;
	--bc-radius: 6px;
}

.bikecity-checkout-active {
	background: var(--bc-bg);
}

.bikecity-checkout-active .woo-page-header,
.bikecity-checkout-active .page-top,
.bikecity-checkout-active .page-title-wrapper {
	display: none;
}

.bikecity-checkout-active #main,
.bikecity-checkout-active .main-content,
.bikecity-checkout-active .woocommerce,
.bikecity-checkout-active .container {
	min-width: 0;
}

.bikecity-checkout-active .woocommerce {
	max-width: 1500px;
	margin-right: auto;
	margin-left: auto;
}

.bikecity-checkout-active .woocommerce-notices-wrapper,
.bikecity-checkout-active .woocommerce-form-login,
.bikecity-checkout-active .checkout_coupon {
	max-width: 1360px;
	margin-right: auto;
	margin-left: auto;
}

.bc-checkout,
.bc-checkout * {
	box-sizing: border-box;
}

.bc-checkout {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px 64px;
	color: var(--bc-text);
	font-family: inherit;
	letter-spacing: 0;
}

.bc-checkout button,
.bc-checkout input,
.bc-checkout select,
.bc-checkout textarea {
	font: inherit;
	letter-spacing: 0;
}

/*
 * Compatibilidad con el "CSS adicional" del sitio, que trae reglas globales
 * (button { width: 70px; border-radius: 50px; fondo rojo; mayusculas; margin-top: 10px }
 * y label { margin-bottom: -2.5rem }). Se neutralizan solo dentro del checkout;
 * los botones de las pasarelas (#payment) se dejan intactos.
 */
.bc-checkout button:not(:where(#payment *)) {
	width: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-transform: none;
}

.bc-checkout label {
	margin-bottom: 0;
}

.bc-checkout .select2-container--default .select2-selection--single {
	border-radius: 5px !important;
}

.bc-checkout__assurance {
	display: flex;
	justify-content: center;
	gap: 32px;
	min-height: 38px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--bc-line);
	color: var(--bc-muted);
	font-size: 13px;
}

.bc-checkout__assurance span + span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 16px 2px 0;
	border-radius: 50%;
	background: var(--bc-accent);
}

.bc-progress {
	display: grid;
	grid-template-columns: repeat(5, minmax(88px, 1fr));
	margin: 34px auto 38px;
	max-width: 1240px;
}

.bc-checkout .bc-progress__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #75797d;
	cursor: default;
}

.bc-checkout .bc-progress__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(50% + 30px);
	width: calc(100% - 60px);
	height: 2px;
	background: var(--bc-line);
}

.bc-progress__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 2px solid var(--bc-line);
	border-radius: 50%;
	background: var(--bc-bg);
	font-weight: 700;
}

.bc-progress__label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.bc-checkout .bc-progress__step.is-active,
.bc-checkout .bc-progress__step.is-complete {
	color: var(--bc-text);
}

.bc-checkout .bc-progress__step.is-active .bc-progress__dot,
.bc-checkout .bc-progress__step.is-complete .bc-progress__dot {
	border-color: var(--bc-accent);
	background: var(--bc-accent);
}

.bc-checkout .bc-progress__step.is-complete,
.bc-checkout .bc-progress__step.is-available {
	cursor: pointer;
}

.bc-checkout .bc-progress__step.is-complete:not(:last-child)::after {
	background: var(--bc-accent);
}

.bc-checkout__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
	align-items: start;
	gap: 34px;
}

.bc-checkout__main {
	min-width: 0;
}

.bc-stage,
.bc-summary {
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: var(--bc-panel);
}

.bc-stage {
	padding: 34px;
}

.bc-stage[hidden],
.bc-fiscal[hidden],
.bc-fiscal__stage[hidden] {
	display: none !important;
}

.bc-checkout .bc-stage .bc-stage__header {
	margin: 0 0 28px;
	padding: 0;
}

.bc-stage__eyebrow {
	margin: 0 0 8px !important;
	color: var(--bc-accent) !important;
	font-size: 12px !important;
	font-weight: 800;
	text-transform: uppercase;
}

.bc-checkout .bc-stage__header h1,
.bc-summary h2 {
	margin: 0;
	color: var(--bc-text);
	font-weight: 750;
	letter-spacing: 0;
}

.bc-checkout .bc-stage__header h1 {
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
}

.bc-checkout .bc-stage__header > p:last-child,
.bc-fiscal__stage > p {
	margin: 10px 0 0;
	color: var(--bc-muted);
	font-size: 15px;
	line-height: 1.55;
}

.bc-section-block + .bc-section-block {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--bc-line);
}

.bc-section-block > h2,
.bc-fiscal__stage > h2 {
	margin: 0 0 18px;
	color: var(--bc-text);
	font-size: 20px;
	line-height: 1.3;
}

.bc-cart-list {
	display: grid;
	gap: 12px;
}

.bc-cart-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 16px;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: var(--bc-panel-deep);
}

.bc-cart-item__image {
	display: grid;
	place-items: center;
	width: 92px;
	height: 76px;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
}

.bc-cart-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bc-cart-item__details h2 {
	margin: 0 0 6px;
	color: var(--bc-text);
	font-size: 16px;
	line-height: 1.35;
}

.bc-cart-item__details p,
.bc-cart-item__details .variation {
	margin: 0;
	color: var(--bc-muted);
	font-size: 13px;
}

.bc-cart-item__price {
	white-space: nowrap;
	font-size: 16px;
}

/* Paso 1: editar el carrito sin salir del checkout */
.bc-cart-item__details h2 a {
	color: inherit;
	text-decoration: none;
}

.bc-cart-item__details h2 a:hover {
	color: #fff;
	text-decoration: underline;
}

.bc-cart-item__details .bc-cart-item__unit {
	margin: 2px 0 12px;
}

.bc-cart-item__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.bc-qty {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--bc-line);
	border-radius: 5px;
	background: #101111;
}

.bc-checkout .bc-qty .bc-qty__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--bc-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.bc-checkout .bc-qty .bc-qty__btn:hover:not(:disabled) {
	background: #1f2121;
}

.bc-checkout .bc-qty .bc-qty__btn:disabled {
	opacity: .35;
	cursor: default;
}

.bc-checkout .bc-qty .bc-qty__input {
	width: 48px;
	height: 38px;
	min-height: 38px;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--bc-line);
	border-left: 1px solid var(--bc-line);
	border-radius: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.bc-qty__input::-webkit-outer-spin-button,
.bc-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bc-checkout .bc-cart-item__remove {
	padding: 4px 0;
	color: var(--bc-muted);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.bc-checkout .bc-cart-item__remove:hover {
	color: #ff7a8c;
}

.bc-cart-item__qty-fixed {
	color: var(--bc-muted);
	font-size: 13px;
}

.bc-cart-list.is-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity .15s;
}

.bc-cart-error {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-left: 3px solid var(--bc-accent);
	border-radius: 4px;
	background: #241517;
	color: var(--bc-text);
	font-size: 14px;
}

.bc-stage__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
}

.bc-checkout .bc-button,
.bikecity-checkout-active .bc-checkout .button,
.bikecity-checkout-active .bc-checkout button.button,
.bikecity-checkout-active .bc-checkout #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 4px;
	box-shadow: none;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.bc-checkout .bc-button--primary,
.bikecity-checkout-active .bc-checkout #place_order {
	min-width: 240px;
	background: var(--bc-accent);
	color: #fff;
}

.bc-checkout .bc-button--primary:hover,
.bc-checkout .bc-button--primary:focus-visible,
.bikecity-checkout-active .bc-checkout #place_order:hover,
.bikecity-checkout-active .bc-checkout #place_order:focus-visible {
	background: var(--bc-accent-dark);
	color: #fff;
}

.bc-checkout .bc-button--quiet {
	padding-right: 4px;
	padding-left: 4px;
	background: transparent;
	color: #c8cbd0;
	text-transform: none;
}

.bc-checkout .bc-button--quiet:hover,
.bc-checkout .bc-button--quiet:focus-visible {
	color: #fff;
}

.bc-shipping-methods {
	display: grid;
	gap: 12px;
}

.bc-shipping-methods__empty {
	margin: 0;
	padding: 18px;
	border: 1px dashed var(--bc-line-strong);
	border-radius: var(--bc-radius);
	color: var(--bc-muted);
}

.bc-checkout .bc-shipping-card {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 78px;
	padding: 17px 20px;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: var(--bc-panel-deep);
	color: var(--bc-text);
	text-align: left;
	cursor: pointer;
}

.bc-checkout .bc-shipping-card:hover {
	border-color: var(--bc-line-strong);
}

.bc-checkout .bc-shipping-card.is-selected {
	border-color: var(--bc-accent);
	background: #281416;
}

.bc-shipping-card__radio {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 2px solid #666a6d;
	border-radius: 50%;
}

.bc-checkout .bc-shipping-card.is-selected .bc-shipping-card__radio {
	border-color: var(--bc-accent);
}

.bc-checkout .bc-shipping-card.is-selected .bc-shipping-card__radio::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bc-accent);
}

.bc-shipping-card__name {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.bc-shipping-card__detail {
	display: block;
	margin-top: 4px;
	color: var(--bc-muted);
	font-size: 12px;
}

.bc-shipping-card__price {
	white-space: nowrap;
	font-weight: 700;
}

/* Paso Envio: secciones propias ("Tus datos", "A donde lo enviamos", "Quien recibe") */
.bc-section-block__hint {
	margin: -10px 0 18px;
	color: var(--bc-muted);
	font-size: 14px;
}

.bc-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.bc-field-grid:empty {
	display: none;
}

.bc-checkout .bc-field-grid .form-row {
	grid-column: auto;
}

.bc-checkout .bc-field-grid #billing_address_1_field,
.bc-checkout .bc-field-grid #order_comments_field {
	grid-column: 1 / -1;
}

.bc-checkout #billing_country_field,
.bc-checkout [data-bc-native-fields] {
	display: none !important;
}

.bc-checkout.is-local-pickup [data-bc-address-block] {
	display: none;
}

.bc-receiver .bc-field-grid {
	margin-top: 18px;
}

.bc-receiver__fields[hidden] {
	display: none !important;
}

.bc-segmented {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(120px, 1fr);
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: var(--bc-panel-deep);
}

.bc-checkout .bc-segmented__option {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.bc-segmented__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bc-segmented__option span {
	display: block;
	padding: 11px 18px;
	border-radius: 4px;
	color: var(--bc-muted);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.bc-segmented__option.is-selected span {
	background: var(--bc-accent);
	color: #fff;
}

.bc-segmented__option input:focus-visible + span {
	outline: 2px solid var(--bc-info);
	outline-offset: 2px;
}

/* Errores en contexto */
.bc-checkout .bc-invalid .input-text,
.bc-checkout .bc-invalid select,
.bc-checkout .bc-invalid textarea,
.bc-checkout .bc-invalid .select2-selection--single {
	border-color: var(--bc-accent) !important;
}

.bc-field-error {
	display: block;
	margin-top: 6px;
	color: #ff7a8c;
	font-size: 12px;
	font-weight: 600;
}

/* Factura: obligatorios cuando se pide factura (se valida en el navegador y en el servidor) */
.bc-fiscal-fields .bc-fiscal-field label .optional {
	display: none;
}

.bc-fiscal-fields .bc-fiscal-field > label::after {
	content: " *";
	color: var(--bc-accent);
}

.bc-native-customer-fields .woocommerce-billing-fields > h3,
.bc-native-customer-fields .woocommerce-shipping-fields > h3 {
	display: none;
}

.bc-native-customer-fields .bc-fiscal-field {
	display: none !important;
}

.bc-checkout .col2-set {
	display: block;
	width: 100%;
}

.bc-checkout .col2-set::before,
.bc-checkout .col2-set::after {
	display: none;
}

.bc-checkout .col2-set .col-1,
.bc-checkout .col2-set .col-2 {
	float: none;
	width: 100%;
}

.bc-checkout .woocommerce-billing-fields__field-wrapper,
.bc-checkout .woocommerce-shipping-fields__field-wrapper,
.bc-fiscal-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.bc-checkout .form-row {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.bc-checkout .form-row-wide,
.bc-checkout #billing_address_1_field,
.bc-checkout #shipping_address_1_field,
.bc-fiscal-fields #billing_fiscal_name_field,
.bc-fiscal-fields #billing_invoice_email_field {
	grid-column: 1 / -1;
}

.bc-checkout .form-row label {
	display: block;
	margin: 0 0 8px;
	color: #c3c7cb;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
	text-transform: uppercase;
}

.bc-checkout .form-row label .required {
	border: 0;
	color: var(--bc-accent);
	text-decoration: none;
	cursor: default;
}

.bc-checkout .form-row label.screen-reader-text {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0 0 8px;
	clip: auto;
	clip-path: none;
	overflow: visible;
}

.bc-checkout .input-text,
.bc-checkout input[type="text"],
.bc-checkout input[type="email"],
.bc-checkout input[type="tel"],
.bc-checkout input[type="number"],
.bc-checkout select,
.bc-checkout textarea,
.bc-checkout .select2-container .select2-selection--single {
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border: 1px solid var(--bc-line);
	border-radius: 5px;
	outline: 0;
	background: #101111;
	box-shadow: none;
	color: var(--bc-text);
	font-size: 16px;
}

.bc-checkout textarea {
	min-height: 100px;
	resize: vertical;
}

.bc-checkout .input-text:focus,
.bc-checkout input:focus,
.bc-checkout select:focus,
.bc-checkout textarea:focus,
.bc-checkout .select2-container--focus .select2-selection--single {
	border-color: #85898d;
	box-shadow: 0 0 0 2px rgb(220 23 55 / 18%);
}

.bc-checkout .select2-container .select2-selection--single {
	padding: 0;
}

.bc-checkout .select2-container .select2-selection__rendered {
	padding: 13px 44px 13px 16px;
	color: var(--bc-text);
	line-height: 24px;
}

.bc-checkout .select2-container .select2-selection__arrow {
	top: 13px;
	right: 12px;
}

/*
 * Selectores con buscador (regimen fiscal, uso de CFDI). select2 se inicializa
 * con el paso oculto y queda con ancho "auto": se fuerza al ancho del campo.
 * La lista se monta al final del <body>, por eso se apunta desde body.
 */
.bc-checkout .select2-container {
	width: 100% !important;
	max-width: 100%;
}

.bc-checkout .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: 52px;
}

.bc-checkout .select2-container .select2-selection__rendered {
	overflow: hidden;
	width: 100%;
	padding-top: 0;
	padding-bottom: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 500;
	text-transform: none;
}

.bc-checkout .select2-container .select2-selection__placeholder {
	color: #7d8186;
}

.bc-checkout .select2-container .select2-selection__arrow {
	top: 0;
	right: 14px;
	height: 100%;
}

.bc-checkout .select2-container .select2-selection__arrow b {
	border-color: #a9adb2 transparent transparent;
}

.bc-checkout .select2-container--open .select2-selection__arrow b {
	border-color: transparent transparent #a9adb2;
}

.bc-checkout .select2-container--open .select2-selection--single {
	border-color: #85898d;
}

body.bikecity-checkout-active .select2-container--open .select2-dropdown {
	overflow: hidden;
	border: 1px solid var(--bc-line-strong);
	border-radius: 5px;
	background: #101111;
	box-shadow: 0 14px 34px rgb(0 0 0 / 45%);
	color: var(--bc-text);
	font-family: inherit;
	text-transform: none;
}

body.bikecity-checkout-active .select2-container--open .select2-dropdown--below {
	margin-top: 4px;
}

body.bikecity-checkout-active .select2-container--open .select2-dropdown--above {
	margin-top: -4px;
}

body.bikecity-checkout-active .select2-search--dropdown {
	padding: 10px;
	border-bottom: 1px solid var(--bc-line);
}

body.bikecity-checkout-active .select2-container--default .select2-search--dropdown .select2-search__field {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--bc-line);
	border-radius: 4px !important;
	outline: 0;
	background: #0d0e0e;
	color: var(--bc-text) !important;
	font-size: 16px;
}

body.bikecity-checkout-active .select2-container--default .select2-search--dropdown .select2-search__field:focus {
	border-color: #85898d;
}

body.bikecity-checkout-active .select2-container--default .select2-results > .select2-results__options {
	max-height: min(300px, 50vh);
	padding: 4px 0;
	scrollbar-color: var(--bc-line-strong) transparent;
}

body.bikecity-checkout-active .select2-container--default .select2-results__option {
	padding: 11px 14px;
	background: transparent;
	color: #d7d9dc;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: none;
}

body.bikecity-checkout-active .select2-container--default .select2-results__option--highlighted,
body.bikecity-checkout-active .select2-container--default .select2-results__option--highlighted[aria-selected],
body.bikecity-checkout-active .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: #281416;
	color: #fff;
}

body.bikecity-checkout-active .select2-container--default .select2-results__option[aria-selected="true"],
body.bikecity-checkout-active .select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--bc-accent);
	color: #fff;
}

body.bikecity-checkout-active .select2-container--default .select2-results__message {
	color: var(--bc-muted);
}

/* Selector nativo (Estado): misma apariencia que los demas campos */
.bc-checkout select:not(.select2-hidden-accessible):not(:where(#payment *)) {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	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='none' stroke='%23a9adb2' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
}

.bc-checkout select:not(.select2-hidden-accessible):not(:where(#payment *)) option {
	background: #101111;
	color: var(--bc-text);
}

.bc-checkout .woocommerce-additional-fields {
	margin-top: 20px;
}

.bc-checkout.is-local-pickup .woocommerce-shipping-fields {
	display: none;
}

.bc-invoice-choice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.bc-checkout .bc-choice-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-height: 150px;
	padding: 24px;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: var(--bc-panel-deep);
	color: var(--bc-text);
	text-align: left;
	cursor: pointer;
}

.bc-checkout .bc-choice-card:hover,
.bc-checkout .bc-choice-card:focus-visible {
	border-color: var(--bc-line-strong);
}

.bc-checkout .bc-choice-card.is-selected {
	border-color: var(--bc-accent);
	background: #281416;
}

.bc-choice-card__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 20px;
	border: 1px solid var(--bc-line-strong);
	border-radius: 4px;
	color: #d7d9dc;
	font-size: 18px;
	line-height: 32px;
}

.bc-checkout .bc-choice-card.is-selected .bc-choice-card__icon {
	border-color: var(--bc-accent);
	background: var(--bc-accent);
	color: #fff;
}

.bc-checkout .bc-choice-card strong {
	font-size: 17px;
}

.bc-checkout .bc-choice-card small {
	margin-top: 6px;
	color: var(--bc-muted);
	font-size: 13px;
}

.bc-fiscal {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--bc-line);
}

.bc-fiscal__progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 30px;
}

.bc-checkout .bc-fiscal__progress button {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-width: 0;
	padding: 10px 0 12px;
	border: 0;
	border-top: 3px solid var(--bc-line);
	background: transparent;
	color: var(--bc-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.bc-checkout .bc-fiscal__progress button span {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--bc-line-strong);
	border-radius: 50%;
}

.bc-checkout .bc-fiscal__progress button.is-active,
.bc-checkout .bc-fiscal__progress button.is-complete {
	border-top-color: var(--bc-accent);
	color: var(--bc-text);
}

.bc-checkout .bc-fiscal__progress button.is-active span,
.bc-checkout .bc-fiscal__progress button.is-complete span {
	border-color: var(--bc-accent);
	background: var(--bc-accent);
	color: #fff;
}

.bc-fiscal__stage > p {
	margin-bottom: 20px;
}

.bc-fiscal-fields .bc-fiscal-field {
	display: block !important;
}

.bc-fiscal__note {
	margin-top: 20px !important;
	padding: 14px 16px;
	border-left: 3px solid var(--bc-info);
	background: #10212a;
}

.bc-summary {
	position: sticky;
	top: 24px;
	padding: 28px;
	background: var(--bc-panel-deep);
}

.bc-summary h2 {
	margin-bottom: 22px;
	font-size: 20px;
}

.bc-summary .shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	color: var(--bc-text);
}

.bc-summary .shop_table th,
.bc-summary .shop_table td {
	padding: 15px 0;
	border: 0;
	border-bottom: 1px solid var(--bc-line);
	background: transparent;
	color: var(--bc-text);
	font-size: 14px;
}

.bc-summary .shop_table th {
	font-weight: 500;
	text-align: left;
}

.bc-summary .shop_table td {
	font-weight: 650;
	text-align: right;
}

.bc-summary .shop_table thead {
	display: none;
}

.bc-summary .shop_table .order-total th,
.bc-summary .shop_table .order-total td {
	padding-top: 22px;
	border-bottom: 0;
	font-size: 19px;
	font-weight: 800;
}

.bc-summary .shop_table .order-total td {
	font-size: 27px;
}

.bc-summary .product-name {
	padding-right: 14px !important;
	text-align: left !important;
}

.bc-summary.bc-has-shipping-mirror .woocommerce-shipping-totals,
.bc-summary.bc-has-shipping-mirror .shipping {
	display: none;
}

.bc-summary #payment {
	display: none !important;
}

.bc-summary__facts {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.bc-summary__facts p {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 13px 15px;
	border: 1px solid var(--bc-line);
	border-radius: 5px;
	background: var(--bc-panel);
}

.bc-summary__facts span {
	color: #8c9094;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.bc-summary__facts strong {
	font-size: 13px;
}

.bc-summary__secure {
	margin: 20px 0 0;
	color: var(--bc-muted);
	font-size: 12px;
	text-align: center;
}

.bc-payment-shell #payment {
	border: 0;
	border-radius: var(--bc-radius);
	background: var(--bc-panel-deep);
}

.bc-payment-shell #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
}

.bc-payment-shell #payment ul.payment_methods > li {
	margin: 0 0 12px;
	padding: 18px;
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	background: #131414;
}

.bc-payment-shell #payment ul.payment_methods > li:has(input:checked) {
	border-color: var(--bc-info);
}

.bc-payment-shell #payment ul.payment_methods label {
	color: var(--bc-text);
	font-size: 15px;
	font-weight: 700;
}

.bc-payment-shell #payment ul.payment_methods label img {
	max-height: 30px;
	width: auto;
	margin-left: 10px;
	vertical-align: middle;
}

.bc-payment-shell #payment div.payment_box {
	margin: 14px 0 0;
	padding: 16px;
	border: 0;
	border-radius: 4px;
	background: #f2f7f9;
	color: #22282c;
}

.bc-payment-shell #payment div.payment_box::before {
	display: none;
}

.bc-payment-shell #payment .place-order {
	margin: 8px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--bc-line);
}

.bc-payment-shell #place_order {
	float: none;
	width: 100%;
}

.bc-payment-back {
	margin-top: 10px;
}

.bc-checkout .woocommerce-privacy-policy-text,
.bc-checkout .woocommerce-terms-and-conditions-wrapper {
	color: var(--bc-muted);
	font-size: 12px;
	line-height: 1.55;
}

.bc-checkout .woocommerce-error,
.bc-checkout .woocommerce-info,
.bc-checkout .woocommerce-message {
	margin: 0 0 20px;
	padding: 15px 18px;
	border: 1px solid var(--bc-line);
	border-left: 3px solid var(--bc-accent);
	border-radius: 4px;
	background: #241517;
	color: var(--bc-text);
}

@media (max-width: 1080px) {
	.bc-checkout {
		padding-right: 24px;
		padding-left: 24px;
	}

	.bc-checkout__layout {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 24px;
	}

	.bc-stage {
		padding: 28px;
	}
}

@media (max-width: 900px) {
	.bc-checkout__layout {
		grid-template-columns: 1fr;
	}

	.bc-summary {
		position: static;
		grid-row: 2;
	}

	.bc-progress {
		margin-top: 24px;
		margin-bottom: 28px;
	}
}

@media (max-width: 640px) {
	.bc-checkout {
		padding: 0 0 36px;
	}

	.bc-checkout__assurance {
		justify-content: flex-start;
		gap: 18px;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.bc-checkout__assurance span + span::before {
		margin-right: 10px;
	}

	.bc-progress {
		grid-template-columns: repeat(5, 1fr);
		margin: 20px 0 24px;
	}

	.bc-checkout .bc-progress__step {
		gap: 6px;
	}

	.bc-checkout .bc-progress__step:not(:last-child)::after {
		top: 16px;
		left: calc(50% + 20px);
		width: calc(100% - 40px);
	}

	.bc-progress__dot {
		width: 34px;
		height: 34px;
		font-size: 12px;
	}

	.bc-progress__label {
		font-size: 9px;
	}

	.bc-stage,
	.bc-summary {
		padding: 22px 18px;
	}

	.bc-checkout .bc-stage .bc-stage__header {
		margin-bottom: 22px;
	}

	.bc-checkout .bc-stage__header h1 {
		font-size: 27px;
	}

	.bc-checkout .bc-stage__header > p:last-child {
		font-size: 14px;
	}

	.bc-cart-item {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 14px;
	}

	.bc-cart-item__image {
		width: 72px;
		height: 68px;
	}

	.bc-cart-item__price {
		grid-column: 2;
	}

	.bc-field-grid,
	.bc-invoice-choice,
	.bc-checkout .woocommerce-billing-fields__field-wrapper,
	.bc-checkout .woocommerce-shipping-fields__field-wrapper,
	.bc-fiscal-fields {
		grid-template-columns: 1fr;
	}

	.bc-checkout .bc-choice-card {
		min-height: 116px;
		padding: 18px;
	}

	.bc-choice-card__icon {
		margin-bottom: 12px;
	}

	.bc-fiscal__progress {
		gap: 8px;
	}

	.bc-checkout .bc-fiscal__progress button {
		flex-direction: column;
		align-items: flex-start;
		font-size: 10px;
	}

	.bc-stage__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.bc-checkout .bc-button,
	.bc-checkout .bc-button--primary {
		width: 100%;
		min-width: 0;
		min-height: 52px;
	}

	.bc-checkout .bc-shipping-card {
		grid-template-columns: 22px minmax(0, 1fr);
		padding: 16px;
	}

	.bc-shipping-card__price {
		grid-column: 2;
	}

	.bc-summary .shop_table .order-total td {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.bc-stage.is-active {
		animation: bc-stage-in 180ms ease-out;
	}

	@keyframes bc-stage-in {
		from {
			opacity: 0;
			transform: translateY(5px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

@media (max-width: 640px) {
	.bc-segmented {
		display: grid;
	}
}

/*
 * Paneles del tema (menu movil #side-nav-panel y mini-carrito lateral) que Porto
 * esconde solo desplazandolos fuera de pantalla con una transicion. Si el
 * desplazamiento se reinicia un instante, se ven "deslizandose" en los costados.
 * En el checkout quedan invisibles mientras esten cerrados.
 */
body.bikecity-checkout-active #side-nav-panel {
	visibility: hidden;
}

html.panel-opened body.bikecity-checkout-active #side-nav-panel {
	visibility: visible;
}

body.bikecity-checkout-active .minicart-offcanvas:not(.minicart-opened) .cart-popup {
	visibility: hidden;
}

/*
 * Avisos arriba del checkout (p. ej. "Agregaste X a tu carrito"): franja discreta
 * alineada con el asistente, en lugar del boton rojo de Porto.
 */
.bikecity-checkout-active .woocommerce-notices-wrapper,
.bikecity-checkout-active .woocommerce-form-coupon-toggle {
	max-width: 1440px;
	margin-right: auto;
	margin-left: auto;
	padding: 0 32px;
}

.bikecity-checkout-active .woocommerce-notices-wrapper:empty {
	display: none;
}

.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 16px 0 8px;
	padding: 12px 16px 12px 48px;
	border: 1px solid var(--bc-line);
	border-left: 3px solid var(--bc-success);
	border-radius: 6px;
	background: #111b16;
	color: var(--bc-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: none;
}

.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message::before {
	content: "\2713" !important;
	position: absolute !important;
	top: 50% !important;
	left: 14px !important;
	display: grid !important;
	place-items: center;
	width: 22px !important;
	height: 22px !important;
	margin: -11px 0 0 !important;
	border-radius: 50%;
	background: var(--bc-success) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 22px !important;
}

.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message .bc-added-text {
	flex: 1 1 auto;
}

.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message a.wc-forward {
	order: 2;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #c8cbd0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: underline !important;
	text-transform: none !important;
}

.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message a.wc-forward:hover {
	color: #fff !important;
}

@media (max-width: 640px) {
	.bikecity-checkout-active .woocommerce-notices-wrapper,
	.bikecity-checkout-active .woocommerce-form-coupon-toggle {
		padding: 0;
	}

	.bikecity-checkout-active .woocommerce-notices-wrapper .woocommerce-message a.wc-forward {
		margin-left: 0 !important;
	}
}

/*
 * Stripe (Payment Element) se dibuja en oscuro: su caja va oscura. La caja clara
 * se queda solo para el formulario blanco de Mercado Pago.
 */
.bc-payment-shell #payment .payment_method_stripe div.payment_box {
	padding: 16px;
	border: 1px solid var(--bc-line);
	background: #101111;
	color: var(--bc-text);
}

.bc-payment-shell #payment .payment_method_stripe div.payment_box p,
.bc-payment-shell #payment .payment_method_stripe div.payment_box label {
	color: var(--bc-muted);
}
