/*
 * INS Link — modern, responsive WooCommerce cart & checkout skin.
 * Dark-first, RTL, mobile friendly. Loaded only on shop pages.
 */

.ins-shop .woocommerce,
.ins-shop .woocommerce-page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 30px 18px 80px;
}

/* ---------- Headings ---------- */
.ins-shop h1.entry-title,
.ins-shop .woocommerce h2,
.ins-shop .woocommerce h3 {
	font-size: 22px;
	font-weight: 900;
	margin-bottom: 16px;
	color: var(--ins-text);
}

/* ---------- Notices ---------- */
.ins-shop .woocommerce-message,
.ins-shop .woocommerce-info,
.ins-shop .woocommerce-error {
	background: var(--ins-card) !important;
	border: 1px solid var(--ins-border) !important;
	border-right: 4px solid var(--ins-primary) !important;
	border-radius: 14px !important;
	color: var(--ins-text) !important;
	padding: 14px 18px !important;
	margin-bottom: 18px !important;
	list-style: none;
	font-size: 14px;
}
.ins-shop .woocommerce-error {
	border-right-color: var(--ins-danger) !important;
}
.ins-shop .woocommerce-message::before,
.ins-shop .woocommerce-info::before,
.ins-shop .woocommerce-error::before {
	display: none !important;
}

/* ---------- Cart table -> card list ---------- */
.ins-shop .woocommerce table.shop_table {
	border: 1px solid var(--ins-border);
	border-radius: var(--ins-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--ins-card);
	width: 100%;
	margin-bottom: 22px;
}
.ins-shop .woocommerce table.shop_table th {
	background: var(--ins-card-2);
	color: var(--ins-muted);
	font-weight: 800;
	font-size: 13px;
	padding: 14px;
	text-align: right;
	border: 0;
	border-bottom: 1px solid var(--ins-border);
}
.ins-shop .woocommerce table.shop_table td {
	padding: 16px 14px;
	border: 0;
	border-bottom: 1px solid var(--ins-border);
	color: var(--ins-text);
	font-size: 14px;
	vertical-align: middle;
}
.ins-shop .woocommerce table.shop_table tr:last-child td {
	border-bottom: 0;
}
.ins-shop .woocommerce table.shop_table img {
	border-radius: 10px;
	max-width: 62px;
}
.ins-shop .product-name a {
	color: var(--ins-text);
	font-weight: 700;
}
.ins-shop .product-name a:hover {
	color: var(--ins-primary);
}
.ins-shop .woocommerce a.remove {
	color: var(--ins-danger) !important;
	font-size: 20px;
	line-height: 1;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}
.ins-shop .woocommerce a.remove:hover {
	background: var(--ins-danger) !important;
	color: #fff !important;
}

/* Quantity */
.ins-shop .quantity input.qty {
	width: 74px;
	padding: 9px;
	text-align: center;
	border-radius: 10px;
	border: 1px solid var(--ins-border);
	background: var(--ins-bg-2);
	color: var(--ins-text);
}

/* ---------- Buttons ---------- */
.ins-shop .woocommerce a.button,
.ins-shop .woocommerce button.button,
.ins-shop .woocommerce input.button,
.ins-shop .woocommerce a.button.alt,
.ins-shop .woocommerce button.button.alt,
.ins-shop #place_order {
	background: var(--ins-grad) !important;
	color: #241c05 !important;
	border: 0 !important;
	border-radius: 14px !important;
	padding: 13px 26px !important;
	font-weight: 800 !important;
	font-size: 14px !important;
	font-family: inherit !important;
	box-shadow: var(--ins-shadow);
	transition: .2s;
	text-shadow: none !important;
}
.ins-shop .woocommerce a.button:hover,
.ins-shop .woocommerce button.button:hover,
.ins-shop #place_order:hover {
	transform: translateY(-1px);
	opacity: .95;
}
.ins-shop .woocommerce button.button:disabled,
.ins-shop .woocommerce .button.disabled {
	opacity: .5 !important;
}
.ins-shop .woocommerce .cart .button[name="update_cart"] {
	background: var(--ins-card-2) !important;
	color: var(--ins-text) !important;
	border: 1px solid var(--ins-border) !important;
	box-shadow: none;
}

/* ---------- Cart totals / order review ---------- */
.ins-shop .cart-collaterals .cart_totals,
.ins-shop .woocommerce-checkout-review-order {
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	border-radius: var(--ins-radius);
	padding: 20px;
}
.ins-shop .cart_totals h2 {
	font-size: 17px;
	margin-bottom: 12px;
}
.ins-shop .cart-collaterals {
	width: 100%;
	float: none;
}
.ins-shop .cart-collaterals .cart_totals {
	width: 100%;
	float: none;
}
.ins-shop .woocommerce .cart_totals table.shop_table,
.ins-shop .woocommerce-checkout-review-order table.shop_table {
	border: 0;
	background: transparent;
}
.ins-shop .order-total .amount,
.ins-shop .cart_totals .amount {
	color: var(--ins-primary);
	font-weight: 900;
	font-size: 17px;
}
.ins-shop .woocommerce-Price-currencySymbol {
	font-size: 12px;
	opacity: .8;
}

/* ---------- Checkout layout ---------- */
.ins-shop .woocommerce form.checkout {
	display: grid;
	grid-template-columns: 1.25fr .9fr;
	gap: 24px;
	align-items: start;
}
.ins-shop .woocommerce form.checkout #customer_details {
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	border-radius: var(--ins-radius);
	padding: 22px;
	width: 100%;
	float: none;
}
.ins-shop .woocommerce form.checkout #customer_details .col-1,
.ins-shop .woocommerce form.checkout #customer_details .col-2 {
	width: 100%;
	float: none;
}
.ins-shop .woocommerce form.checkout h3 {
	font-size: 17px;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ins-border);
}
.ins-shop .woocommerce-checkout-review-order {
	position: sticky;
	top: 88px;
}

/* ---------- Form fields ---------- */
.ins-shop .woocommerce form .form-row {
	padding: 0;
	margin: 0 0 15px;
}
.ins-shop .woocommerce form .form-row label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--ins-text);
}
.ins-shop .woocommerce form .form-row input.input-text,
.ins-shop .woocommerce form .form-row textarea,
.ins-shop .woocommerce form .form-row select,
.ins-shop .select2-container .select2-selection--single {
	width: 100% !important;
	padding: 12px 14px !important;
	height: auto !important;
	border-radius: 13px !important;
	border: 1px solid var(--ins-border) !important;
	background: var(--ins-bg-2) !important;
	color: var(--ins-text) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1.8 !important;
}
.ins-shop .woocommerce form .form-row input.input-text:focus,
.ins-shop .woocommerce form .form-row textarea:focus {
	outline: 0;
	border-color: var(--ins-primary) !important;
	box-shadow: 0 0 0 3px var(--ins-ring);
}
.ins-shop .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--ins-text) !important;
	line-height: 26px !important;
}
.ins-shop .woocommerce form .form-row-first,
.ins-shop .woocommerce form .form-row-last {
	width: 48.5%;
}

/* ---------- Payment box ---------- */
.ins-shop #payment,
.ins-shop .woocommerce-checkout #payment {
	background: var(--ins-card-2) !important;
	border: 1px solid var(--ins-border);
	border-radius: 16px !important;
	margin-top: 16px;
	padding: 6px;
}
.ins-shop #payment ul.payment_methods {
	border-bottom: 1px solid var(--ins-border) !important;
	padding: 12px !important;
}
.ins-shop #payment ul.payment_methods li {
	list-style: none;
	padding: 8px 0;
	font-size: 14px;
}
.ins-shop #payment div.payment_box {
	background: var(--ins-bg-2) !important;
	color: var(--ins-muted) !important;
	border-radius: 12px !important;
	font-size: 13px;
}
.ins-shop #payment div.payment_box::before {
	border-bottom-color: var(--ins-bg-2) !important;
}
.ins-shop #payment div.form-row.place-order {
	padding: 16px 12px !important;
}
.ins-shop #place_order {
	width: 100%;
	font-size: 16px !important;
	padding: 16px !important;
}

/* Coupon */
.ins-shop .woocommerce form.checkout_coupon,
.ins-shop .woocommerce .coupon {
	background: var(--ins-card);
	border: 1px dashed var(--ins-border) !important;
	border-radius: 14px !important;
	padding: 14px !important;
}
.ins-shop .woocommerce .coupon input.input-text {
	padding: 11px 14px !important;
	border-radius: 11px !important;
	border: 1px solid var(--ins-border) !important;
	background: var(--ins-bg-2) !important;
	color: var(--ins-text) !important;
	width: 190px !important;
}

/* ---------- Thank you / order received ---------- */
.ins-shop .woocommerce-order {
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	border-radius: var(--ins-radius);
	padding: 26px;
}
.ins-shop ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 20px 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.ins-shop ul.woocommerce-order-overview li {
	background: var(--ins-card-2);
	border: 1px solid var(--ins-border);
	border-radius: 14px;
	padding: 14px;
	border-right: 0 !important;
	font-size: 12px;
	color: var(--ins-muted);
	text-transform: none;
}
.ins-shop ul.woocommerce-order-overview li strong {
	display: block;
	font-size: 16px;
	color: var(--ins-text);
	margin-top: 4px;
}

/* ---------- Empty cart ---------- */
.ins-shop .cart-empty {
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	padding: 26px;
}
.ins-shop .return-to-shop {
	text-align: center;
	margin-bottom: 30px;
}

/* ---------- My account ---------- */
.ins-shop .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
}
.ins-shop .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 14px;
	border-radius: 12px;
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	margin-bottom: 8px;
	color: var(--ins-text);
	font-size: 14px;
}
.ins-shop .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ins-primary);
	color: #fff;
	border-color: var(--ins-primary);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.ins-shop .woocommerce form.checkout {
		grid-template-columns: 1fr;
	}
	.ins-shop .woocommerce-checkout-review-order {
		position: static;
	}
	.ins-shop .woocommerce form .form-row-first,
	.ins-shop .woocommerce form .form-row-last {
		width: 100%;
	}
}

@media (max-width: 640px) {
	/* Turn the cart table into stacked cards */
	.ins-shop .woocommerce table.shop_table.cart thead {
		display: none;
	}
	.ins-shop .woocommerce table.shop_table.cart,
	.ins-shop .woocommerce table.shop_table.cart tbody,
	.ins-shop .woocommerce table.shop_table.cart tr,
	.ins-shop .woocommerce table.shop_table.cart td {
		display: block;
		width: 100%;
	}
	.ins-shop .woocommerce table.shop_table.cart tr {
		border-bottom: 1px solid var(--ins-border);
		padding: 8px 0;
	}
	.ins-shop .woocommerce table.shop_table.cart td {
		border: 0;
		padding: 8px 14px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.ins-shop .woocommerce table.shop_table.cart td::before {
		content: attr(data-title);
		font-size: 12px;
		color: var(--ins-muted);
		font-weight: 700;
	}
	.ins-shop .woocommerce table.shop_table.cart td.product-remove::before,
	.ins-shop .woocommerce table.shop_table.cart td.product-thumbnail::before {
		content: "";
	}
	.ins-shop .woocommerce .coupon input.input-text {
		width: 100% !important;
		margin-bottom: 8px;
	}
	.ins-shop .woocommerce .coupon .button {
		width: 100%;
	}
	.ins-shop .woocommerce table.shop_table td.actions .button {
		width: 100%;
		margin-top: 8px;
	}
}

/* ---------- INS custom checkout header ---------- */
.ins-shop-title {
	font-size: 26px;
	font-weight: 900;
	margin: 0 0 18px;
	color: var(--ins-text);
}

.ins-steps {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.ins-step {
	flex: 1;
	min-width: 140px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	color: var(--ins-muted);
	font-size: 13px;
}
.ins-step span {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ins-card-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 12px;
	flex-shrink: 0;
}
.ins-step.active {
	border-color: var(--ins-primary);
	color: var(--ins-text);
	box-shadow: var(--ins-shadow);
}
.ins-step.active span {
	background: var(--ins-grad);
	color: #241c05;
}

.ins-plan-summary {
	background: var(--ins-grad-soft);
	border: 1px solid var(--ins-ring);
	border-radius: var(--ins-radius);
	padding: 18px 20px;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.ins-plan-summary small {
	display: block;
	font-size: 12px;
	color: var(--ins-muted);
}
.ins-plan-summary b {
	font-size: 19px;
	color: var(--ins-text);
}
.ins-plan-summary ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.ins-plan-summary ul li {
	background: var(--ins-card);
	border: 1px solid var(--ins-border);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12px;
	color: var(--ins-text);
	font-weight: 700;
}

@media (max-width: 640px) {
	.ins-shop-title { font-size: 21px; }
	.ins-step { min-width: 100%; }
	.ins-plan-summary { flex-direction: column; align-items: flex-start; }
}
