/**
 * Frontend Styles for Turbo Checkout Pro
 */

/* Quantity Selector Popup Modal */
.turbo-qty-popup-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.turbo-qty-popup-modal.active {
	opacity: 1;
	pointer-events: auto;
}

.turbo-qty-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 17, 26, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.turbo-qty-popup-content {
	position: relative;
	background: #1e2230;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	width: 90%;
	max-width: 380px;
	padding: 30px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	color: #ffffff;
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.turbo-qty-popup-modal.active .turbo-qty-popup-content {
	transform: scale(1);
}

.turbo-qty-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.turbo-qty-popup-close:hover {
	color: #ffffff;
}

.turbo-qty-popup-header {
	text-align: center;
	margin-bottom: 25px;
}

.turbo-qty-popup-header h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
}

.turbo-qty-popup-product-name {
	margin: 0;
	font-size: 14px;
	color: #94a3b8;
	font-weight: 500;
}

.turbo-qty-popup-body {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

/* Styled Quantity Counter selector */
.turbo-qty-selector {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	padding: 4px;
}

.turbo-qty-btn {
	background: none;
	border: none;
	color: #ffffff;
	width: 40px;
	height: 40px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s;
}

.turbo-qty-btn:hover {
	background: rgba(255, 255, 255, 0.08);
}

.turbo-qty-input {
	background: none !important;
	border: none !important;
	color: #ffffff !important;
	width: 50px;
	text-align: center !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield;
}

.turbo-qty-input::-webkit-outer-spin-button,
.turbo-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.turbo-qty-popup-footer {
	text-align: center;
}

.turbo-qty-popup-footer .turbo-checkout-btn {
	width: 100% !important;
	padding: 12px 24px !important;
	font-size: 15px !important;
}

/* Sticky Mobile Checkout Bar */
.turbo-mobile-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(30, 34, 48, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	box-sizing: border-box;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.turbo-mobile-sticky-bar.visible {
	transform: translateY(0);
}

.turbo-sticky-details {
	display: flex;
	flex-direction: column;
	max-width: 55%;
}

.turbo-sticky-title {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}

.turbo-sticky-price {
	font-size: 14px;
	font-weight: 700;
	color: #ff5722;
}

.turbo-mobile-sticky-bar .turbo-checkout-btn {
	width: auto !important;
	padding: 10px 18px !important;
	font-size: 13px !important;
	margin: 0 !important;
}

/* Hide on desktop screens */
@media (min-width: 768px) {
	.turbo-mobile-sticky-bar {
		display: none !important;
	}
}

/* Premium Standard Checkout Billing Fields Redesign */
.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout input.input-text,
.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout textarea,
.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout select {
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 14px !important;
	color: #0f172a !important;
	background-color: #f8fafc !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout input.input-text:focus,
.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout textarea:focus,
.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout select:focus {
	border-color: #ff5722 !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.12) !important;
}

.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	margin-bottom: 6px !important;
	display: inline-block !important;
}

.woocommerce-checkout:not(.turbo-minimal-checkout-body) form.checkout .form-row {
	margin-bottom: 18px !important;
}

/* Standard Place Order Button Elevation */
.woocommerce-checkout:not(.turbo-minimal-checkout-body) button#place_order {
	background-color: #ff5722 !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	padding: 14px 28px !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2) !important;
	transition: all 0.2s ease !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.woocommerce-checkout:not(.turbo-minimal-checkout-body) button#place_order:hover {
	background-color: #e64a19 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 87, 34, 0.3) !important;
}

