/* ==========================================================================
   Cart, checkout and order confirmation (.vs-flow): one look across the three pages,
   using the site's flat grey panels, Outfit type and blue primary buttons.
   Dark is the theme default; body.light-mode switches the tokens.
   ========================================================================== */

body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
	max-width: 1160px;
	padding-top: 24px;
}

.vs-flow {
	--co-line: var(--border-subtle, rgba(255, 255, 255, 0.12));
	--co-field-line: rgba(255, 255, 255, 0.22);
	--co-field-bg: rgba(255, 255, 255, 0.04);
	--co-card-bg: var(--card, rgba(255, 255, 255, 0.04));
	--co-card-line: var(--card-border, rgba(255, 255, 255, 0.06));
	--co-inset: rgba(255, 255, 255, 0.06);
	--co-radius: var(--radius-md, 8px);
	--co-field-radius: 6px;
	font-family: var(--main-font);
	color: var(--text);
}

body.light-mode .vs-flow {
	--co-field-line: #d0d5dd;
	--co-field-bg: #ffffff;
	--co-inset: #ffffff;
}

/* ---- Shared header: back link, eyebrow, title, progress ---- */

.vs-flow-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.vs-flow-back {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}

.vs-flow-back:hover {
	color: var(--cta);
}

.vs-flow-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.vs-flow-title {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.vs-flow-steps {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}

.vs-flow-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vs-flow-steps li + li::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--co-field-line);
}

.vs-flow-steps .is-done {
	color: var(--text);
}

.vs-flow-steps .is-current {
	color: var(--cta);
	font-weight: 700;
}

/* ---- Layout ---- */

.vs-flow-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 24px;
	align-items: start;
}

.vs-flow-main {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.vs-flow-summary {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 16px;
}

/* ---- Cards (the site's grey panels) ---- */

.vs-flow-card {
	background: var(--co-card-bg);
	border: 1px solid var(--co-card-line);
	border-radius: var(--co-radius);
	padding: 24px;
}

.vs-flow .vs-flow-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--main-font);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
}

.vs-step-num {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--cta);
	color: var(--cta-text, #fff);
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

/* ---- Buttons ---- */

.vs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px;
	font-family: var(--main-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: var(--radius-sm, 4px);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vs-btn-primary {
	background: var(--cta);
	color: var(--cta-text, #fff);
}

.vs-btn-primary:hover {
	background: var(--cta-hover);
	color: var(--cta-text, #fff);
}

.vs-btn-outline {
	background: transparent;
	color: var(--text);
	border-color: var(--co-field-line);
}

.vs-btn-outline:hover {
	border-color: var(--cta);
	color: var(--cta);
}

/* ---- Notices inside the flow ---- */

.vs-flow .woocommerce-form-coupon-toggle .woocommerce-info,
.vs-flow .woocommerce-message,
.vs-flow .woocommerce-info {
	border-radius: var(--co-radius);
	font-size: 14px;
}

.vs-flow .woocommerce-form-coupon-toggle a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.vs-flow form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 16px;
	margin: 0 0 20px;
	border: 1px solid var(--co-card-line);
	border-radius: var(--co-radius);
	background: var(--co-card-bg);
}

.vs-flow form.checkout_coupon p:not(.form-row) {
	flex-basis: 100%;
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--muted);
}

.vs-flow form.checkout_coupon .form-row {
	margin: 0;
}

.vs-flow .woocommerce-NoticeGroup-checkout {
	margin-bottom: 20px;
}

.vs-flow .blockUI.blockOverlay {
	border-radius: var(--co-radius);
}

/* ==========================================================================
   Checkout form
   ========================================================================== */

#customer_details,
#customer_details .woocommerce-billing-fields {
	display: grid;
	gap: 16px;
}

/* WooCommerce's hidden order-attribution inputs would otherwise take a grid row (still submitted). */
#customer_details > wc-order-attribution-inputs {
	display: none;
}

.vs-fields {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px 12px;
}

.vs-fields::after,
.vs-fields .clear {
	display: none;
}

.vs-flow .vs-fields .form-row {
	grid-column: span 6;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.vs-flow .vs-fields .form-row-first,
.vs-flow .vs-fields .form-row-last,
.vs-flow #billing_email_field,
.vs-flow #billing_phone_field {
	grid-column: span 3;
}

.vs-flow #billing_city_field,
.vs-flow #billing_state_field,
.vs-flow #billing_postcode_field,
.vs-flow #shipping_city_field,
.vs-flow #shipping_state_field,
.vs-flow #shipping_postcode_field {
	grid-column: span 2;
}

.vs-flow .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}

.vs-flow .form-row label .optional {
	font-weight: 400;
	color: var(--muted);
}

/* Field hints show as plain text under the field (WooCommerce otherwise pops them up on focus). */
.vs-flow .form-row .description {
	display: block !important;
	position: static;
	margin: 6px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
	background: none;
	border-radius: 0;
}

.vs-flow .form-row .description::before {
	display: none;
}

.vs-flow .form-row .required {
	color: var(--danger);
	text-decoration: none;
	border: 0;
}

.vs-flow .form-row input.input-text,
.vs-flow .form-row textarea,
.vs-flow .form-row select,
.vs-flow .select2-container .select2-selection--single,
.vs-flow form.checkout_coupon input.input-text {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	font-family: var(--main-font);
	font-size: 16px; /* 16px stops iOS Safari zooming into the field */
	line-height: 1.4;
	color: var(--text);
	background: var(--co-field-bg);
	border: 1px solid var(--co-field-line);
	border-radius: var(--co-field-radius);
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.vs-flow .form-row textarea {
	min-height: 96px;
	resize: vertical;
}

.vs-flow .form-row input.input-text::placeholder,
.vs-flow .form-row textarea::placeholder {
	color: var(--muted);
	opacity: 0.8;
}

.vs-flow .form-row input.input-text:focus,
.vs-flow .form-row textarea:focus,
.vs-flow .form-row select:focus,
.vs-flow .select2-container--focus .select2-selection--single,
.vs-flow .select2-container--open .select2-selection--single {
	outline: none;
	border-color: var(--cta);
	box-shadow: 0 0 0 3px var(--ring);
}

.vs-flow .woocommerce-invalid input.input-text,
.vs-flow .woocommerce-invalid select,
.vs-flow .woocommerce-invalid .select2-selection--single {
	border-color: var(--danger);
}

.vs-flow .select2-container {
	width: 100% !important;
}

.vs-flow .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	padding: 0 36px 0 14px;
}

.vs-flow .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	color: var(--text);
}

.vs-flow .select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%;
	right: 10px;
	height: 20px;
	transform: translateY(-50%);
}

/* Ship to a different address + notes */

.vs-checkout-options {
	padding: 6px 24px;
}

.vs-flow .vs-toggle-row {
	margin: 0;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 600;
}

.vs-flow .vs-toggle-row label,
.vs-flow .create-account label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.vs-flow input[type="checkbox"].input-checkbox,
.vs-flow #terms {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cta);
	flex: none;
}

.vs-flow .shipping_address {
	padding: 4px 0 18px;
}

.vs-flow .woocommerce-additional-fields {
	border-top: 1px solid var(--co-line);
}

.vs-notes summary {
	padding: 14px 0;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.vs-notes summary::-webkit-details-marker {
	display: none;
}

.vs-notes summary::before {
	content: "+";
	display: inline-block;
	width: 18px;
	margin-right: 10px;
	text-align: center;
	color: var(--cta);
	font-weight: 700;
}

.vs-notes[open] summary::before {
	content: "\2212";
}

.vs-notes .vs-fields {
	padding-bottom: 18px;
}

/* Payment */

.vs-checkout-secure {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: -8px 0 18px 36px;
	font-size: 13px;
	color: var(--muted);
}

.vs-flow #order_review,
.vs-flow #payment {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.vs-flow #payment ul.payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--co-field-line);
	border-radius: var(--co-field-radius);
	overflow: hidden;
}

.vs-flow #payment ul.payment_methods li {
	padding: 14px 16px;
	border-bottom: 1px solid var(--co-line);
	background: var(--co-field-bg);
}

.vs-flow #payment ul.payment_methods li:last-child {
	border-bottom: 0;
}

.vs-flow #payment ul.payment_methods li > input[type="radio"] {
	accent-color: var(--cta);
	margin: 0 8px 0 0;
	vertical-align: middle;
}

.vs-flow #payment ul.payment_methods li > label {
	display: inline;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
}

.vs-flow #payment ul.payment_methods li img {
	max-height: 24px;
	margin-left: 6px;
	vertical-align: middle;
}

.vs-flow #payment .payment_box {
	position: relative;
	margin: 12px 0 0;
	padding: 14px 16px;
	font-size: 14px;
	color: var(--muted);
	background: var(--co-card-bg);
	border-radius: var(--co-field-radius);
}

.vs-flow #payment .payment_box::before {
	display: none;
}

.vs-flow #payment .payment_box p:last-child {
	margin-bottom: 0;
}

.vs-place-order {
	margin-top: 16px;
}

.vs-flow .vs-place-order .form-row.place-order {
	margin: 0;
	padding: 0;
}

.vs-flow .woocommerce-privacy-policy-text p,
.vs-flow .woocommerce-terms-and-conditions-wrapper p {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.vs-flow .woocommerce-privacy-policy-text a {
	color: var(--cta);
}

/* Big primary actions: Place order, Proceed to checkout */
.vs-flow #place_order,
.vs-flow .wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 24px;
	font-family: var(--main-font);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	color: var(--cta-text, #fff);
	background: var(--cta);
	border: 0;
	border-radius: var(--radius-sm, 4px);
	cursor: pointer;
	transition: background 0.15s ease;
}

.vs-flow #place_order:hover,
.vs-flow .wc-proceed-to-checkout .checkout-button:hover {
	background: var(--cta-hover);
	color: var(--cta-text, #fff);
}

/* ==========================================================================
   Order summary (checkout + cart)
   ========================================================================== */

.vs-flow .vs-summary-card .vs-flow-card-title {
	justify-content: space-between;
	margin-bottom: 16px;
}

.vs-summary-count {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.vs-summary-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-summary-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid var(--co-line);
}

.vs-summary-item:first-child {
	padding-top: 0;
}

.vs-summary-thumb,
.vs-cart-thumb,
.vs-order-item-thumb {
	position: relative;
	border: 1px solid var(--co-card-line);
	border-radius: var(--co-field-radius);
	background: var(--co-inset);
	flex: none;
}

.vs-summary-thumb {
	width: 64px;
	height: 64px;
}

.vs-summary-thumb img,
.vs-cart-thumb img,
.vs-order-item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: inherit;
}

.vs-summary-qty {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--text);
	color: var(--bg);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	box-sizing: border-box;
}

.vs-summary-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
}

.vs-summary-sizes,
.vs-cart-sizes,
.vs-order-item-sizes {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.vs-summary-details {
	margin-top: 6px;
	font-size: 13px;
}

.vs-summary-details summary {
	color: var(--cta);
	cursor: pointer;
}

.vs-summary-details dl {
	margin: 8px 0 0;
}

.vs-summary-details dt {
	margin-top: 6px;
	font-weight: 600;
	color: var(--text);
}

.vs-summary-details dd {
	margin: 2px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

.vs-summary-price {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--text);
}

/* Totals rows: checkout summary and cart totals */
.vs-summary-totals,
.vs-cart .cart_totals table {
	width: 100%;
	margin: 6px 0 0;
	border: 0;
	border-collapse: collapse;
}

.vs-summary-totals th,
.vs-summary-totals td,
.vs-cart .cart_totals th,
.vs-cart .cart_totals td {
	padding: 8px 0;
	font-size: 14px;
	font-weight: 400;
	color: var(--muted);
	border: 0;
	background: none;
}

.vs-summary-totals th,
.vs-cart .cart_totals th {
	text-align: left;
}

.vs-summary-totals td,
.vs-cart .cart_totals td {
	text-align: right;
	color: var(--text);
}

.vs-summary-totals .order-total th,
.vs-summary-totals .order-total td,
.vs-cart .cart_totals .order-total th,
.vs-cart .cart_totals .order-total td {
	padding-top: 14px;
	border-top: 1px solid var(--co-line);
	font-size: 18px;
	font-weight: 800;
	color: var(--text);
}

/* ==========================================================================
   Cart
   ========================================================================== */

.vs-cart-items {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-cart-item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: start;
}

.vs-cart-thumb {
	width: 112px;
	height: 112px;
}

.vs-flow .vs-cart-name {
	margin: 0 0 4px;
	font-family: var(--main-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.vs-cart-name a {
	color: var(--text);
	text-decoration: none;
}

.vs-cart-name a:hover {
	color: var(--cta);
}

.vs-cart-meta {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.vs-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
}

.vs-cart-remove {
	font-size: 14px;
	color: var(--muted);
	text-decoration: underline;
}

.vs-cart-remove:hover {
	color: var(--danger);
}

.vs-cart-price {
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.vs-cart-form-actions:empty {
	display: none;
}

.vs-cart .cart_totals {
	float: none;
	width: auto;
}

.vs-flow .cart_totals h2 {
	margin: 0 0 16px;
	font-family: var(--main-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.vs-cart .wc-proceed-to-checkout {
	margin: 16px 0 0;
	padding: 0;
}

/* ==========================================================================
   Order confirmation: a plain receipt (no panels) that prints cleanly.
   Order details in My Account reuse the table and address styles.
   ========================================================================== */

.vs-receipt {
	max-width: 760px;
	margin: 0 auto;
}

.vs-receipt-head {
	margin: 8px 0 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--co-line);
}

.vs-flow .vs-receipt-title {
	margin: 0 0 6px;
	font-family: var(--main-font);
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
}

.vs-receipt-meta {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--muted);
}

.vs-order-lead {
	margin: 0;
	padding: 0;
	font-size: 15px;
	color: var(--text);
	background: none;
	border: 0;
}

.vs-order .woocommerce-order-details,
.vs-order .woocommerce-customer-details {
	margin: 0 0 32px;
}

.vs-flow .woocommerce-order-details__title,
.vs-flow .woocommerce-column__title {
	margin: 0 0 12px;
	font-family: var(--main-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.vs-flow table.order_details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.vs-flow table.order_details th,
.vs-flow table.order_details td {
	padding: 12px 0;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
	color: var(--text);
	background: none;
	border: 0;
	border-top: 1px solid var(--co-line);
}

.vs-flow table.order_details thead th {
	padding-top: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	border-top: 0;
}

.vs-flow table.order_details tfoot tr:last-child th,
.vs-flow table.order_details tfoot tr:last-child td {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}

.vs-flow table.order_details .product-total,
.vs-flow table.order_details tfoot td {
	text-align: right;
	white-space: nowrap;
}

.vs-flow table.order_details tfoot th {
	font-weight: 400;
	color: var(--muted);
}

.vs-order-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.vs-order-item-thumb {
	width: 64px;
	height: 64px;
}

.vs-order-item-info a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.vs-order-item-info .product-quantity {
	font-weight: 600;
	color: var(--muted);
}

.vs-order-item-sizes {
	display: block;
}

.vs-order .woocommerce-customer-details .addresses {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid var(--co-line);
}

.vs-order .woocommerce-customer-details .addresses::before,
.vs-order .woocommerce-customer-details .addresses::after {
	display: none;
}

.vs-order .woocommerce-customer-details .woocommerce-column {
	float: none;
	width: auto;
	padding: 0;
}

.vs-flow .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.vs-customer-contact address {
	overflow-wrap: anywhere;
}

.vs-customer-payment {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.vs-flow .woocommerce-customer-details address {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-style: normal;
	line-height: 1.6;
	color: var(--text);
	border: 0;
}

.vs-flow .woocommerce-customer-details address p {
	margin: 4px 0 0;
	color: var(--muted);
}

.vs-flow .woocommerce-customer-details--phone::before,
.vs-flow .woocommerce-customer-details--email::before {
	display: none;
}

.vs-flow .woocommerce-customer-details--phone,
.vs-flow .woocommerce-customer-details--email {
	padding-left: 0 !important;
}

.vs-order-next {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.vs-order-failed p {
	margin: 0 0 12px;
}

/* Printing the receipt: logo and receipt only, black on white. */
@media print {
	body.woocommerce-order-received .site-header > *:not(.site-logo),
	body.woocommerce-order-received .mobile-menu,
	body.woocommerce-order-received .footer,
	body.woocommerce-order-received [class*="cky-"],
	.vs-receipt .vs-order-next {
		display: none !important;
	}

	body.woocommerce-order-received,
	body.woocommerce-order-received .site-header {
		position: static;
		background: #fff !important;
		box-shadow: none !important;
	}

	.vs-receipt {
		--text: #000;
		--muted: #444;
		--co-line: #ccc;
		max-width: none;
		color: #000;
	}

	body.woocommerce-checkout .woocommerce {
		padding: 0;
	}

	.vs-receipt .vs-receipt-title {
		font-size: 24px;
	}

	.vs-receipt .addresses {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vs-receipt table.order_details tr,
	.vs-receipt .addresses {
		break-inside: avoid;
	}
}

/* ==========================================================================
   Tablet / phone
   ========================================================================== */

@media (max-width: 960px) {
	.vs-flow-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.vs-flow-summary {
		position: static;
	}

}

@media (max-width: 600px) {
	body.woocommerce-checkout .woocommerce,
	body.woocommerce-cart .woocommerce {
		padding-left: 16px;
		padding-right: 16px;
	}

	.vs-flow-head {
		grid-template-columns: 1fr;
	}

	.vs-flow-steps {
		font-size: 12px;
	}

	.vs-flow-card {
		padding: 18px 16px;
	}

	.vs-checkout-options {
		padding: 4px 16px;
	}

	.vs-checkout-secure {
		margin-left: 0;
	}

	.vs-flow #billing_email_field,
	.vs-flow #billing_phone_field,
	.vs-flow #billing_city_field,
	.vs-flow #shipping_city_field {
		grid-column: span 6;
	}

	.vs-flow #billing_state_field,
	.vs-flow #billing_postcode_field,
	.vs-flow #shipping_state_field,
	.vs-flow #shipping_postcode_field {
		grid-column: span 3;
	}

	.vs-cart-item {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 14px;
	}

	.vs-cart-thumb {
		width: 80px;
		height: 80px;
	}

	.vs-cart-price {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: end;
		font-size: 16px;
	}

	.vs-cart-info {
		grid-column: 1 / -1;
	}

	.vs-order .woocommerce-customer-details .addresses {
		grid-template-columns: 1fr;
	}
}

/* ---- Checkout extras: folded phone summary, "+ Add apartment" link ---- */

.vs-mobile-summary {
	display: none;
}

.vs-flow .vs-line2-collapsed {
	display: none !important;
}

.vs-add-line2 {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0;
	font-family: var(--main-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--cta);
	background: none;
	border: 0;
	cursor: pointer;
}

.vs-add-line2:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.vs-mobile-summary {
		display: block;
		margin: 0 0 16px;
		background: var(--co-card-bg);
		border: 1px solid var(--co-card-line);
		border-radius: var(--co-radius);
	}

	.vs-mobile-summary > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
		font-size: 15px;
		font-weight: 600;
		color: var(--cta);
		cursor: pointer;
		list-style: none;
	}

	.vs-mobile-summary > summary::-webkit-details-marker {
		display: none;
	}

	.vs-mobile-summary > summary > span::after {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin: 0 0 3px 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
	}

	.vs-mobile-summary[open] > summary > span::after {
		margin-bottom: -1px;
		transform: rotate(-135deg);
	}

	.vs-mobile-summary .vs-mobile-summary-hide,
	.vs-mobile-summary[open] > summary .vs-mobile-summary-show {
		display: none;
	}

	.vs-mobile-summary[open] > summary .vs-mobile-summary-hide {
		display: inline;
	}

	.vs-mobile-summary-total {
		font-size: 17px;
		font-weight: 800;
		color: var(--text);
	}

	.vs-mobile-summary-body {
		padding: 4px 16px 12px;
		border-top: 1px solid var(--co-line);
	}

	.vs-mobile-summary-body .vs-summary-items {
		padding-top: 14px;
	}
}
