/**
 * Scoped Styling for OG Hemp Pre-Exit Cart Recovery Perk Box.
 *
 * Strict CSS Isolation: Scoped entirely under #oghemp-cart-perk-modal and .oghemp-cart-perk-wrap.
 */

#oghemp-cart-perk-modal {
	display: none;
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 2147483647 !important;
	max-width: 380px;
	width: calc(100% - 48px);
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(45, 90, 39, 0.2);
	font-family: inherit;
	overflow: hidden;
	animation: oghempSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes oghempSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.oghemp-cart-perk-header {
	background: #2d5a27;
	color: #ffffff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.oghemp-cart-perk-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
}

.oghemp-cart-perk-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.oghemp-cart-perk-close:hover {
	opacity: 1;
}

.oghemp-cart-perk-body {
	padding: 16px 18px;
}

.oghemp-cart-perk-text {
	font-size: 13px;
	color: #4a5568;
	line-height: 1.45;
	margin: 0 0 12px 0;
}

.oghemp-cart-perk-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oghemp-cart-perk-input-wrap {
	display: flex;
	gap: 6px;
}

.oghemp-cart-perk-country {
	width: 75px;
	padding: 8px 6px;
	font-size: 13px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	background: #f7fafc;
	color: #2d3748;
}

.oghemp-cart-perk-phone {
	flex: 1;
	padding: 8px 12px;
	font-size: 13px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.2s;
}

.oghemp-cart-perk-phone:focus {
	border-color: #2d5a27;
}

.oghemp-cart-perk-submit {
	background: #2d5a27;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background 0.2s, transform 0.1s;
}

.oghemp-cart-perk-submit:hover {
	background: #23481f;
}

.oghemp-cart-perk-submit:active {
	transform: scale(0.98);
}

.oghemp-cart-perk-success {
	display: none;
	padding: 14px 18px;
	text-align: center;
}

.oghemp-cart-perk-success-title {
	font-size: 15px;
	font-weight: 700;
	color: #2d5a27;
	margin: 0 0 6px 0;
}

.oghemp-cart-perk-success-text {
	font-size: 13px;
	color: #4a5568;
	margin: 0 0 12px 0;
}

.oghemp-cart-perk-checkout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #ffffff !important;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	width: 100%;
	box-sizing: border-box;
	transition: background 0.2s, transform 0.1s;
}

.oghemp-cart-perk-checkout-btn:hover {
	background: #1eb956;
	transform: translateY(-1px);
}

.oghemp-cart-perk-checkout-btn:active {
	transform: scale(0.98);
}

@media (max-width: 480px) {
	#oghemp-cart-perk-modal {
		bottom: 16px;
		right: 16px;
		left: 16px;
		width: calc(100% - 32px);
	}
}
