/**
 * Swift One-Page Checkout Frontend Styles
 */
:root {
	--swiftopc-primary: #2563eb;
	--swiftopc-bg: #f8fafc;
	--swiftopc-card: #ffffff;
	--swiftopc-border: #e2e8f0;
	--swiftopc-text: #1e293b;
}

.swiftopc-active .woocommerce-checkout {
	display: grid;
	gap: 2rem;
	margin-top: 1.5rem;
}

.swiftopc-layout-two-column .woocommerce-checkout {
	grid-template-columns: 1.35fr 1fr;
	align-items: start;
}

.swiftopc-layout-single-column .woocommerce-checkout {
	grid-template-columns: 1fr;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.swiftopc-active #customer_details,
.swiftopc-active .swiftopc-order-review-wrap,
.swiftopc-active #order_review {
	background: var(--swiftopc-card);
	border: 1px solid var(--swiftopc-border);
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.swiftopc-layout-two-column #order_review {
	position: sticky;
	top: 30px;
}

.swiftopc-active .woocommerce-checkout .col2-set {
	width: 100%;
	float: none;
}

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

.swiftopc-active .woocommerce-checkout input.input-text,
.swiftopc-active .woocommerce-checkout select,
.swiftopc-active .woocommerce-checkout textarea {
	border: 1px solid var(--swiftopc-border);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.swiftopc-active .woocommerce-checkout input.input-text:focus,
.swiftopc-active .woocommerce-checkout select:focus {
	border-color: var(--swiftopc-primary);
	outline: none;
}

.swiftopc-active #place_order {
	background-color: var(--swiftopc-primary) !important;
	color: #ffffff !important;
	width: 100%;
	padding: 15px 20px;
	font-size: 17px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.1s ease;
}

.swiftopc-active #place_order:hover {
	opacity: 0.92;
}

/* Product Selector Cards */
.swiftopc-product-selector {
	background: var(--swiftopc-card);
	border: 1px solid var(--swiftopc-border);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 1.5rem;
}

.swiftopc-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.swiftopc-product-card {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 2px solid var(--swiftopc-border);
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.swiftopc-product-card.is-selected {
	border-color: var(--swiftopc-primary);
	background-color: rgba(37, 99, 235, 0.04);
}

.swiftopc-product-thumb img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 6px;
}

.swiftopc-product-info {
	flex: 1;
}

.swiftopc-product-info h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.swiftopc-select-product-btn {
	background-color: var(--swiftopc-primary) !important;
	color: #fff !important;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 13px;
}

.swiftopc-embedded-wrapper {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--swiftopc-border);
}

@media (max-width: 768px) {
	.swiftopc-layout-two-column .woocommerce-checkout {
		grid-template-columns: 1fr;
	}
}
