/**
 * Chiroflix Commerce UI
 * Readable WooCommerce cart and checkout controls on StreamVid's dark canvas.
 */

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text,
body.woocommerce-cart .woocommerce input.input-text,
body.woocommerce-cart .woocommerce textarea,
body.woocommerce-cart .woocommerce select {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #222222 !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 4px;
	box-shadow: none !important;
	-webkit-text-fill-color: #222222 !important;
	caret-color: #222222;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-cart .woocommerce input.input-text,
body.woocommerce-cart .woocommerce select {
	min-height: 48px;
}

body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-cart .woocommerce textarea {
	min-height: 120px;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
body.woocommerce-checkout .woocommerce form .form-row textarea::placeholder,
body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text::placeholder,
body.woocommerce-cart .woocommerce input.input-text::placeholder,
body.woocommerce-cart .woocommerce textarea::placeholder {
	color: #777777 !important;
	opacity: 1;
	-webkit-text-fill-color: #777777 !important;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text:focus,
body.woocommerce-cart .woocommerce input.input-text:focus,
body.woocommerce-cart .woocommerce textarea:focus,
body.woocommerce-cart .woocommerce select:focus {
	border-color: #ff7a21 !important;
	outline: 2px solid rgba(255, 122, 33, 0.22) !important;
	outline-offset: 1px;
}

/* WooCommerce Select2 country/state controls. */
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-cart .select2-container--default .select2-selection--single {
	min-height: 48px;
	background: #ffffff !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 4px;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #222222 !important;
	line-height: 46px;
	padding-left: 14px;
	padding-right: 36px;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 8px;
}

body.woocommerce-checkout .select2-dropdown,
body.woocommerce-cart .select2-dropdown {
	background: #ffffff;
	color: #222222;
	border-color: #d9d9d9;
}

body.woocommerce-checkout .select2-search--dropdown .select2-search__field,
body.woocommerce-cart .select2-search--dropdown .select2-search__field {
	background: #ffffff !important;
	color: #222222 !important;
	border: 1px solid #d9d9d9 !important;
	-webkit-text-fill-color: #222222 !important;
}

body.woocommerce-checkout .select2-results__option,
body.woocommerce-cart .select2-results__option {
	color: #222222;
}

body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-cart .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: #ff7a21;
	color: #ffffff;
}

/* Browser autofill can otherwise restore a dark field background. */
body.woocommerce-checkout input:-webkit-autofill,
body.woocommerce-checkout input:-webkit-autofill:hover,
body.woocommerce-checkout input:-webkit-autofill:focus,
body.woocommerce-cart input:-webkit-autofill,
body.woocommerce-cart input:-webkit-autofill:hover,
body.woocommerce-cart input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #222222 !important;
	transition: background-color 9999s ease-out 0s;
}

body.woocommerce-checkout .woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce-invalid select,
body.woocommerce-checkout .woocommerce-invalid .select2-selection--single {
	border-color: #d63638 !important;
}

/* Digital-only Chiroflix checkout. */
body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce {
	max-width: 1120px;
	margin-right: auto;
	margin-left: auto;
}

body.chiroflix-digital-commerce.woocommerce-checkout .chiroflix-digital-checkout-notice {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 28px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 122, 33, 0.45);
	border-radius: 8px;
	background: rgba(255, 122, 33, 0.08);
	color: #ffffff;
}

body.chiroflix-digital-commerce.woocommerce-checkout .chiroflix-digital-checkout-notice strong {
	flex: 0 0 auto;
	color: #ff7a21;
}

body.chiroflix-digital-commerce.woocommerce-checkout .chiroflix-digital-checkout-notice span {
	color: rgba(255, 255, 255, 0.86);
}

body.chiroflix-digital-commerce.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	align-items: start;
	width: 100% !important;
	max-width: none !important;
}

body.chiroflix-digital-commerce.woocommerce-checkout #customer_details,
body.chiroflix-digital-commerce.woocommerce-checkout #order_review,
body.chiroflix-digital-commerce.woocommerce-checkout #order_review_heading {
	float: none;
	width: 100% !important;
	min-width: 0;
}

body.chiroflix-digital-commerce.woocommerce-checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
}

body.chiroflix-digital-commerce.woocommerce-checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0 0 18px;
}

body.chiroflix-digital-commerce.woocommerce-checkout #order_review {
	grid-column: 2;
	grid-row: 2;
}

body.chiroflix-digital-commerce.woocommerce-checkout #customer_details .col-1,
body.chiroflix-digital-commerce.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

body.chiroflix-digital-commerce.woocommerce-checkout #customer_details .col-2,
body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-shipping-fields,
body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-additional-fields {
	display: none !important;
}

body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-billing-fields,
body.chiroflix-digital-commerce.woocommerce-checkout #order_review {
	box-sizing: border-box;
	width: 100%;
	padding: 30px;
	border: 1px solid #292929;
	border-radius: 8px;
	background: #090909;
}

body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-billing-fields h3 {
	margin-top: 0;
	margin-bottom: 22px;
}

body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after {
	display: table;
	clear: both;
	content: '';
}

body.chiroflix-digital-commerce.woocommerce-checkout .form-row {
	margin-bottom: 18px;
}

body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-checkout-review-order-table {
	margin-bottom: 22px;
}

body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-checkout-review-order-table .shipping {
	display: none !important;
}

body.chiroflix-digital-commerce.woocommerce-checkout #payment {
	margin-top: 0;
}

body.chiroflix-digital-commerce.woocommerce-checkout #place_order {
	min-height: 50px;
	font-size: 14px;
	letter-spacing: 0.04em;
}

@media (max-width: 900px) {
	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout {
		display: block;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout #order_review_heading {
		margin-top: 32px;
	}
}

/* PPV order confirmation handoff back to the purchased or rented movie. */
body.woocommerce-order-received .chiroflix-order-return {
	margin: 28px 0 36px;
	padding: 28px;
	border: 1px solid rgba(255, 122, 33, 0.42);
	border-radius: 10px;
	background: #090909;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.woocommerce-order-received .chiroflix-order-return__logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 62px;
	margin: 0 0 18px;
}

body.woocommerce-order-received .chiroflix-order-return h2 {
	margin: 0 0 8px;
	color: #fff;
}

body.woocommerce-order-received .chiroflix-order-return p {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.78);
}

body.woocommerce-order-received .chiroflix-order-return__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body.woocommerce-order-received .chiroflix-order-return__button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid #ff7a21;
	border-radius: 6px;
	background: #ff7a21;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

body.woocommerce-order-received .chiroflix-order-return__button.button.alt:hover,
body.woocommerce-order-received .chiroflix-order-return__button.button.alt:focus {
	border-color: #fff;
	background: #fff;
	color: #090909;
}

@media (max-width: 600px) {
	body.woocommerce-order-received .chiroflix-order-return {
		padding: 22px 18px;
	}

	body.woocommerce-order-received .chiroflix-order-return__button.button.alt {
		width: 100%;
	}
}

@media (max-width: 600px) {
	body.chiroflix-digital-commerce.woocommerce-checkout .chiroflix-digital-checkout-notice {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout .woocommerce-billing-fields,
	body.chiroflix-digital-commerce.woocommerce-checkout #order_review {
		padding: 18px;
	}
}


/*
 * StreamVid checkout template layout.
 * The theme nests both checkout columns inside form.checkout > .row, so the
 * grid must be applied to that row rather than to the checkout form itself.
 */
@media (min-width: 901px) {
	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout {
		display: block !important;
		width: 100% !important;
		max-width: none !important;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		column-gap: 40px !important;
		align-items: start !important;
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row > .col-lg-60,
	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row > .col-lg-40 {
		float: none !important;
		flex: none !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout .jws_woo_your_order,
	body.chiroflix-digital-commerce.woocommerce-checkout #customer_details,
	body.chiroflix-digital-commerce.woocommerce-checkout #order_review,
	body.chiroflix-digital-commerce.woocommerce-checkout #order_review_heading {
		width: 100% !important;
		max-width: none !important;
	}
}

@media (max-width: 900px) {
	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row {
		display: block !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row > .col-lg-60,
	body.chiroflix-digital-commerce.woocommerce-checkout form.checkout > .row > .col-lg-40 {
		width: 100% !important;
		max-width: none !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}
}
