/* Estilos modernos de grises para checkout de Bre-b */

/* ====== NOTIFICACIÓN DE COPIA ====== */
.bre-b-copy-notification {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #2ecc71;
	color: white;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
	z-index: 9998;
	display: none;
	animation: bre-b-slideInUp 0.3s ease-in-out;
}

@keyframes bre-b-slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ====== POPUP CON CHECKBOXES ====== */
.bre-b-payment-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	animation: bre-b-fadeIn 0.2s ease-in-out;
}

@keyframes bre-b-fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.bre-b-payment-popup {
	background: white;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	animation: bre-b-popupSlide 0.3s ease-in-out;
	overflow: hidden;
}

@keyframes bre-b-popupSlide {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bre-b-popup-header {
	padding: 20px;
	background: #f8f9fa;
	border-bottom: 1px solid #e8eaed;
}

.bre-b-popup-header h2 {
	margin: 0;
	font-size: 18px;
	color: #1a1a1a;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.bre-b-popup-body {
	padding: 20px;
}

.bre-b-popup-text {
	margin: 0 0 20px 0;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}

/* ====== CHECKBOXES CUSTOMIZADOS ====== */
.bre-b-checkbox-group {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
}

.bre-b-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	width: 100%;
	padding: 12px;
	border: 1px solid #e8eaed;
	border-radius: 6px;
	transition: all 0.2s ease;
	background: #ffffff;
}

.bre-b-checkbox-label:hover {
	background: #f8f9fa;
	border-color: #d8dce1;
}

/* Estilo para checkbox de éxito (Ya pagué) */
.bre-b-checkbox-label.bre-b-checkbox-success {
	border: 1px solid #d4edda;
	background: #f0fdf4;
}

.bre-b-checkbox-label.bre-b-checkbox-success:hover {
	background: #e8fde8;
	border-color: #bbf7d0;
}

.bre-b-checkbox-label.bre-b-checkbox-success input[type="checkbox"]:checked + .bre-b-checkbox-custom {
	background: #22c55e;
	border-color: #22c55e;
}

/* Estilo para checkbox de pendiente (Aún no pagué) */
.bre-b-checkbox-label.bre-b-checkbox-pending {
	border: 1px solid #fee2e2;
	background: #fef2f2;
}

.bre-b-checkbox-label.bre-b-checkbox-pending:hover {
	background: #fde8e8;
	border-color: #fecaca;
}

.bre-b-checkbox-label.bre-b-checkbox-pending input[type="checkbox"]:checked + .bre-b-checkbox-custom {
	background: #ef4444;
	border-color: #ef4444;
}

.bre-b-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.bre-b-checkbox-label input[type="checkbox"]:checked + .bre-b-checkbox-custom {
	background: #2ecc71;
	border-color: #2ecc71;
}

.bre-b-checkbox-label input[type="checkbox"]:checked + .bre-b-checkbox-custom::after {
	content: '✓';
	position: absolute;
	top: -3px;
	left: 5px;
	color: white;
	font-weight: bold;
	font-size: 13px;
}

.bre-b-checkbox-custom {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #d8dce1;
	background: white;
	margin-right: 12px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.bre-b-checkbox-text {
	font-size: 13px;
	color: #333;
	font-weight: 500;
	line-height: 1.4;
}

/* ====== BOTONES DEL POPUP (Removidos - solo checkboxes) ====== */
.bre-b-popup-footer {
	display: none;
}

.bre-b-btn-confirm,
.bre-b-btn-cancel {
	display: none;
}

/* ====== BOTÓN WHATSAPP ====== */
#bre-b-whatsapp-btn,
a[id*="whatsapp"] {
	background: #25D366 !important;
	color: white !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2) !important;
}

#bre-b-whatsapp-btn:hover,
a[id*="whatsapp"]:hover {
	background: #1fa857 !important;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
	transform: translateY(-2px) !important;
}

#bre-b-whatsapp-btn:active,
a[id*="whatsapp"]:active {
	transform: translateY(0) !important;
	box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2) !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
	.bre-b-payment-popup {
		width: 95%;
		max-width: 100%;
	}

	.bre-b-popup-header {
		padding: 15px;
	}

	.bre-b-popup-header h2 {
		font-size: 16px;
	}

	.bre-b-popup-body {
		padding: 15px;
	}

	.bre-b-popup-footer {
		flex-direction: column-reverse;
	}

	.bre-b-btn-confirm,
	.bre-b-btn-cancel {
		width: 100%;
		min-width: auto;
	}

	.bre-b-copy-notification {
		bottom: 20px;
		right: 20px;
		font-size: 13px;
	}
}

/* ====== ICONO DE COPIAR LLAVE ====== */
.bre-b-copy-icon {
	transition: all 0.2s ease;
}

/* ====== CHECKOUT COMPACTO ====== */
#bre-b-info {
	padding: 14px !important;
	margin: 14px 0 !important;
	border-radius: 8px !important;
}

#bre-b-info > div:first-child {
	padding: 14px !important;
	margin-bottom: 12px !important;
	border-radius: 8px !important;
}

#bre-b-key-container {
	padding: 12px 44px 12px 12px !important;
	border-radius: 6px !important;
}

#bre-b-key-container p:first-child {
	font-size: 22px !important;
	line-height: 1.2 !important;
	letter-spacing: 0.12em !important;
}

#bre-b-key-container p:not(:first-child) {
	margin-top: 10px !important;
	padding-top: 10px !important;
	font-size: 12px !important;
	line-height: 1.35 !important;
}

#bre-b-key-container p:not(:first-child) strong {
	display: inline !important;
	font-size: 12px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
}

#bre-b-key-container p:not(:first-child) span {
	display: block !important;
	margin-top: 4px !important;
	font-size: 12px !important;
}

#bre-b-info .bre-b-legacy-instructions {
	display: none !important;
}

.bre-b-compact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 2px 0 12px 0;
}

.bre-b-toggle {
	-webkit-appearance: none !important;
	appearance: none !important;
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #2f5f4a !important;
	cursor: pointer !important;
	display: inline-flex !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	gap: 5px !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	min-height: 0 !important;
	padding: 3px 0 !important;
	text-decoration: none !important;
	text-transform: none !important;
	transition: color 0.2s ease !important;
}

.bre-b-toggle:hover,
.bre-b-toggle:focus {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #1d3f31 !important;
	outline: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
}

.bre-b-toggle:active {
	transform: none !important;
}

.bre-b-toggle-icon {
	align-items: center;
	background: rgba(47, 95, 74, 0.08);
	border: 0;
	border-radius: 5px;
	color: #2f5f4a;
	display: inline-flex;
	height: 20px;
	justify-content: center;
	line-height: 1;
	width: 20px;
}

.bre-b-toggle-icon svg {
	display: block;
	fill: currentColor;
	height: 14px;
	width: 14px;
}

.bre-b-toggle-chevron {
	color: #6b7f75;
	display: inline-flex;
	height: 14px;
	line-height: 1;
	transition: transform 0.18s ease;
	width: 14px;
}

.bre-b-toggle-chevron svg {
	display: block;
	fill: currentColor;
	height: 14px;
	width: 14px;
}

.bre-b-toggle[aria-expanded="true"] .bre-b-toggle-chevron {
	transform: rotate(180deg);
}

.bre-b-collapsible[hidden] {
	display: none !important;
}

.bre-b-collapsible {
	background: #fff;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	margin: 0 0 12px 0;
	padding: 14px;
}

.bre-b-qr-card {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 100%;
	text-align: center;
	width: 100%;
}

.bre-b-qr-card img {
	display: block;
	width: min(260px, 100%);
	height: auto;
	margin: 0 auto 10px !important;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	padding: 8px;
	background: #fff;
}

.bre-b-qr-card p {
	margin: 0 auto !important;
	max-width: 320px;
	color: #666;
	font-size: 12px;
	line-height: 1.45;
	text-align: center !important;
}

.bre-b-steps-compact {
	display: grid;
	gap: 10px;
}

.bre-b-step-compact {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.bre-b-step-compact span {
	align-items: center;
	background: #2ecc71;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	height: 26px;
	justify-content: center;
	width: 26px;
}

.bre-b-step-compact:nth-child(2) span {
	background: #3498db;
}

.bre-b-step-compact:nth-child(3) span {
	background: #f39c12;
}

.bre-b-step-compact p {
	margin: 0;
	color: #777;
	font-size: 12px;
	line-height: 1.45;
}

.bre-b-step-compact strong {
	color: #333;
	font-size: 13px;
}

.bre-b-copy-icon:hover {
	background: #2ecc71;
	border-color: #2ecc71;
	box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.bre-b-copy-icon:hover svg {
	stroke: white;
}

.bre-b-copy-icon:active {
	transform: scale(0.95);
}

/* Media queries para móvil */
@media (max-width: 768px) {
	#bre-b-info {
		padding: 15px;
		margin: 15px 0;
	}
	
	#bre-b-info > div {
		padding: 15px;
		margin-bottom: 15px;
	}
	
	.bre-b-copy-icon {
		width: 32px;
		height: 32px;
	}
	
	.bre-b-copy-icon svg {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 480px) {
	#bre-b-info {
		padding: 12px;
		margin: 12px 0;
	}
	
	#bre-b-info > div {
		padding: 12px;
		margin-bottom: 12px;
	}
	
	#bre-b-key-container {
		padding: 12px !important;
		padding-right: 40px !important;
	}
	
	#bre-b-key-container p {
		font-size: 20px !important;
	}
	
	.bre-b-copy-icon {
		width: 34px;
		height: 34px;
		top: 10px;
		right: 10px;
	}
	
	.bre-b-copy-icon svg {
		width: 18px;
		height: 18px;
	}
}

/* ====== ESTILOS DE COMPATIBILIDAD (v1.2.7) ====== */
/* Asegurar que el popup siempre sea visible por encima de todo */
.bre-b-payment-popup-overlay {
	z-index: 999999 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	display: flex !important;
}

.bre-b-payment-popup {
	position: relative !important;
	z-index: 1000000 !important;
	margin: auto !important;
}

/* Asegurar que los checkboxes sean clickeables */
.bre-b-checkbox-label {
	pointer-events: auto !important;
	cursor: pointer !important;
}

.bre-b-checkbox-label input[type="checkbox"] {
	cursor: pointer !important;
}
