/**
 * Cart, checkout and account pages in Yuna's look.
 *
 * Loaded with the Cart and Checkout blocks (wp_enqueue_block_style) and on
 * the account pages (functions.php). Colours, fonts and the input and
 * button sizes come from the active style (the Yuna skin), so this file
 * only sets the layout and the details theme.json can't reach.
 *
 * Measured from yunaboutique.gr at 1440px:
 * - Cart: items on the left (63%), a grey #f5f5f5 totals box on the right
 *   with 30px padding, rows divided by dashed lines.
 * - Checkout: fields on the left (60%), the order summary on the right in
 *   a #fbfbfc box with a light border, section headings 24px.
 * - Login: a centred 551px form, "Login" heading 28px, half-width button.
 */

/* ---------- Shared: totals, coupons, quantity, notices ---------- */

body :is(.wc-block-cart, .wc-block-checkout) {
	--yuna-shop-line: var(--wp--preset--color--border, #ebebeb);
	color: var(--wp--preset--color--body, #545454);
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-wrapper {
	padding: 20px 0;
	border-top: 1px solid var(--yuna-shop-line);
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--contrast, #000);
	font-weight: 600;
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-item__value {
	color: var(--wp--preset--color--contrast, #000);
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1rem;
	font-weight: 700;
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-coupon .wc-block-components-panel__button {
	color: var(--wp--preset--color--contrast, #000);
	font-weight: 500;
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-coupon__form {
	gap: 8px;
}

/* Square inputs and buttons, like the rest of the site. */
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-quantity-selector,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-text-input.wc-block-components-text-input input,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-textarea.wc-block-components-textarea,
body :is(.wc-block-cart, .wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__select,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link) {
	border-radius: var(--wp--custom--input--radius, 0);
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-text-input.wc-block-components-text-input input,
body :is(.wc-block-cart, .wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__select,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-textarea.wc-block-components-textarea {
	border-color: var(--yuna-shop-line);
	background: var(--wp--preset--color--base, #fff);
	transition: border-color var(--wp--custom--animation--duration, 0.4s) var(--wp--custom--animation--easing, ease);
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-text-input.wc-block-components-text-input input:hover,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-text-input.wc-block-components-text-input input:focus,
body :is(.wc-block-cart, .wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__select:hover,
body :is(.wc-block-cart, .wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-textarea.wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--contrast, #000);
	box-shadow: none;
	outline: none;
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link) {
	min-height: 45px;
	font-size: var(--wp--custom--button--font-size, 0.875rem);
	font-weight: var(--wp--custom--button--font-weight, 600);
}

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

/* Items 63%, totals 37% (a 460px box after the 30px gap), as on Yuna. */
.wc-block-cart.wc-block-components-sidebar-layout .wc-block-cart__main {
	width: 63%;
	padding-right: 0;
}

.wc-block-cart.wc-block-components-sidebar-layout .wc-block-cart__sidebar {
	width: calc(37% - 30px);
	margin-left: 30px;
	padding: 30px;
	align-self: flex-start;
	background: var(--wp--preset--color--surface, #f5f5f5);
}

.wp-block-woocommerce-cart.is-medium .wc-block-cart .wc-block-cart__main,
.wp-block-woocommerce-cart.is-small .wc-block-cart .wc-block-cart__main,
.wp-block-woocommerce-cart.is-mobile .wc-block-cart .wc-block-cart__main,
.wp-block-woocommerce-cart.is-medium .wc-block-cart .wc-block-cart__sidebar,
.wp-block-woocommerce-cart.is-small .wc-block-cart .wc-block-cart__sidebar,
.wp-block-woocommerce-cart.is-mobile .wc-block-cart .wc-block-cart__sidebar {
	width: 100%;
	margin-left: 0;
}

/* Table: a black header row with a solid line, items divided by dashes. */
.wc-block-cart .wc-block-cart-items {
	border-bottom: 0;
}

.wc-block-cart .wc-block-cart-items th {
	padding: 0 12px 13px 0;
	border-bottom: 1px solid var(--yuna-shop-line);
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1rem;
	font-weight: 600;
	text-transform: none;
}

.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row td {
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 0;
	border-bottom: 1px dashed var(--yuna-shop-line);
}

/* The block makes the total cell a flex box, which stops it stretching to
   the row's height (and its line from meeting the others). */
.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	display: table-cell;
	text-align: right;
}

.wc-block-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	align-items: flex-end;
}

.wc-block-cart .wc-block-cart-items .wc-block-cart-item__image {
	width: 90px;
	padding-right: 12px;
}

.wc-block-cart .wc-block-cart-item__image img {
	width: 78px;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.wc-block-cart .wc-block-components-product-name {
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
	transition: color var(--wp--custom--animation--duration, 0.4s) var(--wp--custom--animation--easing, ease);
}

.wc-block-cart .wc-block-components-product-name:hover {
	color: var(--wp--preset--color--primary, #9e164e);
}

/* Yuna's cart shows the name, options and price, not the description. */
.wc-block-cart .wc-block-components-product-metadata__description {
	display: none;
}

.wc-block-cart .wc-block-cart-item__prices,
.wc-block-cart .wc-block-cart-item__total {
	color: var(--wp--preset--color--contrast, #000);
}

.wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price {
	font-weight: 400;
}

body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-sale-badge {
	border: 0;
	border-radius: var(--wp--custom--badge--radius, 100px);
	background: var(--wp--preset--color--badge-sale, #d64045);
	color: var(--wp--preset--color--badge-text, #fff);
}

.wc-block-cart .wc-block-components-quantity-selector {
	height: 40px;
	border-color: var(--yuna-shop-line);
}

.wc-block-cart .wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-cart .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--contrast, #000);
}

.wc-block-cart .wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--primary, #9e164e);
}

/* Totals: the sidebar is one grey box holding the summary and the
   checkout button (set on the sidebar above). */

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
	border-bottom: 0;
}

.wc-block-cart .wc-block-cart__totals-title {
	margin: 0 0 14px;
	padding: 0;
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1.125rem;
	font-weight: 500;
	text-align: left;
	text-transform: none;
}

.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	border-top: 0;
	border-bottom: 1px solid var(--yuna-shop-line);
}

.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
	border-bottom: 0;
}

.wc-block-cart .wc-block-cart__submit {
	margin-bottom: 0;
}

.wc-block-cart .wc-block-cart__submit-container {
	padding: 0;
}

/* Cross-sells under the items. */
.wc-block-cart .wc-block-cart__main .wp-block-woocommerce-product-collection {
	margin-bottom: 0;
}

/* Empty cart. */
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	margin-bottom: 10px;
	color: var(--wp--preset--color--contrast, #000);
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
	display: none;
}

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

/* Fields 60%, the order summary 40%, as on Yuna. */
.wc-block-checkout.wc-block-components-sidebar-layout .wc-block-checkout__main {
	width: 60%;
	padding-right: 24px;
}

.wc-block-checkout.wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
	width: 40%;
	padding-left: 0;
}

.wp-block-woocommerce-checkout.is-medium .wc-block-checkout .wc-block-checkout__main,
.wp-block-woocommerce-checkout.is-small .wc-block-checkout .wc-block-checkout__main,
.wp-block-woocommerce-checkout.is-mobile .wc-block-checkout .wc-block-checkout__main,
.wp-block-woocommerce-checkout.is-medium .wc-block-checkout .wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout.is-small .wc-block-checkout .wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout.is-mobile .wc-block-checkout .wc-block-checkout__sidebar {
	width: 100%;
	padding-right: 0;
}

.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
}

.wc-block-checkout .wc-block-components-checkout-step__description {
	margin-bottom: 16px;
}

/* Contact and address fields sit in a light bordered box. Payment and
   shipping options have their own borders already. */
.wc-block-checkout :is(.wc-block-checkout__contact-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__shipping-fields) > .wc-block-components-checkout-step__content {
	padding: 30px;
	border: 1px solid var(--yuna-shop-line);
}

.wc-block-checkout .wc-block-components-checkout-step::after,
.wc-block-checkout .wc-block-components-checkout-step__heading-container::before {
	display: none;
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin-bottom: 40px;
	padding-left: 0;
}

.wc-block-checkout .wc-block-components-checkout-step__heading {
	margin: 0 0 24px;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label {
	color: var(--wp--preset--color--body, #545454);
}

.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	color: var(--wp--preset--color--contrast, #000);
}

/* The chosen payment or shipping option: one thin black frame, square. */
.wc-block-checkout .wc-block-components-radio-control--highlight-checked::after {
	border: 1px solid var(--wp--preset--color--contrast, #000);
	border-radius: 0;
}

.wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: 0;
	box-shadow: none;
}

.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control__option {
	border-radius: 0;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button {
	width: 100%;
}

.wc-block-checkout .wc-block-checkout__actions_row {
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 20px;
}

.wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
	align-self: center;
	color: var(--wp--preset--color--contrast, #000);
	text-decoration: underline;
}

.wc-block-checkout .wc-block-components-checkout-return-to-cart-button svg {
	display: none;
}

/* Order summary box, like Yuna's "Your order". */
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	padding: 18px 30px 30px;
	border: 1px solid var(--yuna-shop-line);
	border-radius: 0;
	background: #fbfbfc;
}

.wc-block-checkout .wc-block-components-checkout-order-summary__title {
	padding: 10px 0 20px;
}

.wc-block-checkout .wc-block-components-order-summary {
	padding: 0;
}

.wc-block-checkout .wc-block-components-order-summary-item__image img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.wc-block-checkout .wc-block-components-order-summary-item__quantity {
	border-color: var(--wp--preset--color--contrast, #000);
	background: var(--wp--preset--color--contrast, #000);
	color: var(--wp--preset--color--base, #fff);
	box-shadow: none;
}

.wc-block-checkout .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-order-summary-item__total-price {
	color: var(--wp--preset--color--contrast, #000);
}

.wc-block-checkout .wc-block-components-product-metadata__description {
	display: none;
}

/* ---------- Account (classic WooCommerce templates) ---------- */

/* Logged out: Yuna's centred login form. */
.woocommerce-account .woocommerce:has(> .woocommerce-form-login),
.woocommerce-account .woocommerce:has(> .u-columns) {
	max-width: 551px;
	margin-right: auto;
	margin-left: auto;
}

.woocommerce-account .woocommerce > h2,
.woocommerce-account #customer_login h2 {
	margin: 0 0 30px;
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1.75rem;
	font-weight: 400;
	text-align: center;
}

.woocommerce-account:has(.woocommerce-form-login) .yuna-account-title {
	display: none;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce-account .woocommerce .form-row {
	position: relative;
	margin: 0 0 21px;
	padding: 0;
}

.woocommerce-account .woocommerce .form-row input.input-text {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
}

/* Labels sit inside the field, like a placeholder, and step aside once
   something is typed (the script gives each field a blank placeholder so
   :placeholder-shown works). */
.woocommerce-account .woocommerce .form-row:has(> input.input-text, > .password-input) > label {
	position: absolute;
	top: 14px;
	left: 18px;
	z-index: 1;
	margin: 0;
	color: var(--wp--preset--color--body, #545454);
	font-size: var(--wp--custom--input--font-size, 0.875rem);
	line-height: 22px;
	pointer-events: none;
	transition: opacity var(--wp--custom--animation--duration, 0.4s) var(--wp--custom--animation--easing, ease);
}

.woocommerce-account .woocommerce .form-row:has(input.input-text:focus, input.input-text:not(:placeholder-shown)) > label {
	opacity: 0;
}

.woocommerce-account .woocommerce .form-row .required {
	color: inherit;
	text-decoration: none;
}

.woocommerce-account .password-input {
	position: relative;
	display: block;
}

.woocommerce-account .show-password-input {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
}

/* Login: fields, then "Remember me" and "Lost your password?" on one
   line, then the button at half width, like the original. WooCommerce puts
   the checkbox and the button in one paragraph, so it is unwrapped. */
.woocommerce-account .woocommerce-form-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.woocommerce-account .woocommerce-form-login > * {
	flex: 0 0 100%;
}

.woocommerce-account .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
	display: contents;
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	order: 1;
	margin: 0 0 24px;
}

.woocommerce-account .woocommerce-form-login .woocommerce-LostPassword {
	flex: 0 0 auto;
	order: 2;
	margin: 0 0 24px;
}

/* Breaks the line after "Lost your password?", so the button starts a
   new one. */
.woocommerce-account .woocommerce-form-login::after {
	content: "";
	flex: 0 0 100%;
	order: 2;
}

.woocommerce-account .woocommerce-form-login__submit {
	flex: 0 0 50%;
	order: 3;
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit,
.woocommerce-account .lost_reset_password button {
	width: 50%;
	min-height: 45px;
	margin: 0;
}

.woocommerce-account .woocommerce-LostPassword a,
.woocommerce-account a.woocommerce-lost-password {
	color: var(--wp--preset--color--contrast, #000);
	text-decoration: underline;
}

/* Logged in: the menu on the left, the content on the right. */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(200px, 25%) 1fr;
	gap: 50px;
	align-items: start;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
	grid-column: 1 / -1;
}

/* WooCommerce's clearfix pseudo-elements would take grid cells, and its
   float widths and max width aren't needed in the grid. */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
	display: none;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--wp--preset--color--border, #ebebeb);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid var(--wp--preset--color--border, #ebebeb);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	display: block;
	padding: 14px 20px;
	color: var(--wp--preset--color--body, #545454);
	font-size: 1rem;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: var(--wp--preset--color--contrast, #000);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--wp--preset--color--surface, #f5f5f5);
	font-weight: 600;
}

.woocommerce-MyAccount-content {
	min-width: 0;
	color: var(--wp--preset--color--body, #545454);
}

.woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}

.woocommerce-MyAccount-content a:not(.button, .wp-element-button) {
	color: var(--wp--preset--color--contrast, #000);
	text-decoration: underline;
}

.woocommerce-account .woocommerce table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce-account .woocommerce table.shop_table th {
	padding: 0 12px 13px 0;
	border-bottom: 1px solid var(--wp--preset--color--border, #ebebeb);
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
}

.woocommerce-account .woocommerce table.shop_table td {
	padding: 18px 12px 18px 0;
	border-top: 0;
	border-bottom: 1px dashed var(--wp--preset--color--border, #ebebeb);
}

.woocommerce-account .woocommerce table.shop_table td .button {
	margin: 0 4px 4px 0;
	padding: 10px 14px;
	font-size: var(--wp--preset--font-size--extra-small, 0.75rem);
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	display: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	width: auto;
	padding: 30px;
	border: 1px solid var(--wp--preset--color--border, #ebebeb);
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-MyAccount-content h2 {
	margin: 0 0 16px;
	color: var(--wp--preset--color--contrast, #000);
	font-size: 1.5rem;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
	margin: 30px 0;
	padding: 30px;
	border: 1px solid var(--wp--preset--color--border, #ebebeb);
}

/* Notices: see notices.css (the same look on every page). */

@media (max-width: 767px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.woocommerce-account .woocommerce-form-login__submit,
	.woocommerce-account .woocommerce-form-register__submit,
	.woocommerce-account .lost_reset_password button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-account .woocommerce .form-row > label,
	body :is(.wc-block-cart, .wc-block-checkout) .wc-block-components-text-input.wc-block-components-text-input input,
	.wc-block-cart .wc-block-components-product-name {
		transition: none;
	}
}

/* ---------- Phones and tablets: cart and checkout in one column ----------
   WooCommerce marks the layout itself as is-mobile / is-small / is-medium
   (the wrapper rules above never matched), so the columns are stacked here. */
.wc-block-cart.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) .wc-block-cart__main,
.wc-block-cart.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) .wc-block-cart__sidebar {
	width: 100%;
	margin-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}
.wc-block-cart.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) .wc-block-cart__sidebar {
	margin-top: 24px;
	padding: 22px 18px;
	align-self: stretch;
}
.wc-block-checkout.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) .wc-block-checkout__main,
.wc-block-checkout.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) .wc-block-checkout__sidebar {
	width: 100%;
	padding-right: 0;
	padding-left: 0;
	box-sizing: border-box;
}
.wc-block-cart.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile),
.wc-block-checkout.wc-block-components-sidebar-layout:is(.is-medium, .is-small, .is-mobile) {
	flex-direction: column;
}

@media (max-width: 781px) {
	/* The sticky "Proceed to checkout" sits above the phone bar, not under it. */
	.wc-block-cart__submit-container--sticky,
	.wc-block-checkout__actions_row.wc-block-checkout__actions--sticky { bottom: var(--yuna-mobile-bar-h, 67px) !important; }
	body.woocommerce-cart main,
	body.woocommerce-checkout main { padding-bottom: 24px !important; }

	/* Less space above the first item. */
	.wc-block-cart .wc-block-cart-items { margin-top: 0; }
	.wc-block-cart .wc-block-cart-items thead { display: none; }
	.yuna-cart-page, .yuna-checkout-page { padding-top: 24px !important; }
}

/* Phones: roomier fields, smaller headings, less padding in the boxes. */
@media (max-width: 781px) {
	.wc-block-checkout .wc-block-components-checkout-step__content { padding: 16px !important; }
	.wc-block-checkout .wc-block-components-checkout-step {
		margin-top: 22px;
		padding-left: 0;
	}
	.wc-block-checkout .wc-block-components-checkout-step__title,
	.wc-block-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text { font-size: 1.25rem; }
	.wc-block-checkout .wc-block-components-checkout-step__heading { margin-bottom: 12px; }
	.wc-block-checkout .wc-block-components-checkout-order-summary__title { padding: 14px 0; }
	.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
	.wc-block-checkout .wc-block-components-order-summary { padding-left: 0; padding-right: 0; }
	.wc-block-checkout .wc-block-checkout__sidebar > * { box-sizing: border-box; }
	.wc-block-checkout .wc-block-components-order-summary-item__image { width: 56px; }
}
@media (max-width: 781px) {
	/* The order summary box: no extra inner padding on top of its border. */
	.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block { padding-left: 16px; padding-right: 16px; }
	.wc-block-checkout .wc-block-components-checkout-order-summary__title { margin: 0; }
}
