/*
Theme Name: Distance LC

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: right;
	clear: both;
}

table.shop_table_responsive tr td::before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
	display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive thead {
		display: table-header-group;
	}

	table.shop_table_responsive tbody th {
		display: table-cell;
	}

	table.shop_table_responsive tr th,
	table.shop_table_responsive tr td {
		text-align: left;
	}

	table.shop_table_responsive tr td {
		display: table-cell;
	}

	table.shop_table_responsive tr td::before {
		display: none;
	}
}

/**
 * Products
 */
ul.products {
	margin: 0;
	padding: 0;
}

ul.products li.product {
	list-style: none;
	position: relative;
	margin-bottom: 2em;
}

ul.products li.product img {
	display: block;
}

ul.products li.product .button {
	display: block;
}

@media screen and (min-width: 48em) {

	ul.products li.product {
		width: 30.79667%;
		float: left;
		margin-right: 3.8%;
	}

	ul.products li.product.first {
		clear: both;
	}

	ul.products li.product.last {
		margin-right: 0;
	}

	ul.products.columns-1 li.product {
		float: none;
		width: 100%;
	}

	ul.products.columns-2 li.product {
		width: 48.1%;
	}

	ul.products.columns-3 li.product {
		width: 30.79667%;
	}

	ul.products.columns-4 li.product {
		width: 22.15%;
	}

	ul.products.columns-5 li.product {
		width: 16.96%;
	}

	ul.products.columns-6 li.product {
		width: 13.49333%;
	}
}

/**
 * Single product
 */
.single-product div.product {
	position: relative;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 2em;
	right: 1em;
	display: block;
	z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.79667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.15%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}

.stock:empty::before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

/**
 * Checkout
 */
.site-header--checkout {
	padding: 20px 0;
}

.site-header--checkout .container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.site-header--checkout .site-branding {
	margin: 0;
}

@media screen and (min-width: 768px) {

	.col2-set .form-row-first {
		float: left;
		margin-right: 3.8%;
	}

	.col2-set .form-row-last {
		float: right;
		margin-right: 0;
	}

	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
	display: none;
}

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;
}

.star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #4169e1;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	font-weight: 400;
}

p.stars a::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: star;
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: 0.25;
}

p.stars a:hover ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1em 0;
	display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: #f00;
}

/**
 * Notices
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	background-color: #0f834d;
	clear: both;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: #3d9cd2;
}

.woocommerce-error {
	background-color: #e2401c;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3d9cd2;
	z-index: 9999;
}

@media screen and (min-width: 48em) {

	/**
	 * Header cart
	 */
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}

	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: #4169e1;
	box-sizing: border-box;
	margin-top: -0.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
	height: 100%;
}

.woocommerce-checkout .dlc-eligibility-box {
	background: #E0F2FE;
	border-radius: var(--border-radius);
	padding: 24px;
	margin-bottom: 24px;
	display: flex;
	gap: 16px;
}

.woocommerce-checkout .dlc-eligibility-box__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background-image: url("../assets/icons/check-your-eligibility.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 4px;
}

.woocommerce-checkout .dlc-eligibility-box__content {
	flex: 1;
}

.woocommerce-checkout .dlc-eligibility-box__title {
	color: var(--Gray-900, #181d27);
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 28px;
	margin: 0 0 12px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.woocommerce-checkout .dlc-eligibility-box__list {
	margin: 0;
	padding-left: 20px;
}

.woocommerce-checkout .dlc-eligibility-box__list li {
	color: #414651;
	font-family: Inter;
	font-size: 12px;
	font-style: normal;
	line-height: 18px; /* 150% */
}

.woocommerce-checkout .dlc-eligibility-box__list li:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout .dlc-eligibility-box__list li strong {
	font-weight: 600;
}

.checkout-wrapper {
	padding: 24px;
	border-radius: 12px;
}

.woocommerce-checkout .dlc-trust-items {
	background: #fffbeb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.woocommerce-checkout .dlc-trust-items__title {
	color: var(--Gray-900, #181d27);
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 28px;
	margin: 0 0 12px 0;
}

.woocommerce-checkout .dlc-trust-items__list {
	list-style: none;
	margin: 0 0 24px 0;
	padding: 0;
}

.woocommerce-checkout .dlc-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.woocommerce-checkout .dlc-trust-item:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout .dlc-trust-item__icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-image: url('../distance-lc/assets/icons/check.svg') !important;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.woocommerce-checkout .dlc-trust-item__text {
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 20px;
}

.woocommerce-checkout .dlc-trust-reviews {
	display: flex;
	align-items: center;
	gap: 16px;
}

.woocommerce-checkout .dlc-trust-reviews__avatars {
	flex-shrink: 0;
}

.woocommerce-checkout .dlc-trust-reviews__avatars img {
	width: 120px;
	height: auto;
	display: block;
}

.woocommerce-checkout .dlc-trust-reviews__rating {
	flex: 1;
}

.woocommerce-checkout .dlc-trust-reviews__stars {
	color: #f59e0b;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 4px;
	letter-spacing: 2px;
}

.woocommerce-checkout .dlc-trust-reviews__text {
	color: #78350f;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.woocommerce-checkout .dlc-trust-reviews__text strong {
	font-weight: 700;
}

.wc-block-components-form .wc-block-components-checkout-step {
	margin-bottom: 12px !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
	margin-bottom: 20px;
	border-radius: 12px;
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-form .wc-block-components-text-input.is-active input[type=email], .wc-block-components-form .wc-block-components-text-input.is-active input[type=number], .wc-block-components-form .wc-block-components-text-input.is-active input[type=password], .wc-block-components-form .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-form .wc-block-components-text-input.is-active input[type=text], .wc-block-components-form .wc-block-components-text-input.is-active input[type=url], .wc-block-components-text-input input:-webkit-autofill, .wc-block-components-text-input.is-active input[type=email], .wc-block-components-text-input.is-active input[type=number], .wc-block-components-text-input.is-active input[type=password], .wc-block-components-text-input.is-active input[type=tel], .wc-block-components-text-input.is-active input[type=text], .wc-block-components-text-input.is-active input[type=url] {
	border-radius: 8px !important
}

.wc-block-components-title.wc-block-components-title {
	margin-bottom: 20px !important;
}

.wc-block-components-title.wc-block-components-title, .dlc-eligibility-box__title, .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	font-size: 18px !important;
	line-height: 28px !important;
	font-weight: 600 !important;
}

.wc-block-components-checkout-step__description.wc-block-components-checkout-step__description-payments-aligned {
	display: none !important;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin-bottom: 8px !important;
	margin-left: 24px !important;
	padding-top: 22px !important;
	border-bottom: 0px !important;
}

.wc-block-components-totals-item, .wc-block-components-totals-footer-item {
	padding-bottom: 0px !important;
}

.dlc-eligibility-box__title::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	background-image: url('../distance-lc/assets/icons/check-your-eligibility.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.wc-block-components-checkout-step__heading {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	line-height: 1 !important;
}

.wc-block-components-checkout-step__title {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 28px !important;
	font-weight: 600 !important;
}

.dlc-section-icon {
	display: inline-flex;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	margin-top: -19px;
}

.dlc-section-icon--personal {
	background-image: url('../distance-lc/assets/icons/personal-information.svg') !important;
}

.dlc-section-icon--credit {
	margin-top: -22px;
	background-image: url('../distance-lc/assets/icons/credit-card-information.svg') !important;
}

/* Order Complete Page Styles */

.woocommerce-order-complete-layout {
	display: flex;
	gap: 2rem;
	margin-top: 4rem;
	align-items: flex-start;
}

.woocommerce-order p, .woocommerce-order ul, .woocommerce-order li {
	font-size: 18px;
}

.woocommerce-order ul {
	padding-left: 0px;
	margin-left: 32px;
}

.woocommerce-order ul li {
	margin-bottom: 10px;
}

.woocommerce-order-complete-main {
	flex: 0 0 60%;
	max-width: 60%;
}

.woocommerce-order-complete-sidebar {
	flex: 1;
	position: sticky;
	top: 20px;
}

.woocommerce-order-complete-header {
	margin-bottom: 2rem;
}

.woocommerce-order-complete-header h1 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	color: #181d27;
}

.woocommerce-order-complete-header h5 {
	font-size: 18px;
	font-weight: 400;
	margin: 0;
	color: #666;
}

.woocommerce-order-complete-main .checkout-wrapper {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
}

.woocommerce-order-support.dlc-trust-items {
	background: #fffbeb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.woocommerce-order-support.dlc-trust-items p {
	margin: 0 0 12px 0;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 20px;
}

.woocommerce-order-support.dlc-trust-items p:last-child {
	margin-bottom: 0;
}

.woocommerce-order-support.dlc-trust-items a {
	color: #0073aa;
	text-decoration: none;
}

.woocommerce-order-support.dlc-trust-items a:hover {
	text-decoration: underline;
}

.woocommerce-order-complete-sidebar .woocommerce-order-summary {
	background: #FAFAFA;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
}

.woocommerce-order-complete-sidebar .woocommerce-order-summary__title {
	font-size: 18px !important;
	font-weight: 600;
	margin: 0 0 20px 0 !important;
	color: #181d27;
}

.woocommerce-order-complete-sidebar .woocommerce-order-overview {
	list-style: none;
	margin: 0 0 24px 0;
	padding: 0;
}

.woocommerce-order-complete-sidebar .woocommerce-order-overview li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0 8px;
	font-size: 16px;
	color: #181d27;
}

.woocommerce-order-complete-sidebar .woocommerce-order-overview li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.woocommerce-order-complete-sidebar .woocommerce-order-summary:last-child {
	margin-bottom: 0;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details th,
.woocommerce-order-complete-sidebar .woocommerce-table--order-details td {
	padding: 12px 0;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details thead th {
	font-weight: 600;
	color: #181d27;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details tbody td {
	color: #666;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details tfoot th,
.woocommerce-order-complete-sidebar .woocommerce-table--order-details tfoot td {
	font-weight: 600;
	color: #181d27;
}

.woocommerce-order-complete-sidebar .woocommerce-table--order-details .product-total {
	text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
	.woocommerce-order-complete-layout {
		flex-direction: column;
	}
	
	.woocommerce-order-complete-main {
		flex: 1;
		max-width: 100%;
	}
	
	.woocommerce-order-complete-sidebar {
		flex: 1;
		width: 100%;
		position: relative;
		top: 0;
	}
}

.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url] {

	border: 1px solid var(--Gray-300) !important;
	border-radius: var(--border-radius)  !important;
	background-color: #fff;
	cursor: pointer;
	transition: border-color 0.3s ease;

}

.wc-block-components-form .wc-block-components-text-input input[type=email]:focus, .wc-block-components-form .wc-block-components-text-input input[type=number]:focus, .wc-block-components-form .wc-block-components-text-input input[type=password]:focus, .wc-block-components-form .wc-block-components-text-input input[type=tel]:focus, .wc-block-components-form .wc-block-components-text-input input[type=text]:focus, .wc-block-components-form .wc-block-components-text-input input[type=url]:focus, .wc-block-components-text-input input[type=email]:focus, .wc-block-components-text-input input[type=number]:focus, .wc-block-components-text-input input[type=password]:focus, .wc-block-components-text-input input[type=tel]:focus, .wc-block-components-text-input input[type=text]:focus, .wc-block-components-text-input input[type=url]:focus {
	outline: none  !important;
	border-color: var(--Gray-400) !important;
	box-shadow: none;
}