/*
 * WooCommerce pieces that the landing stylesheet does not cover: notices, the
 * checkout that lives inside the purchase card, and the cart, checkout, and
 * thank-you pages. Loaded after the WooCommerce stylesheets so these rules win.
 */

/* Notices use the same voice as the status line under the buy button. */
.brand a {
	color: inherit;
	text-decoration: none;
}

.product-card .woocommerce-notices-wrapper {
	margin: 0 0 18px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--green);
	border-radius: 12px;
	background: #eef4ef;
	color: var(--green-dark);
	font-size: .86rem;
	font-weight: 700;
	list-style: none;
}

.woocommerce-error {
	border-left-color: #a33a2b;
	background: #fdf1ee;
	color: #a33a2b;
}

.woocommerce-info {
	border-left-color: var(--orange);
	background: #fff8ee;
	color: var(--ink);
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: inherit;
}

/* The card carries the checkout once a ball is in the cart. */
.product-card .woocommerce {
	max-width: none;
}

/* WooCommerce floats the first address column at 48%; the card is one column. */
.product-card form.checkout .col2-set .col-1 {
	float: none;
	width: 100%;
}

.product-card form.checkout .col2-set .col-2 {
	display: none;
}

/* The state field is enhanced by select2, which draws its own box.
   WooCommerce's forms.css gives the rendered value .5em of padding on every
   side and select2 adds a -4px bottom margin; left alone the text sits low
   inside the fixed height box and the row is shorter than its neighbours. */
.product-card form.checkout .select2-container .select2-selection--single {
	height: 47px;
	margin-bottom: 0;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.product-card form.checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 24px 0 12px;
	line-height: 44px;
	color: var(--ink);
}

.product-card form.checkout .select2-container .select2-selection--single .select2-selection__arrow {
	top: 2px;
	height: 43px;
}

.product-card form.checkout .select2-container.select2-container--focus .select2-selection--single {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(29, 91, 71, .12);
}

/* What the shopper chose, above the checkout. */
.pb-summary {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.pb-summary-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.pb-summary-title {
	margin: 0;
	color: var(--green-dark);
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pb-summary-edit {
	font-size: .8rem;
	font-weight: 800;
	color: var(--green-dark);
}

.pb-summary-line {
	margin: 6px 0 0;
	font-size: .9rem;
	font-weight: 700;
	color: var(--ink);
}

.pb-summary-price {
	float: right;
	color: var(--green-dark);
	font-weight: 900;
}

/* Payment and its button sit at the foot of the card. */
.product-card #payment {
	margin-top: 4px;
	padding: 0;
	background: transparent;
}

.product-card #payment ul.payment_methods {
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--line);
	list-style: none;
}

.product-card #payment ul.payment_methods li {
	margin-bottom: 4px;
	list-style: none;
}

.product-card #payment .form-row.place-order {
	margin: 0;
	padding: 0;
}

.product-card #place_order {
	float: none;
	width: 100%;
}

/* The card is a single narrow column, so its rows are tighter than the
   full-width checkout page would make them. */
.product-card form.checkout .form-row label {
	margin-bottom: 6px;
	line-height: 1.5;
}

.product-card form.checkout .form-row input.input-text,
.product-card form.checkout .form-row textarea,
.product-card form.checkout .form-row select {
	padding: 10px 12px;
}

.product-card form.checkout .woocommerce-additional-fields {
	margin-top: 4px;
}

.product-card .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 0;
}

.product-card #payment .terms {
	float: none;
	padding: 0;
}

/* Form fields follow the personalization form's look. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select {
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font: inherit;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(29, 91, 71, .12);
	outline: 0;
}

/* Buttons keep the orange call-to-action from the landing page. */
.woocommerce #place_order,
.woocommerce .button,
.woocommerce-page .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	padding: 14px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--orange);
	color: #fff;
	font-size: .95rem;
	font-weight: 900;
	line-height: 1.2;
}

.woocommerce #place_order:hover,
.woocommerce .button:hover,
.woocommerce-page .button:hover {
	background: #bd542f;
	color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--green);
}

/* Order review and cart tables stay readable on the paper background. */
.woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--card);
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid var(--line);
	font-size: .86rem;
}

.woocommerce table.shop_table thead th {
	border-top: 0;
	background: rgba(29, 91, 71, .06);
}

.woocommerce-checkout-review-order-table .order-total .amount,
.woocommerce-Price-amount {
	color: var(--green-dark);
	font-weight: 900;
}

/* Cart and checkout pages render inside the shared page shell. */
.pb-page {
	padding: 30px 0 80px;
}

.pb-page h1 {
	max-width: 900px;
	margin-bottom: 22px;
	font-size: clamp(2rem, 5vw, 3.2rem);
}

.pb-page-content {
	max-width: 900px;
	color: var(--ink);
	font-size: .95rem;
}

.pb-page-content .woocommerce {
	margin-top: 10px;
}

.woocommerce .woocommerce-customer-details address,
.woocommerce ul.order_details {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	padding: 16px 18px;
	font-size: .86rem;
}

.woocommerce ul.order_details li {
	border-bottom: 1px solid var(--line);
}

.woocommerce ul.order_details li:last-child {
	border-bottom: 0;
}

/* The support note under the customer details on the order pages. */
.woocommerce .pb-order-support {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: .9rem;
}

.woocommerce .pb-order-support a {
	color: var(--green-dark);
	font-weight: 700;
}

@media (max-width: 760px) {
	.pb-page {
		padding-bottom: 60px;
	}
}
