/* Cart and checkout only. Sizes measured from the live site at 375 and 1280 wide.
   Written for a phone first; "@media (min-width: 900px)" blocks add the desktop layout. */

/* ---------- Top bar: back arrow and the page's name ---------- */

.hugg-shopbar {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 52px;
	margin-bottom: 12px;
	padding: 0 14px;
	box-shadow: 0 2px 10px #ddd;
}

.hugg-shopbar a {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
}

.hugg-shopbar h1 {
	margin: 0;
	font-size: var(--hugg-text-m);
	font-weight: 500;
}

/* ---------- Cart: the page ---------- */

.hugg-cart {
	padding: 0 10px 90px; /* room for the bar fixed to the bottom of a phone screen */
}

.hugg-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

.hugg-saving {
	margin: 15px 0;
	padding: 12px 10px 10px;
	border: 2px dashed #aaa;
	border-radius: 8px;
	background: #eaf3ea;
	font-size: var(--hugg-text-s);
	text-align: center;
}

.hugg-saving strong {
	color: var(--hugg-green);
	font-weight: 500;
}

.hugg-cart__promise {
	margin: 15px 0;
}

.hugg-cart__promise .hugg-saving {
	margin: 0;
}

.hugg-cart__delivery {
	margin: 8px 0 0;
	font-size: var(--hugg-text-s);
	font-weight: 500;
	text-align: center;
}

/* ---------- Cart: one pack ---------- */

.hugg-cart-item {
	margin-bottom: 15px;
	padding: 10px 20px 0;
	border-radius: var(--hugg-radius);
	background: #faf7f1;
}

.hugg-cart-item__row {
	display: grid;
	grid-template-columns: 65px 1fr auto;
	grid-template-areas:
		"photo what price"
		"photo what remove"
		"upgrade upgrade upgrade";
	gap: 0 15px;
	padding: 10px 0 20px;
}

.hugg-cart-item__photo {
	grid-area: photo;
	width: 65px;
	height: 65px;
	border-radius: 5px;
	object-fit: cover;
}

.hugg-cart-item__what {
	grid-area: what;
	font-size: var(--hugg-text-s);
	font-weight: 400;
}

.hugg-cart-item__what h2 {
	margin: 0 0 3px;
	font-size: inherit;
	font-weight: 600;
	text-transform: uppercase;
}

.hugg-cart-item__what p {
	margin: 0;
}

/* Why the pack is a deal, said once, right under what arrives. */
.hugg-cart-item__offer {
	color: var(--hugg-green);
	font-weight: 600;
}

.hugg-cart-item__guarantee {
	font-size: var(--hugg-text-xs);
	font-weight: 500;
}

/* The crossed-out price sits above the price on a phone, beside it on a desktop. */
.hugg-cart-item__price {
	grid-area: price;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.hugg-cart-item__price s {
	color: #777;
	font-size: var(--hugg-text-s);
}

.hugg-cart-item__remove {
	grid-area: remove;
	justify-self: end;
	align-self: start;
	padding: 6px 0 6px 12px;
}

.hugg-cart-item__remove img {
	display: block;
	width: 12px;
	height: 15px;
}

/* The bigger pack on offer: black, with what it is in amber and what it costs in white. */
.hugg-upgrade {
	grid-area: upgrade;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 8px;
	margin-top: 20px;
	padding: 8px;
	border-radius: 5px;
	color: var(--hugg-white);
	background: var(--hugg-black);
	font-size: var(--hugg-text-s);
	text-align: center;
	text-decoration: none;
}

.hugg-upgrade strong {
	color: var(--hugg-amber);
	font-weight: 500;
	text-transform: uppercase;
}

.hugg-upgrade img {
	display: inline-block;
	width: 14px;
	height: 17px;
	margin-right: 4px;
	vertical-align: -2px;
}

/* ---------- Cart: what comes free with the pack ---------- */

/* On a phone each gift is a small picture with its name and worth beside it, two to a row, so
   the gifts take little of the first screen (owner, 20 Nov 2026). */
.hugg-gifts {
	padding: 12px 0;
	border-top: 1px solid var(--hugg-line);
}

.hugg-gifts h3 {
	margin: 0 0 8px;
	font-size: var(--hugg-text-s);
	font-weight: 500;
}

.hugg-gifts ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--hugg-text-xs);
}

.hugg-gifts li {
	display: grid;
	grid-template-columns: 40px 1fr;
	grid-template-areas:
		"picture free"
		"picture name";
	align-items: center;
	column-gap: 8px;
}

.hugg-gifts p {
	grid-area: name;
	align-self: start;
	margin: 0;
	line-height: 1.3;
}

.hugg-gifts .hugg-gifts__free {
	grid-area: free;
	align-self: end;
	color: var(--hugg-green);
}

.hugg-gifts__free s {
	color: var(--hugg-black);
}

.hugg-gifts img {
	grid-area: picture;
	display: block;
	width: 40px;
	height: 49px;
	border-radius: 6px;
	object-fit: cover;
}

/* ---------- Cart: "you may want to add" ---------- */

.hugg-suggest {
	padding: 30px 0 10px;
}

/* The heading sits on a green line: a short piece before the words, a long one after. */
.hugg-suggest h2 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 600;
}

.hugg-suggest h2::before,
.hugg-suggest h2::after {
	content: "";
	height: 2px;
	background: var(--hugg-green);
}

.hugg-suggest h2::before {
	width: 20px;
}

.hugg-suggest h2::after {
	flex: 1;
	max-width: 283px;
}

/* Swiped sideways on a phone. No scrollbar: the next card showing at the edge says there is more. */
.hugg-suggest ul {
	display: flex;
	gap: 15px;
	margin: 0 -10px;
	padding: 0 10px 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 10px;
	scrollbar-width: none;
	list-style: none;
}

.hugg-suggest ul::-webkit-scrollbar {
	display: none;
}

.hugg-suggest li {
	scroll-snap-align: start;
	display: flex;
	flex: 0 0 324px;
	align-items: center;
	min-height: 114px;
	gap: 15px;
	padding: 10px;
	background: #fbf9f4;
}

.hugg-suggest li > a:first-child img {
	display: block;
	width: 70px;
	height: 86px;
	border: 1px solid var(--hugg-line);
	object-fit: cover;
}

.hugg-suggest li > div {
	flex: 1;
}

.hugg-suggest h3 {
	margin: 0 0 2px;
	font-size: var(--hugg-text-m);
	font-weight: 600;
	text-transform: uppercase;
}

.hugg-suggest h3 a {
	color: inherit;
	text-decoration: none;
}

.hugg-suggest p {
	margin: 0 0 8px;
	font-size: var(--hugg-text-s);
	font-weight: 400;
}

.hugg-suggest .hugg-suggest__price {
	margin: 0;
	font-size: var(--hugg-text-m);
	font-weight: 500;
}

.hugg-suggest__price s {
	color: #777;
}

.hugg-suggest__add img {
	display: block;
	width: 30px;
	height: 30px;
}

/* ---------- Cart: order summary ---------- */

.hugg-summary {
	padding: 0 5px;
}

.hugg-summary h2 {
	margin: 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hugg-green);
	font-size: var(--hugg-text-l);
	font-weight: 500;
}

.hugg-summary table {
	width: 100%;
	margin-bottom: 6px;
	border-collapse: collapse;
	font-size: var(--hugg-text-s);
	line-height: 1.5;
}

.hugg-summary th,
.hugg-summary td {
	padding: 0 0 10px;
	font-weight: 500;
	text-align: left;
}

.hugg-summary td {
	text-align: right;
}

.hugg-summary__less td {
	color: var(--hugg-green);
}

.hugg-summary__total th,
.hugg-summary__total td {
	padding: 15px 0;
	border-top: 1px solid var(--hugg-line);
}

.hugg-coupon-wrap summary {
	display: inline-block;
	padding: 4px 0;
	font-size: var(--hugg-text-s);
	font-weight: 500;
	text-decoration: underline;
	list-style: none;
	cursor: pointer;
}

.hugg-coupon-wrap summary::-webkit-details-marker {
	display: none;
}

.hugg-coupon {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.hugg-coupon input,
.hugg-coupon button {
	height: 41px;
	border: 1px solid var(--hugg-black);
	border-radius: 6px;
	font: inherit;
	font-size: var(--hugg-text-s);
}

.hugg-coupon input {
	flex: 1;
	min-width: 0;
	padding: 9px 15px 8px;
}

.hugg-coupon button {
	width: 127px;
	color: var(--hugg-white);
	background: var(--hugg-black);
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

/* On a phone the bar at the bottom of the screen is the way to checkout, so the page has no
   second button (owner, 20 Nov 2026). The desktop layout shows it. */
.hugg-summary .wc-proceed-to-checkout {
	display: none;
	margin: 47px 0 17px;
}

.hugg-summary__secure {
	margin-top: 20px;
}

.hugg-summary .hugg-button {
	line-height: 1.6;
}

.hugg-summary__secure {
	margin-bottom: 32px;
	font-size: var(--hugg-text-s);
	text-align: center;
}

.hugg-summary__secure img {
	display: inline-block;
	width: 11px;
	height: 14px;
	vertical-align: -1px;
}

/* ---------- Cart: bar fixed to the bottom of a phone screen ---------- */

.hugg-cartbar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 20px 14px;
	background: var(--hugg-white);
	box-shadow: 0 -2px 10px #ddd;
}

.hugg-cartbar img {
	width: 29px;
	height: 25px;
}

.hugg-cartbar p {
	margin: 0;
	font-size: var(--hugg-text-xs);
	white-space: nowrap;
}

.hugg-cartbar strong {
	display: block;
	font-size: var(--hugg-text-m);
	font-weight: 500;
}

.hugg-cartbar .hugg-button {
	margin: 0 5px 0 auto;
	padding: 10px 35px 5px;
	font-size: 13px;
	font-weight: 500;
}

/* ---------- Empty cart ---------- */

.hugg-cart-empty {
	padding: 40px var(--hugg-gutter);
	text-align: center;
}

@media (min-width: 900px) {
	.hugg-shopbar {
		margin-bottom: 30px;
	}

	/* Packs on the left; saving and order summary on the right. */
	.hugg-cart {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 349px;
		grid-template-rows: auto auto 1fr;
		gap: 0 57px;
		padding: 0 31px 40px 25px;
	}

	.hugg-cart .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.hugg-cart__promise {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	.hugg-saving {
		font-size: 15px;
	}

	.hugg-cart__delivery {
		font-size: var(--hugg-text-m);
	}

	.hugg-cart__items {
		grid-column: 1;
		grid-row: 2 / span 2;
	}

	.hugg-cart__summary {
		grid-column: 2;
		grid-row: 3;
	}

	.hugg-cart-item {
		margin-bottom: 20px;
		padding: 5px 24px;
	}

	.hugg-cart-item__row {
		grid-template-columns: 78px 1fr 234px minmax(140px, auto);
		grid-template-areas:
			"photo what upgrade price"
			"photo what upgrade remove";
		align-items: center;
		padding: 15px 0;
	}

	.hugg-cart-item__photo {
		width: 78px;
		height: 90px;
	}

	.hugg-cart-item__what {
		font-size: var(--hugg-text-m);
	}

	.hugg-cart-item__price {
		flex-direction: row;
		align-items: baseline;
		align-self: end;
		justify-content: flex-end;
		gap: 5px;
	}

	.hugg-cart-item__price s {
		font-size: var(--hugg-text-m);
	}

	.hugg-cart-item__remove {
		padding-top: 16px;
	}

	.hugg-cart-item__remove img {
		width: 18px;
		height: 23px;
	}

	.hugg-upgrade {
		flex-direction: column;
		margin: 0;
		padding: 10px;
		border: 2px dashed var(--hugg-black);
	}

	.hugg-upgrade strong {
		font-size: 15px;
		line-height: 24px;
	}

	.hugg-gifts {
		padding: 20px 0;
	}

	.hugg-gifts h3 {
		margin-bottom: 25px;
		font-size: 20px;
	}

	/* On a wide screen there is room: each gift is a tall picture with its worth above and name below. */
	.hugg-gifts ul {
		display: flex;
		gap: 0;
		font-size: var(--hugg-text-m);
		text-align: center;
	}

	.hugg-gifts li {
		display: block;
		width: 195px;
	}

	.hugg-gifts .hugg-gifts__free {
		font-size: var(--hugg-text-l);
		line-height: 32px;
	}

	.hugg-gifts img {
		width: 100px;
		height: 123px;
		margin: 0 auto 8px;
		border-radius: 8px;
	}

	.hugg-suggest h2 {
		margin-bottom: 14px;
		font-size: 28px;
	}

	.hugg-suggest ul {
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.hugg-suggest li {
		flex-basis: 353px;
	}

	.hugg-summary {
		padding: 0;
	}

	.hugg-summary h2 {
		margin: 25px 0 20px;
		font-size: 22px;
	}

	.hugg-summary table {
		font-size: 17px;
	}

	.hugg-summary th,
	.hugg-summary td {
		padding-bottom: 15px;
	}

	.hugg-cartbar {
		display: none;
	}

	.hugg-summary .wc-proceed-to-checkout {
		display: block;
	}

	.hugg-summary__secure {
		margin-top: 0;
	}
}

/* ========== Checkout ========== */

.woocommerce-checkout {
	background: #f8f8f8;
}

/* ---------- Checkout: back arrow and logo ---------- */

.hugg-checkout-top {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 884px;
	height: 48px;
	margin: 10px auto 10px;
	padding: 0 20px;
}

.hugg-checkout-top a {
	display: grid;
	place-items: center;
}

.hugg-checkout-top__logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.hugg-checkout-top__logo img {
	width: 40px;
	height: 40px;
}

.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-NoticeGroup {
	max-width: 884px;
	margin: 0 auto;
	padding: 0 20px;
	color: #b3261e;
	font-size: var(--hugg-text-s);
}

.woocommerce-checkout .woocommerce-error {
	margin: 0 0 15px;
	padding: 12px 15px 12px 30px;
	border-radius: 8px;
	background: #fdecea;
}

/* ---------- Checkout: the page ---------- */

.hugg-checkout {
	padding: 0 20px 100px;
}

/* ---------- Checkout: the three steps along the top ---------- */

.hugg-steps-bar {
	display: flex;
	margin: 0 0 15px;
	padding: 0;
	list-style: none;
}

.hugg-steps-bar li {
	position: relative;
	flex: 1;
}

/* The line joining a step to the one before it. Green once that step is reached. */
.hugg-steps-bar li + li::before {
	content: "";
	position: absolute;
	top: 12px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: #ddd;
}

.hugg-steps-bar li:has(.is-current)::before,
.hugg-steps-bar li:has(.is-done)::before {
	background: var(--hugg-green);
}

.hugg-steps-bar button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	color: #aaa;
	background: none;
	font: inherit;
	font-size: var(--hugg-text-m);
	font-weight: 400;
}

.hugg-steps-bar span {
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border: 2px solid #f1f1f1;
	border-radius: 50%;
	background: #f1f1f1;
	font-size: var(--hugg-text-s);
	font-weight: 500;
	line-height: 1;
}

.hugg-steps-bar .is-current {
	color: var(--hugg-ink);
}

.hugg-steps-bar .is-current span {
	border-color: var(--hugg-ink);
	background: var(--hugg-white);
}

/* A finished step: a green tick in place of its number. It can be tapped to go back. */
.hugg-steps-bar .is-done {
	color: var(--hugg-green);
	cursor: pointer;
}

.hugg-steps-bar .is-done span {
	border-color: var(--hugg-green);
	color: transparent;
	background: var(--hugg-white) url("../img/shop/icon-step-done.svg") center / 12px no-repeat;
}

/* ---------- Checkout: order summary ---------- */

.hugg-order {
	margin-bottom: 20px;
	border-radius: 8px;
	background: var(--hugg-white);
}

.hugg-order__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 15px 30px;
	border: 0;
	color: inherit;
	background: none;
	font: inherit;
	font-size: var(--hugg-text-m);
	font-weight: 400;
	cursor: pointer;
}

.hugg-order__bar img {
	width: 24px;
	height: 24px;
}

.hugg-order__bar .hugg-order__arrow {
	width: 11px;
	height: 6px;
}

/* The arrow points down while the summary is closed, up while it is open. */
.hugg-order__bar[aria-expanded="false"] .hugg-order__arrow {
	transform: rotate(180deg);
}

.hugg-order__bar strong {
	margin-left: auto;
	font-weight: 400;
}

.hugg-order__bar[aria-expanded="false"] + .hugg-review {
	display: none;
}

.hugg-review {
	padding: 5px 20px 20px;
	font-size: var(--hugg-text-s);
	font-weight: 400;
}

.hugg-review h2 {
	display: none;
}

.hugg-review__packs {
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--hugg-line);
	list-style: none;
}

.hugg-review__packs li {
	display: grid;
	grid-template-columns: 50px 1fr auto;
	grid-template-areas:
		"photo name name"
		"photo price qty";
	gap: 4px 15px;
	align-items: center;
	font-size: var(--hugg-text-xs);
}

.hugg-review__packs li + li {
	margin-top: 12px;
}

.hugg-review__packs img {
	grid-area: photo;
	width: 50px;
	height: 50px;
	border-radius: 5px;
	object-fit: cover;
}

.hugg-review__packs p {
	grid-area: name;
	margin: 0;
}

.hugg-review__packs strong {
	grid-area: price;
	font-size: var(--hugg-text-s);
	font-weight: 600;
}

.hugg-review__packs span {
	grid-area: qty;
}

.hugg-review table {
	width: 100%;
	border-collapse: collapse;
}

.hugg-review th,
.hugg-review td {
	padding: 0 0 10px;
	font-weight: 400;
	text-align: left;
}

.hugg-review td {
	text-align: right;
}

.hugg-review__total th,
.hugg-review__total td {
	padding-top: 10px;
	border-top: 1px solid var(--hugg-line);
}

.hugg-review__total strong {
	font-weight: 400;
}

.hugg-review__delivery {
	margin: 0;
	font-weight: 500;
}

/* ---------- Checkout: one step ---------- */

/* With the script running, only the current step shows. */
.hugg-checkout[data-hugg-at="1"] .hugg-step:not([data-hugg-step="1"]),
.hugg-checkout[data-hugg-at="2"] .hugg-step:not([data-hugg-step="2"]),
.hugg-checkout[data-hugg-at="3"] .hugg-step:not([data-hugg-step="3"]) {
	display: none;
}

.hugg-step h2 {
	margin: 0 0 35px;
	font-size: var(--hugg-text-l);
	font-weight: 500;
	text-align: center;
}

/* Each field shows its name inside it until something is typed. Then the name moves onto the
   field's top edge, so a filled form can still be read. Before that it is read out by screen
   readers only. Browsers without :has() keep the hidden name, as before. */
.hugg-step .form-row {
	position: relative;
	margin: 0 0 12.8px;
}

.hugg-step .form-row label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.hugg-step .form-row:has(input:not(:placeholder-shown)) label,
.hugg-step .form-row:has(select) label {
	top: -8px;
	left: 14px;
	z-index: 1;
	width: auto;
	height: auto;
	padding: 0 6px;
	clip-path: none;
	color: #666;
	background: var(--hugg-white);
	font-size: var(--hugg-text-xs);
	line-height: 16px;
}

/* WooCommerce adds "*" or "(optional)" to each name; the grey text inside already says it. */
.hugg-step .form-row label .required,
.hugg-step .form-row label .optional {
	display: none;
}

/* City and state, once the pin code has filled them in: one line, with a way to change them. */
.hugg-checkout.has-place #billing_city_field,
.hugg-checkout.has-place #billing_state_field {
	display: none;
}

.hugg-place {
	margin: -2px 0 14px;
	padding: 0 6px;
	font-size: var(--hugg-text-s);
	font-weight: 500;
}

.hugg-place button {
	padding: 4px;
	border: 0;
	color: var(--hugg-green);
	background: none;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* The country travels with the form unseen (India only), so its row takes no room. */
.hugg-step .form-row:has(input[type="hidden"]) {
	margin: 0;
}

.hugg-step .form-row input,
.hugg-step .form-row select {
	width: 100%;
	height: 55px;
	padding: 10px 20px;
	border: 1px solid #bdb8b8;
	border-radius: var(--hugg-radius);
	color: var(--hugg-black);
	background-color: var(--hugg-white);
	font: inherit;
	font-size: var(--hugg-text-m);
}

.hugg-step .form-row input::placeholder {
	color: #808080;
}

.hugg-step .form-row input:focus,
.hugg-step .form-row select:focus {
	border-color: var(--hugg-black);
	outline: 0;
	box-shadow: 0 5px 15px -7px rgba(0, 0, 0, 0.1);
}

.hugg-step .woocommerce-invalid input,
.hugg-step .woocommerce-invalid select {
	border-color: #b3261e;
}

/* The mobile number, with "+91" standing in front of it. */
.hugg-phone {
	position: relative;
	max-width: 320px;
	margin: 0 auto;
}

.hugg-phone::before {
	content: "+91";
	position: absolute;
	top: 50%;
	left: 20px;
	z-index: 1;
	padding-right: 12px;
	border-right: 1px solid #aaa;
	color: #999;
	font-size: var(--hugg-text-l);
	line-height: 1.5;
	transform: translateY(-50%);
}

.hugg-phone .form-row {
	margin: 0;
}

.hugg-phone .form-row input {
	padding: 14px 20px 10px 82px;
	border-color: var(--hugg-black);
	font-size: var(--hugg-text-l);
	box-shadow: 0 5px 15px -7px rgba(0, 0, 0, 0.1);
}

/* The line under the mobile number saying it may get a WhatsApp reminder. */
.hugg-phone__note {
	max-width: 320px;
	margin: 10px auto 0;
	color: #666;
	font-size: var(--hugg-text-xs);
	text-align: center;
}

.hugg-step__phone {
	margin: -30px 0 20px;
	font-size: var(--hugg-text-s);
	text-align: center;
}

.hugg-step__phone button {
	padding: 4px;
	border: 0;
	background: none;
	cursor: pointer;
}

.hugg-step__phone img {
	width: 12px;
	height: 13px;
}

.hugg-step__problem {
	margin: 12px 0 0;
	color: #b3261e;
	font-size: var(--hugg-text-s);
	text-align: center;
}

/* The button that moves on: Continue, Add Address, Place Order. */
.hugg-step__next {
	display: block;
	width: 100%;
	max-width: 320px;
	min-height: 72px;
	margin: 60px auto 0;
	padding: 20px;
	border: 0;
	border-radius: 8px;
	color: var(--hugg-white);
	background: linear-gradient(90deg, var(--hugg-sunset), var(--hugg-sunset-deep));
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	cursor: pointer;
}

/* Address step on a phone: the button (and any problem above it) stays at the bottom of the
   screen while the fields are typed, so it never has to be looked for. */
.hugg-step__go {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 30px -20px 0;
	padding: 10px 20px 12px;
	background: #f8f8f8;
	box-shadow: 0 -2px 10px #ddd;
}

.hugg-step__go .hugg-step__problem {
	margin: 0 0 8px;
}

.hugg-step__go .hugg-step__next {
	min-height: 60px;
	margin-top: 0;
	padding: 16px;
}

/* A field the customer moves to is never left hidden under that button. */
html:has(body.woocommerce-checkout) {
	scroll-padding-bottom: 110px;
}

/* Continue looks ready only once ten digits are typed. */
.hugg-checkout:not(.has-phone) [data-hugg-step="1"] .hugg-step__next {
	opacity: 0.5;
}

/* ---------- Checkout: ways to pay ---------- */

.hugg-step__delivery {
	display: flex;
	justify-content: space-between;
	margin: 0 0 27px;
	padding: 15px 20px;
	border-radius: 8px;
	background: var(--hugg-white);
	font-size: var(--hugg-text-s);
}

.hugg-step #payment h2 {
	margin-bottom: 40px;
}

.wc_payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hugg-pay {
	position: relative;
	margin-bottom: 10px;
}

.hugg-pay input {
	position: absolute;
	opacity: 0;
}

.hugg-pay__tile {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 92px;
	padding: 15px 20px;
	border: 2px solid #e6e6e6;
	border-radius: 8px;
	background: var(--hugg-white);
	cursor: pointer;
}

.hugg-pay input:checked + .hugg-pay__tile {
	border-color: var(--hugg-black);
}

.hugg-pay input:focus-visible + .hugg-pay__tile {
	outline: 2px solid var(--hugg-green);
	outline-offset: 2px;
}

.hugg-pay__words strong {
	display: block;
	margin-bottom: 8px;
	font-size: var(--hugg-text-m);
	font-weight: 500;
	line-height: 2;
}

.hugg-pay__words > span {
	display: block;
	font-size: var(--hugg-text-s);
	line-height: 1.3;
}

/* The small red label: "+₹50 COD fee", "Not available". */
.hugg-pay__words em {
	margin-left: 10px;
	padding: 2px 10px;
	border: 1px solid #f00;
	border-radius: var(--hugg-pill);
	color: #f00;
	font-size: 11px;
	font-style: normal;
	white-space: nowrap;
	vertical-align: 2px;
}

.hugg-pay__tile img {
	width: auto;
	max-width: 96px;
	height: 38px;
	margin-left: auto;
	object-fit: contain;
}

/* A way of paying that cannot be used for this order. */
.hugg-pay--off .hugg-pay__tile {
	color: #666;
	background: #f1f1f1;
	cursor: default;
}

.payment_box {
	padding: 10px 5px 0;
	font-size: var(--hugg-text-s);
}

.place-order {
	margin: 0;
}

#place_order {
	max-width: none;
	min-height: 0;
	margin-top: 10px;
	font-size: var(--hugg-text-l);
	font-weight: 400;
}

/* ---------- Checkout: "powered by" and the payment badges ---------- */

.hugg-checkout__trust {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 320px;
	margin: 10px auto 0;
	font-size: 13px;
}

.hugg-checkout__trust span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hugg-checkout__trust span img {
	width: 25px;
	height: 25px;
}

.hugg-checkout__trust > img {
	width: 176px;
	height: 22px;
}

/* ---------- After the checkout: thank-you page and pay-link page. Plain, until their design is settled. ---------- */

.woocommerce-order,
form#order_review {
	max-width: 600px;
	margin: 0 auto;
	padding: 10px var(--hugg-gutter) 60px;
	font-size: var(--hugg-text-s);
	font-weight: 400;
}

.woocommerce-order h2 {
	margin: 30px 0 10px;
	font-size: var(--hugg-text-l);
	font-weight: 500;
}

.woocommerce-order ul.order_details {
	margin: 15px 0;
	padding: 15px 20px;
	border-radius: 8px;
	background: var(--hugg-white);
	list-style: none;
}

.woocommerce-order table,
form#order_review table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-order th,
.woocommerce-order td,
form#order_review th,
form#order_review td {
	padding: 8px 0;
	border-bottom: 1px solid var(--hugg-line);
	font-weight: 400;
	text-align: left;
}

.woocommerce-order address {
	font-style: normal;
}

form#order_review #payment {
	margin-top: 25px;
}

@media (min-width: 900px) {
	.hugg-checkout-top {
		margin: 18px auto 20px;
		padding: 0;
	}

	.woocommerce-checkout .woocommerce-notices-wrapper,
	.woocommerce-checkout .woocommerce-NoticeGroup {
		padding: 0;
	}

	/* Steps on the left, order summary on the right. */
	.hugg-checkout {
		display: grid;
		grid-template-columns: 555px 309px;
		grid-template-rows: auto 1fr;
		gap: 0 20px;
		justify-content: center;
		padding: 0 0 60px;
	}

	.hugg-checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
	}

	/* The step names sit beside their numbers, on a line that turns green as far as the current step. */
	.hugg-steps-bar {
		grid-column: 1;
		margin: 30px 30px 61px;
		border-bottom: 1px solid #ddd;
	}

	.hugg-steps-bar li {
		margin-bottom: -1px;
		padding-bottom: 8px;
		border-bottom: 1px solid transparent;
	}

	.hugg-steps-bar li:last-child {
		flex: 0 0 auto;
	}

	.hugg-steps-bar li:has(.is-current),
	.hugg-steps-bar li:has(.is-done) {
		border-bottom-color: var(--hugg-green);
	}

	.hugg-steps-bar li + li::before {
		content: none;
	}

	.hugg-steps-bar button {
		flex-direction: row;
		gap: 10px;
		width: auto;
		font-size: var(--hugg-text-s);
	}

	.hugg-order {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
		margin: 0;
		border-radius: 6px;
	}

	/* Always open on a wide screen: the bar is not needed. */
	.hugg-order__bar {
		display: none;
	}

	.hugg-order__bar[aria-expanded="false"] + .hugg-review {
		display: block;
	}

	.hugg-review {
		padding: 20px;
	}

	.hugg-review h2 {
		display: block;
		margin: 0 0 12px;
		padding-bottom: 10px;
		font-size: 24px;
		font-weight: 500;
	}

	.hugg-checkout__steps {
		grid-column: 1;
		padding: 0 30px 50px;
	}

	/* On a wide screen the whole address step fits, so its button sits under it as on the others. */
	.hugg-step__go {
		position: static;
		margin: 0;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.hugg-step__go .hugg-step__problem {
		margin: 12px 0 0;
	}

	.hugg-step__go .hugg-step__next {
		min-height: 72px;
		margin-top: 60px;
		padding: 20px;
	}
}
