/*
 * The Breather: cart and checkout, styled to match the product pages.
 * Loaded only on the cart and checkout pages (body.tbpp-shop).
 */

.tbpp-shop {
	--tbp-blue: #006daf;
	--tbp-ink: #25282b;
	--tbp-text: #3a3f44;
	--tbp-muted: #636a71;
	--tbp-tint: #ebf3f9;
	--tbp-line: #cce2ef;
	--tbp-field: #a6cce3;
	--tbp-orange: #ff8523;
	--tbp-peach: #fff8f2;
	--tbp-radius: 14px;
	--tbp-head: "Poppins", sans-serif;
}

.tbpp-shop #main #content-wrap {
	padding-top: 44px;
	padding-bottom: 72px;
}

.tbpp-shop .entry,
.tbpp-shop .woocommerce {
	color: var(--tbp-text);
	font-size: 16px;
	line-height: 1.6;
}

.tbpp-shop .tbp-page-title {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	font-family: var(--tbp-head);
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--tbp-blue);
}

.tbpp-shop .woocommerce a {
	color: var(--tbp-blue);
}

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

.tbpp-shop .woocommerce a.button,
.tbpp-shop .woocommerce button.button,
.tbpp-shop .woocommerce input.button,
.tbpp-shop .woocommerce #place_order {
	min-height: 46px;
	padding: 0 24px;
	border: 2px solid var(--tbp-blue);
	/* The site's custom CSS forces pill shaped, upper case buttons with !important, so these need it too. */
	border-radius: 999px !important;
	background: var(--tbp-blue) !important;
	color: #fff;
	font-family: var(--tbp-head);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 42px;
	letter-spacing: 0;
	text-transform: none !important;
	opacity: 1;
	transition: box-shadow 0.15s ease;
}

.tbpp-shop .woocommerce a.button:hover,
.tbpp-shop .woocommerce button.button:hover,
.tbpp-shop .woocommerce input.button:hover,
.tbpp-shop .woocommerce #place_order:hover {
	border-color: var(--tbp-blue);
	background: var(--tbp-blue) !important;
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 109, 175, 0.32);
}

.tbpp-shop .woocommerce a.button:focus-visible,
.tbpp-shop .woocommerce button.button:focus-visible,
.tbpp-shop .woocommerce #place_order:focus-visible {
	outline: 3px solid var(--tbp-orange);
	outline-offset: 2px;
}

/* Secondary buttons: coupon and update cart */

.tbpp-shop .woocommerce .coupon button.button,
.tbpp-shop .woocommerce button[name="update_cart"],
.tbpp-shop .woocommerce .checkout_coupon button.button {
	background: #fff !important;
	color: var(--tbp-blue) !important;
}

.tbpp-shop .woocommerce .coupon button.button:hover,
.tbpp-shop .woocommerce button[name="update_cart"]:hover,
.tbpp-shop .woocommerce .checkout_coupon button.button:hover {
	background: var(--tbp-tint) !important;
	border-color: var(--tbp-blue);
	color: var(--tbp-blue) !important;
}

.tbpp-shop .woocommerce button[name="update_cart"]:disabled,
.tbpp-shop .woocommerce button[name="update_cart"][disabled] {
	border-color: var(--tbp-line);
	color: var(--tbp-muted) !important;
	opacity: 1;
}

/* ---------- Form fields ---------- */

.tbpp-shop .woocommerce form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.tbpp-shop .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tbp-ink);
}

.tbpp-shop .woocommerce form .form-row label.checkbox,
.tbpp-shop .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.tbpp-shop .woocommerce form .form-row .required {
	color: #c0392b;
	text-decoration: none;
}

.tbpp-shop .woocommerce input.input-text,
.tbpp-shop .woocommerce input[type="text"],
.tbpp-shop .woocommerce input[type="email"],
.tbpp-shop .woocommerce input[type="tel"],
.tbpp-shop .woocommerce input[type="password"],
.tbpp-shop .woocommerce input[type="number"],
.tbpp-shop .woocommerce select,
.tbpp-shop .woocommerce textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--tbp-field);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--tbp-ink);
}

.tbpp-shop .woocommerce textarea {
	min-height: 110px;
	padding: 12px 14px;
}

.tbpp-shop .woocommerce input.input-text:focus,
.tbpp-shop .woocommerce input[type="text"]:focus,
.tbpp-shop .woocommerce input[type="email"]:focus,
.tbpp-shop .woocommerce input[type="tel"]:focus,
.tbpp-shop .woocommerce input[type="password"]:focus,
.tbpp-shop .woocommerce input[type="number"]:focus,
.tbpp-shop .woocommerce select:focus,
.tbpp-shop .woocommerce textarea:focus {
	border-color: var(--tbp-blue);
	outline: 3px solid rgba(0, 109, 175, 0.2);
	outline-offset: 0;
}

.tbpp-shop .select2-container .select2-selection--single {
	height: 48px;
	border: 1px solid var(--tbp-field);
	border-radius: 10px;
	background: #fff;
}

.tbpp-shop .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 14px;
	font-size: 16px;
	line-height: 46px;
	color: var(--tbp-ink);
}

.tbpp-shop .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 8px;
	height: 46px;
}

.tbpp-shop .select2-container--open .select2-selection--single,
.tbpp-shop .select2-container--focus .select2-selection--single {
	border-color: var(--tbp-blue);
}

.tbpp-shop .woocommerce form .form-row-first,
.tbpp-shop .woocommerce form .form-row-last {
	width: calc(50% - 8px);
}

/* ---------- Notices ---------- */

/* Notice boxes are styled site-wide in site.css. */

/* ---------- Cart ---------- */

.tbpp-cart .woocommerce:has(> .woocommerce-cart-form) {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 28px 48px;
	align-items: start;
}

.tbpp-cart .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.tbpp-cart .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

.tbpp-cart .woocommerce table.shop_table {
	margin: 0;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
}

.tbpp-cart .woocommerce table.shop_table th,
.tbpp-cart .woocommerce table.shop_table td {
	padding: 16px 12px;
	border: 0;
	border-bottom: 1px solid var(--tbp-line);
	background: none;
	text-transform: none;
	letter-spacing: 0;
	vertical-align: middle;
}

.tbpp-cart .woocommerce table.cart thead th {
	padding-top: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tbp-muted);
	border-bottom-color: var(--tbp-blue);
}

.tbpp-cart .woocommerce table.cart td.product-thumbnail img {
	width: 84px;
	max-width: none;
	height: auto;
	border-radius: 8px;
}

.tbpp-cart .woocommerce table.cart td.product-name a {
	font-family: var(--tbp-head);
	font-size: 16.5px;
	font-weight: 600;
	color: var(--tbp-blue);
}

.tbpp-cart .woocommerce table.cart td.product-subtotal {
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-cart .woocommerce table.cart a.remove {
	width: 28px;
	height: 28px;
	border: 1px solid var(--tbp-line);
	border-radius: 50%;
	background: #fff;
	font-size: 18px;
	line-height: 25px;
	color: var(--tbp-muted) !important;
}

.tbpp-cart .woocommerce table.cart a.remove:hover {
	border-color: #c0392b;
	background: #fff;
	color: #c0392b !important;
}

.tbpp-cart .woocommerce .quantity input.qty {
	width: 72px;
	min-height: 46px;
	padding: 0 8px;
	text-align: center;
}

.tbpp-cart .woocommerce table.cart td.actions {
	padding: 22px 0 0;
	border-bottom: 0;
}

.tbpp-cart .woocommerce table.cart td.actions .coupon {
	display: flex;
	gap: 10px;
	float: left;
}

.tbpp-cart .woocommerce #content table.cart td.actions .coupon .input-text,
.tbpp-cart #content .woocommerce table.cart td.actions .coupon .input-text {
	float: none;
	width: 190px;
	min-height: 46px;
	margin: 0;
}

.tbpp-cart #content .woocommerce table.cart td.actions .coupon .button {
	float: none;
	width: auto;
}

/* Summary panel */

.tbpp-cart .woocommerce .cart-collaterals {
	float: none;
	width: auto;
	margin: 0;
}

.tbpp-cart .woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	padding: 28px 28px 24px;
	border-radius: var(--tbp-radius);
	background: var(--tbp-tint);
}

.tbpp-cart .woocommerce .cart_totals h2 {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-family: var(--tbp-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	color: var(--tbp-blue);
}

.tbpp-cart .woocommerce .cart_totals table.shop_table th,
.tbpp-cart .woocommerce .cart_totals table.shop_table td {
	padding: 12px 0;
	border-bottom: 1px solid var(--tbp-line);
}

.tbpp-cart .woocommerce .cart_totals table.shop_table th {
	width: 38%;
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-cart .woocommerce .cart_totals table.shop_table td {
	text-align: right;
}

.tbpp-cart .woocommerce .cart_totals .order-total .amount {
	font-family: var(--tbp-head);
	font-size: 22px;
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-cart .woocommerce .cart_totals .includes_tax {
	display: block;
	font-size: 13.5px;
	color: var(--tbp-muted);
}

.tbpp-cart .woocommerce .cart_totals .includes_tax .amount {
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	color: inherit;
}

.tbpp-cart .woocommerce .wc-proceed-to-checkout {
	padding: 18px 0 0;
}

.tbpp-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	min-height: 54px;
	margin: 0 0 12px;
	padding: 0 24px;
	font-size: 17px;
	line-height: 50px;
	text-align: center;
}

/* Empty cart */

.tbpp-cart .woocommerce .cart-empty,
.tbpp-cart .woocommerce .wc-empty-cart-message .woocommerce-info {
	margin: 0 0 20px;
}

/* ---------- Checkout ---------- */

.tbpp-checkout .checkout-note,
.tbpp-checkout .paypal-note {
	margin: 0 0 12px;
	padding: 14px 18px;
	border-left: 4px solid var(--tbp-orange);
	border-radius: 0 10px 10px 0;
	background: var(--tbp-peach);
	text-align: left;
}

.tbpp-checkout .paypal-note {
	margin-bottom: 24px;
	border-left-color: var(--tbp-blue);
	background: var(--tbp-tint);
}

.tbpp-checkout .checkout-note h2,
.tbpp-checkout .paypal-note p {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	color: var(--tbp-ink);
}

/* Login and coupon prompts as plain lines */

.tbpp-checkout .woocommerce-form-login-toggle .woocommerce-info,
.tbpp-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 15px;
	color: var(--tbp-text);
}

.tbpp-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 28px;
}

.tbpp-checkout .woocommerce-form-login-toggle .woocommerce-info a,
.tbpp-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbpp-checkout .woocommerce form.login,
.tbpp-checkout .woocommerce form.checkout_coupon {
	margin: 8px 0 24px;
	padding: 22px 24px;
	border: 1px solid var(--tbp-line);
	border-radius: var(--tbp-radius);
}

/* Two columns: details on the left, order and payment on the right */

.tbpp-checkout .woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 0 56px;
	align-items: start;
}

.tbpp-checkout .woocommerce form.checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
	float: none;
	width: auto;
}

.tbpp-checkout .woocommerce form.checkout #customer_details .col-1,
.tbpp-checkout .woocommerce form.checkout #customer_details .col-2 {
	float: none;
	width: 100%;
	max-width: none;
}

.tbpp-checkout .woocommerce form.checkout #customer_details .col-2 {
	margin-top: 8px;
}

.tbpp-checkout .woocommerce form.checkout h3 {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-family: var(--tbp-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	color: var(--tbp-blue);
}

.tbpp-checkout .woocommerce form.checkout h3#ship-to-different-address {
	margin: 8px 0 16px;
	font-size: 16px;
}

.tbpp-checkout .woocommerce form.checkout h3#ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	color: var(--tbp-ink);
	cursor: pointer;
}

.tbpp-checkout .woocommerce form.checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	float: none;
	width: auto;
	margin: 0;
	padding: 28px 28px 8px;
	border-radius: var(--tbp-radius) var(--tbp-radius) 0 0;
	background: var(--tbp-tint);
}

.tbpp-checkout .woocommerce form.checkout #order_review {
	grid-column: 2;
	grid-row: 2;
	float: none;
	width: auto;
	padding: 0 28px 28px;
	border-radius: 0 0 var(--tbp-radius) var(--tbp-radius);
	background: var(--tbp-tint);
}

.tbpp-checkout .woocommerce table.shop_table {
	margin: 0 0 16px;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
}

.tbpp-checkout .woocommerce table.shop_table th,
.tbpp-checkout .woocommerce table.shop_table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--tbp-line);
	background: none;
	text-transform: none;
	letter-spacing: 0;
}

.tbpp-checkout .woocommerce table.shop_table thead th {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tbp-muted);
}

.tbpp-checkout .woocommerce table.shop_table td.product-total,
.tbpp-checkout .woocommerce table.shop_table tfoot td,
.tbpp-checkout .woocommerce table.shop_table thead th.product-total {
	text-align: right;
}

.tbpp-checkout .woocommerce table.shop_table td.product-name {
	color: var(--tbp-ink);
}

.tbpp-checkout .woocommerce table.shop_table tfoot th {
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-checkout .woocommerce table.shop_table tfoot .order-total th,
.tbpp-checkout .woocommerce table.shop_table tfoot .order-total td {
	border-bottom: 0;
}

.tbpp-checkout .woocommerce table.shop_table tfoot .order-total strong .amount {
	font-family: var(--tbp-head);
	font-size: 22px;
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-checkout .woocommerce table.shop_table .includes_tax {
	display: block;
	font-size: 13.5px;
	color: var(--tbp-muted);
}

/* Payment */

.tbpp-checkout .woocommerce #payment {
	border: 1px solid var(--tbp-line);
	border-radius: 12px;
	background: #fff;
}

.tbpp-checkout .woocommerce #payment ul.payment_methods {
	margin: 0;
	padding: 18px 20px 6px;
	border: 0;
}

.tbpp-checkout .woocommerce #payment ul.payment_methods li {
	margin: 0 0 12px;
	line-height: 1.5;
}

.tbpp-checkout .woocommerce #payment ul.payment_methods li label {
	font-weight: 600;
	color: var(--tbp-ink);
}

.tbpp-checkout .woocommerce #payment div.payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff;
	font-size: 14.5px;
	color: var(--tbp-text);
}

.tbpp-checkout .woocommerce #payment div.payment_box::before {
	display: none;
}

.tbpp-checkout .woocommerce #payment div.form-row.place-order {
	margin: 0;
	padding: 4px 20px 20px;
	border: 0;
	background: none;
}

.tbpp-checkout .woocommerce #payment .woocommerce-privacy-policy-text p {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--tbp-muted);
}

.tbpp-checkout .woocommerce #payment #place_order {
	float: none;
	width: 100%;
	min-height: 54px;
	margin-top: 12px;
	font-size: 17px;
	line-height: 50px;
}

.tbpp-checkout .woocommerce .ppc-button-wrapper {
	margin-top: 16px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
	.tbpp-cart .woocommerce:has(> .woocommerce-cart-form),
	.tbpp-checkout .woocommerce form.checkout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
	}

	.tbpp-checkout .woocommerce form.checkout #customer_details,
	.tbpp-checkout .woocommerce form.checkout #order_review_heading,
	.tbpp-checkout .woocommerce form.checkout #order_review {
		grid-column: 1;
		grid-row: auto;
	}

	.tbpp-checkout .woocommerce form.checkout #order_review_heading {
		margin-top: 28px;
	}
}

@media (max-width: 767px) {
	.tbpp-cart .woocommerce table.shop_table_responsive tr:nth-child(2n) td,
	.tbpp-cart .woocommerce table.shop_table_responsive tr td,
	.tbpp-cart .woocommerce .cart_totals table.shop_table_responsive tr:nth-child(2n) td {
		background: none;
	}

	.tbpp-cart .woocommerce table.cart td.actions .coupon .button {
		flex: 0 0 auto;
		padding: 0 16px;
		white-space: nowrap;
	}

	.tbpp-shop #main #content-wrap {
		padding-top: 28px;
		padding-bottom: 48px;
	}

	.tbpp-cart .woocommerce table.cart td.actions .coupon {
		float: none;
		margin-bottom: 12px;
	}

	.tbpp-cart .woocommerce table.cart td.actions .coupon .input-text {
		flex: 1 1 auto;
		width: auto;
	}

	.tbpp-cart .woocommerce table.cart td.actions button[name="update_cart"] {
		width: 100%;
	}

	.tbpp-cart .woocommerce .cart-collaterals .cart_totals,
	.tbpp-checkout .woocommerce form.checkout #order_review {
		padding-left: 20px;
		padding-right: 20px;
	}

	.tbpp-checkout .woocommerce form.checkout #order_review_heading {
		padding-left: 20px;
		padding-right: 20px;
	}

	.tbpp-shop .woocommerce form .form-row-first,
	.tbpp-shop .woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbpp-shop .woocommerce a.button,
	.tbpp-shop .woocommerce button.button,
	.tbpp-shop .woocommerce #place_order {
		transition: none;
	}
}
