/**
 * Zgr Woo Conversiones - WhatsApp Cart Button Styles (Fase 1.2)
 */

.zgr-wwa-whatsapp-container {
	margin: 20px 0;
	text-align: center;
	width: 100%;
}

.zgr-wwa-whatsapp-container--product {
	margin: 15px 0 0 0;
}

/* Base button styles applied directly to the class */
.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button,
.zgr-wwa-btn-secondary-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	width: 100%;
	box-sizing: border-box;
	border: none;
	cursor: pointer;
	letter-spacing: 0.5px;
	/* Rounded borders as required */
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Specific main button styles */
.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button {
	background-color: #25D366;
	color: #ffffff;
	padding: 15px 30px;
	font-size: 14.5px;
	box-shadow: 0 4px 6px rgba(37, 211, 102, 0.15);
	text-decoration: none;
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button:hover {
	background-color: #128C7E;
	color: #ffffff;
	box-shadow: 0 6px 12px rgba(18, 140, 126, 0.25);
	transform: translateY(-1px);
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button:active {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(18, 140, 126, 0.15);
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button svg {
	transition: transform 0.3s ease;
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button:hover svg {
	transform: scale(1.1) rotate(5deg);
}

/* Modifier for single product page buttons */
.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button--product {
	padding: 12px 24px;
	font-size: 13.5px;
}

/* Secondary login button styles */
.zgr-wwa-btn-secondary-login {
	background-color: #0f172a;
	color: #ffffff;
	padding: 12px 24px;
	margin-top: 10px;
	font-size: 13px;
	box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
	text-decoration: none;
}

.zgr-wwa-btn-secondary-login:hover {
	background-color: #1e293b;
	color: #ffffff;
	transform: translateY(-1px);
}

/* Helper Info alert on product page (Guests with empty cart) */
.zgr-wwa-product-helper-box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	background-color: #fffbeb;
	border: 1px dashed #d97706;
	border-radius: 8px;
	color: #92400e;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	margin-top: 15px;
	box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05);
}

.zgr-wwa-product-helper-box svg {
	flex-shrink: 0;
}

/* Notice text styles */
.zgr-wwa-nota-checkout-helper {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #eb7c31;
	text-align: center;
	line-height: 1.4;
}

.zgr-wwa-nota-whatsapp {
	margin-top: 12px;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
	text-align: center;
	max-width: 100%;
}

/* Modal styles (Overlay and dialog) */
body.zgr-wwa-modal-open {
	overflow: hidden;
}

.zgr-wwa-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.zgr-wwa-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.zgr-wwa-modal-container {
	position: relative;
	background-color: #ffffff;
	border-radius: 16px;
	max-width: 580px;
	width: 100%;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
	z-index: 1;
	overflow: hidden;
	animation: zgrScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zgrScaleIn {
	from {
		transform: scale(0.92);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.zgr-wwa-modal-header {
	background-color: #f8fafc;
	padding: 18px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.zgr-wwa-modal-header h3 {
	margin: 0 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

.zgr-wwa-modal-container .zgr-wwa-modal-close {
	background: transparent;
	border: none;
	font-size: 28px;
	color: #64748b;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.zgr-wwa-modal-container .zgr-wwa-modal-close:hover {
	color: #0f172a;
}

.zgr-wwa-modal-body {
	padding: 24px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

/* Modal Form Styles */
.zgr-wwa-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
}

.zgr-wwa-form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.zgr-wwa-form-group label {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
	text-align: left;
}

.zgr-wwa-form-group input,
.zgr-wwa-form-group select,
.zgr-wwa-form-group textarea {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13.5px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background-color: #ffffff;
	color: #1e293b;
	box-sizing: border-box;
	width: 100%;
}

.zgr-wwa-form-group input:focus,
.zgr-wwa-form-group select:focus,
.zgr-wwa-form-group textarea:focus {
	border-color: #25D366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
	outline: none;
}

.zgr-wwa-form-group.full-width {
	margin-bottom: 18px;
}

.zgr-wwa-form-submit {
	margin-top: 20px;
	text-align: right;
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button,
.zgr-wwa-form-submit .zgr-wwa-modal-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 400;
	padding: 14px 28px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	box-shadow: 0 4px 6px rgba(37, 211, 102, 0.15);
	transition: background-color 0.3s ease, transform 0.2s;
	text-transform: initial;
	border-radius: 30px;
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button:hover,
.zgr-wwa-form-submit .zgr-wwa-modal-submit-btn:hover {
	transform: translateY(-1px);
}

.zgr-wwa-whatsapp-container .zgr-wwa-whatsapp-button:active,
.zgr-wwa-form-submit .zgr-wwa-modal-submit-btn:active {
	transform: translateY(1px);
}

/* Responsiveness */
@media (max-width: 600px) {
	.zgr-wwa-form-row {
		flex-direction: column;
		gap: 12px;
		margin-bottom: 12px;
	}

	.zgr-wwa-modal-container {
		border-radius: 12px;
	}

	.zgr-wwa-modal-body {
		padding: 16px;
	}
}