/*
 * pgvad shop: WooCommerce shop, category, product, cart and checkout pages.
 * Loaded only on shop pages (inc/shop.php). Palette: see theme.json (contrast checked).
 */

/* ---------- Base ---------- */
.pgvad-shop *, .pgvad-shop *::before, .pgvad-shop *::after { box-sizing: border-box; }
.pgvad-shop label { margin: 0; }

/* ---------- Shop head ---------- */
.pgvad-shop { padding-block: 1.5rem 4rem; }
.pgvad-shop-head { margin-block: 1rem 1.5rem; }
.pgvad-shop-head h1,
.pgvad-shop__title { margin: 0 0 .5rem; color: var(--pg-forest); font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.15; }
.pgvad-shop-head__lead { margin: 0 0 .25rem; max-width: 60ch; color: var(--pg-muted); font-size: 1.125rem; }
.pgvad-shop-head__count { margin: 0; color: var(--pg-muted); font-size: .9375rem; }

/* ---------- Tools: categories + filter form ---------- */
.pgvad-shop-tools {
	display: grid; gap: 1rem; margin-bottom: 2rem; padding: 1.25rem;
	background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
}
.pgvad-shop-cats ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pgvad-shop-cats a {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem;
	border: 1px solid var(--pg-line); border-radius: 999px; background: #fff;
	color: var(--pg-forest); font-weight: 600; text-decoration: none;
	transition: background var(--pg-speed) ease-out, border-color var(--pg-speed) ease-out, color var(--pg-speed) ease-out;
}
.pgvad-shop-cats a:hover { border-color: var(--pg-green); }
.pgvad-shop-cats a[aria-current="page"] { background: var(--pg-forest); border-color: var(--pg-forest); color: #fff; }
.pgvad-shop-cats__count {
	min-width: 1.5rem; padding: 0 .375rem; border-radius: 999px; background: var(--pg-surface);
	color: var(--pg-ink); font-size: .8125rem; font-weight: 700; text-align: center;
}
.pgvad-shop-cats a[aria-current="page"] .pgvad-shop-cats__count { background: #fff; color: var(--pg-forest); }

.pgvad-shop-cats + .pgvad-shop-filter { padding-top: 1rem; border-top: 1px solid var(--pg-line); }
.pgvad-shop-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.pgvad-shop-filter__field { display: flex; flex-direction: column; gap: .375rem; flex: 0 1 9rem; min-width: 7rem; }
.pgvad-shop-filter__field--sort { flex: 1 1 14rem; max-width: 18rem; }
.pgvad-shop-filter label { color: var(--pg-ink); font-size: .875rem; font-weight: 600; }
.pgvad-shop-filter input,
.pgvad-shop-filter select {
	width: 100%; height: 48px; margin: 0; padding: 0 .75rem; border: 1px solid var(--pg-muted); border-radius: 8px;
	background: #fff; color: var(--pg-ink); font: inherit; font-size: 1rem; line-height: 1;
}
.pgvad-shop-filter input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.pgvad-shop-filter input::-webkit-inner-spin-button,
.pgvad-shop-filter input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pgvad-shop-filter__actions .wp-element-button { height: 48px; padding-block: 0; }
.pgvad-shop-filter input::placeholder { color: var(--pg-muted); opacity: 1; }
.pgvad-shop-filter input:focus-visible,
.pgvad-shop-filter select:focus-visible { outline: 3px solid var(--pg-green); outline-offset: 1px; border-color: var(--pg-green); }
.pgvad-shop-filter__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
@media (max-width: 599px) {
	.pgvad-shop-filter__field { flex: 1 1 40%; }
	.pgvad-shop-filter__field--sort { flex-basis: 100%; max-width: none; }
	.pgvad-shop-filter__actions { flex-basis: 100%; margin-left: 0; }
	.pgvad-shop-filter__actions .wp-element-button { flex: 1; }
}
.pgvad-shop-filter__actions .wp-element-button { min-height: 48px; cursor: pointer; }
.pgvad-shop-filter__clear { color: var(--pg-green); font-weight: 600; }

/* ---------- Product cards ---------- */
.pgvad-products .wc-block-product-template { gap: 1.5rem; margin: 0; padding: 0; }
/* Fixed grid: 4 per row on desktop, 2 on tablets and phones (WooCommerce "responsive" mode fit only 2). */
.pgvad-products .wc-block-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgvad-products .wc-block-product-template > .wc-block-product { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (min-width: 1024px) { .pgvad-products .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pgvad-products .wc-block-product {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
	transition: box-shadow var(--pg-speed) ease-out, transform var(--pg-speed) ease-out;
}
.pgvad-products .wc-block-product:hover { box-shadow: var(--pg-shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pgvad-products .wc-block-product:hover { transform: none; } }
.pgvad-products .wc-block-components-product-image { margin: 0 !important; background: var(--pg-surface); }
.pgvad-products .wc-block-components-product-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pgvad-products .wc-block-components-product-sale-badge {
	position: absolute; top: .75rem; left: .75rem; right: auto; margin: 0; padding: .25rem .625rem;
	border: 0; border-radius: 999px; background: var(--wp--preset--color--amber); color: #fff;
	font-size: .8125rem; font-weight: 700; text-transform: none;
}
.pgvad-card__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem 1.25rem; }
.pgvad-card__cat { margin: 0; color: var(--pg-muted); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pgvad-card__cat a { color: inherit; text-decoration: none; }
.pgvad-card__cat a:hover { color: var(--pg-green); text-decoration: underline; }
.pgvad-card__title { margin: 0 !important; font-size: 1.1875rem !important; line-height: 1.3; }
.pgvad-card__title a { color: var(--pg-forest); text-decoration: none; }
.pgvad-card__title a:hover { color: var(--pg-green); text-decoration: underline; }
/* Whole card clickable through the title link; other links stay above it. */
.pgvad-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pgvad-card__cat a,
.pgvad-card__btn { position: relative; z-index: 2; }
.pgvad-card__price { margin: auto 0 0 !important; padding-top: .25rem; color: var(--pg-ink); font-size: 1.25rem !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.pgvad-card__price del { color: var(--pg-muted); font-size: .9375rem; font-weight: 400; }
.pgvad-card__price ins { text-decoration: none; }
.pgvad-card__btn { margin: .5rem 0 0 !important; }
.pgvad-card__btn .wp-block-button__link,
.pgvad-card__btn .wc-block-components-product-button__button {
	width: 100%; min-height: 48px; margin: 0; border-radius: 8px; font-size: 1rem; font-weight: 600; justify-content: center;
}
.pgvad-card__btn .added_to_cart { display: inline-block; margin-top: .5rem; color: var(--pg-green); font-weight: 600; }
@media (max-width: 600px) {
	.pgvad-products .wc-block-product-template { gap: .75rem; }
	.pgvad-card__body { gap: .375rem; padding: .75rem .75rem .875rem; }
	.pgvad-card__cat { font-size: .75rem; }
	.pgvad-card__title { font-size: 1rem !important; }
	.pgvad-card__price { font-size: 1.0625rem !important; }
	.pgvad-card__btn .wp-block-button__link,
	.pgvad-card__btn .wc-block-components-product-button__button { min-height: 44px; padding: .5rem; font-size: .875rem; line-height: 1.2; }
}

/* Pagination */
.pgvad-shop .wp-block-query-pagination { gap: .5rem; margin-top: 2.5rem; }
.pgvad-shop .wp-block-query-pagination a,
.pgvad-shop .wp-block-query-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem;
	border: 1px solid var(--pg-line); border-radius: 8px; color: var(--pg-forest); text-decoration: none; font-weight: 600;
}
.pgvad-shop .wp-block-query-pagination .current { background: var(--pg-forest); border-color: var(--pg-forest); color: #fff; }

/* Empty state */
.pgvad-shop-empty { padding: 3rem 1.5rem; border: 1px dashed var(--pg-muted); border-radius: var(--pg-radius); text-align: center; }
.pgvad-shop-empty__title { margin: 0 0 .5rem; color: var(--pg-forest); font-size: 1.375rem; font-weight: 600; }

/* ---------- Single product ---------- */
.pgvad-product { display: grid; gap: 2rem; align-items: start; margin-top: 1rem; }
@media (min-width: 900px) {
	.pgvad-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; }
	.pgvad-product__buy { position: sticky; top: 1.5rem; }
}
.pgvad-product > * { margin: 0 !important; }
.pgvad-product__media .woocommerce-product-gallery { margin: 0; }
.pgvad-product__media img { border-radius: var(--pg-radius); background: var(--pg-surface); }
.pgvad-product__media .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.pgvad-product__media .flex-control-thumbs li { width: 5rem; }
.pgvad-product__media .flex-control-thumbs img { border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: .75; }
.pgvad-product__media .flex-control-thumbs img.flex-active,
.pgvad-product__media .flex-control-thumbs img:hover { border-color: var(--pg-green); opacity: 1; }
.pgvad-product__media .woocommerce-product-gallery__trigger { z-index: 3; }

.pgvad-product__buy { display: flex; flex-direction: column; gap: 1rem; }
.pgvad-product__buy > * { margin: 0 !important; }
.pgvad-product__cat { color: var(--pg-muted); font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pgvad-product__cat a { color: inherit; }
.pgvad-product__title { color: var(--pg-forest); font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem) !important; line-height: 1.15; }
.pgvad-product__price { color: var(--pg-ink); font-size: 1.75rem !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.pgvad-product__price del { color: var(--pg-muted); font-size: 1.125rem; font-weight: 400; }
.pgvad-product__price ins { text-decoration: none; }
.pgvad-product__excerpt { color: var(--pg-ink); font-size: 1.0625rem; }

.pgvad-product__form { padding: 1.25rem; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
.pgvad-product__form .stock { margin: 0 0 1rem; font-weight: 600; color: var(--pg-green); }
.pgvad-product__form .stock.out-of-stock { color: var(--wp--preset--color--amber); }
.pgvad-product__form form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin: 0; }
.pgvad-product__form .quantity input.qty {
	width: 5.5rem; min-height: 52px; padding: .5rem; border: 1px solid var(--pg-muted); border-radius: 8px;
	background: #fff; color: var(--pg-ink); font: inherit; font-size: 1.125rem; text-align: center;
}
.pgvad-product__form .single_add_to_cart_button {
	flex: 1 1 12rem; min-height: 52px; margin: 0 !important; border-radius: 8px; font-size: 1.0625rem; font-weight: 600; cursor: pointer;
}
.pgvad-product__form table.variations { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.pgvad-product__form table.variations th { padding: .5rem .75rem .5rem 0; text-align: left; }
.pgvad-product__form table.variations select { min-height: 48px; width: 100%; border: 1px solid var(--pg-muted); border-radius: 8px; padding: .5rem; font: inherit; }

.pgvad-product-notes { display: grid; gap: .375rem; margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--pg-green); background: #fff; list-style: none; color: var(--pg-muted); }
.pgvad-product-notes a { color: var(--pg-green); font-weight: 600; }
.pgvad-product__meta { color: var(--pg-muted); font-size: .9375rem; }
.pgvad-product__meta a { color: var(--pg-green); }

/* Description / tabs */
.pgvad-product__details { margin-top: 3rem !important; }
.pgvad-product__details .wc-tabs,
.pgvad-product__details .wp-block-woocommerce-product-details ul.tabs {
	display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.5rem; padding: 0; border-bottom: 1px solid var(--pg-line); list-style: none;
}
.pgvad-product__details ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.pgvad-product__details ul.tabs li a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem;
	border-bottom: 3px solid transparent; color: var(--pg-muted); font-weight: 600; text-decoration: none;
}
.pgvad-product__details ul.tabs li.active a { border-color: var(--pg-green); color: var(--pg-forest); }
.pgvad-product__details .woocommerce-Tabs-panel { max-width: 72ch; }
.pgvad-product__details .woocommerce-Tabs-panel > h2:first-child { font-size: 1.5rem; color: var(--pg-forest); }
.pgvad-product__details table.shop_attributes { width: 100%; border-collapse: collapse; }
.pgvad-product__details table.shop_attributes th,
.pgvad-product__details table.shop_attributes td { padding: .75rem; border-bottom: 1px solid var(--pg-line); text-align: left; vertical-align: top; }
.pgvad-product__details table.shop_attributes p { margin: 0; }

/* Related */
.pgvad-related { margin-top: 4rem !important; padding-top: 2.5rem; border-top: 1px solid var(--pg-line); }
.pgvad-related .wp-block-heading { margin: 0 0 1.5rem; }

/* ---------- Order steps ---------- */
.pgvad-steps { margin: 1rem 0 2rem; }
.pgvad-steps ol { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pgvad-steps li { display: flex; align-items: center; gap: .625rem; color: var(--pg-muted); font-weight: 600; }
.pgvad-steps li + li::before { content: ""; width: 2rem; height: 2px; background: var(--pg-line); }
.pgvad-steps a { display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; color: var(--pg-green); text-decoration: none; }
.pgvad-steps a:hover { text-decoration: underline; }
.pgvad-steps__num {
	display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid currentColor; border-radius: 50%;
	font-size: .875rem; font-variant-numeric: tabular-nums;
}
.pgvad-steps .is-current { color: var(--pg-forest); }
.pgvad-steps .is-current .pgvad-steps__num { background: var(--pg-forest); border-color: var(--pg-forest); color: #fff; }
.pgvad-steps .is-done .pgvad-steps__num { background: var(--pg-green); border-color: var(--pg-green); color: #fff; }
@media (max-width: 599px) {
	.pgvad-steps li + li::before { width: 1rem; }
	.pgvad-steps li:not(.is-current) .pgvad-steps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Checkout header ---------- */
.pgvad-checkout-bar { justify-content: space-between; }
.pgvad-checkout-back {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--pg-green); font-weight: 600; text-decoration: none;
}
.pgvad-checkout-back:hover { text-decoration: underline; }
.pgvad-checkout-back svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Cart & checkout blocks ---------- */
.pgvad-checkout-page { padding-block: 1rem 4rem; }
.pgvad-checkout-page .wp-block-woocommerce-cart,
.pgvad-checkout-page .wp-block-woocommerce-checkout { margin-top: 0; }
.pgvad-checkout-page .wc-block-components-sidebar-layout { gap: 2rem; }
.pgvad-checkout-page .wc-block-components-sidebar .wc-block-components-panel,
.pgvad-checkout-page .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
.pgvad-checkout-page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	padding: 1.25rem; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
}
.pgvad-checkout-page .wc-block-components-product-name { color: var(--pg-forest); font-weight: 600; }
.pgvad-checkout-page .wc-block-components-totals-footer-item { font-size: 1.25rem; font-weight: 700; }
.pgvad-checkout-page .wc-block-components-button:not(.is-link),
.pgvad-checkout-page .wc-block-cart__submit-button,
.pgvad-checkout-page .wc-block-components-checkout-place-order-button {
	min-height: 52px; border-radius: 8px; background: var(--pg-green); color: #fff; font-size: 1.0625rem; font-weight: 600;
}
.pgvad-checkout-page .wc-block-components-button:not(.is-link):hover { background: var(--pg-forest); }
.pgvad-checkout-page .wc-block-components-text-input input,
.pgvad-checkout-page .wc-block-components-textarea,
.pgvad-checkout-page .wc-blocks-components-select__select,
.pgvad-checkout-page .wc-block-components-combobox .components-combobox-control input {
	border-color: var(--pg-muted) !important; border-radius: 8px !important;
}
.pgvad-checkout-page .wc-block-components-checkout-step__title { color: var(--pg-forest); }
.pgvad-checkout-page .wc-block-components-quantity-selector { border-radius: 8px; }
.pgvad-checkout-page .wc-block-components-product-metadata,
.pgvad-checkout-page .wc-block-components-checkout-step__description { color: var(--pg-muted); }

/* Classic notices (shortcode cart/checkout, add-to-cart message) */
.pgvad-shop .woocommerce-message,
.pgvad-shop .woocommerce-info,
.pgvad-shop .woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
	margin: 0 0 1.5rem; padding: 1rem 1.25rem; list-style: none;
	border: 1px solid var(--pg-line); border-left: 4px solid var(--pg-green); border-radius: 8px; background: #fff; color: var(--pg-ink);
}
.pgvad-shop .woocommerce-error { border-left-color: var(--wp--preset--color--amber); }
.pgvad-shop .woocommerce-message .button,
.pgvad-shop .woocommerce-message a { color: var(--pg-green); font-weight: 600; }

/* ---------- Classic cart ([woocommerce_cart]) ---------- */
.pgvad-checkout-page .woocommerce { display: grid; gap: 2rem; }
.pgvad-checkout-page .wc-block-components-notice-banner { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--pg-line); border-left: 4px solid var(--pg-green); border-radius: 8px; background: #fff; }
.pgvad-checkout-page .wc-block-components-notice-banner svg { flex: none; fill: var(--pg-green); }
.pgvad-checkout-page .wc-block-components-notice-banner.is-error { border-left-color: var(--wp--preset--color--amber); }
.pgvad-checkout-page .wc-block-components-notice-banner.is-error svg { fill: var(--wp--preset--color--amber); }
.pgvad-checkout-page .return-to-shop { margin: 0; }
.pgvad-checkout-page .button,
.pgvad-checkout-page button.button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem;
	border: 2px solid var(--pg-green); border-radius: 8px; background: var(--pg-green); color: #fff;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background var(--pg-speed) ease-out, border-color var(--pg-speed) ease-out;
}
.pgvad-checkout-page .button:hover { background: var(--pg-forest); border-color: var(--pg-forest); }
.pgvad-checkout-page .button:disabled,
.pgvad-checkout-page .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.pgvad-checkout-page button[name="update_cart"] { background: #fff; color: var(--pg-forest); }
.pgvad-checkout-page button[name="update_cart"]:hover:not(:disabled) { background: var(--pg-surface); }

@media (min-width: 960px) {
	.woocommerce-cart .pgvad-checkout-page .woocommerce:has(.woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
	.woocommerce-cart .pgvad-checkout-page .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}
.pgvad-checkout-page table.shop_table { width: 100%; border-collapse: collapse; background: #fff; }
.pgvad-checkout-page table.shop_table th { padding: .75rem; border-bottom: 2px solid var(--pg-line); color: var(--pg-muted); font-size: .875rem; text-align: left; }
.pgvad-checkout-page table.shop_table td { padding: 1rem .75rem; border-bottom: 1px solid var(--pg-line); vertical-align: middle; }
.pgvad-checkout-page .product-thumbnail img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 8px; }
.pgvad-checkout-page .product-name a { color: var(--pg-forest); font-weight: 600; }
.pgvad-checkout-page .product-price,
.pgvad-checkout-page .product-subtotal,
.pgvad-checkout-page .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pgvad-checkout-page a.remove {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	color: var(--wp--preset--color--amber); font-size: 1.5rem; text-decoration: none;
}
.pgvad-checkout-page a.remove:hover { background: var(--pg-surface); }
.pgvad-checkout-page .quantity input.qty { width: 5rem; min-height: 44px; padding: .25rem; border: 1px solid var(--pg-muted); border-radius: 8px; font: inherit; text-align: center; }
.pgvad-checkout-page td.actions { padding-top: 1.25rem; }
.pgvad-checkout-page td.actions .coupon { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-right: 1rem; }
.pgvad-checkout-page td.actions .coupon input { min-height: 48px; padding: .5rem .75rem; border: 1px solid var(--pg-muted); border-radius: 8px; font: inherit; }
@media (max-width: 767px) {
	.pgvad-checkout-page table.shop_table_responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.pgvad-checkout-page table.shop_table_responsive tr { display: grid; grid-template-columns: 1fr auto; padding: .75rem 0; border-bottom: 1px solid var(--pg-line); }
	.pgvad-checkout-page table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; padding: .375rem 0; border: 0; grid-column: 1 / -1; }
	.pgvad-checkout-page table.shop_table_responsive td[data-title]::before { content: attr(data-title); color: var(--pg-muted); font-weight: 600; }
	.pgvad-checkout-page table.shop_table_responsive td.product-thumbnail { display: none; }
	.pgvad-checkout-page table.shop_table_responsive td.product-remove { justify-content: flex-end; }
	.pgvad-checkout-page td.actions { display: grid !important; gap: .75rem; }
}

.pgvad-checkout-page .cart-collaterals .cart_totals,
.pgvad-checkout-page #order_review {
	padding: 1.5rem; background: var(--pg-surface); border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
}
.pgvad-checkout-page .cart_totals h2,
.pgvad-checkout-page #order_review_heading,
.pgvad-checkout-page .woocommerce-billing-fields h3,
.pgvad-checkout-page .woocommerce-shipping-fields h3,
.pgvad-checkout-page .woocommerce-additional-fields h3 { margin: 0 0 1rem; color: var(--pg-forest); font-size: 1.375rem; }
.pgvad-checkout-page .cart-collaterals { width: auto; }
.pgvad-checkout-page .cart-collaterals .cart_totals { float: none !important; width: auto !important; }
.pgvad-checkout-page .cart_totals table,
.pgvad-checkout-page #order_review table { background: transparent; }
.pgvad-checkout-page .cart_totals table th { width: auto; white-space: nowrap; padding: .75rem 1rem .75rem 0; color: var(--pg-muted); font-size: 1rem; vertical-align: top; }
.pgvad-checkout-page .cart_totals table td { padding: .75rem 0; text-align: right; }
.pgvad-checkout-page .cart_totals table td::before { display: none; }
.pgvad-checkout-page .cart_totals tr { display: table-row !important; }
.pgvad-checkout-page .cart_totals th,
.pgvad-checkout-page .cart_totals td { display: table-cell !important; }
.pgvad-checkout-page .cart_totals #shipping_method { margin: 0; padding: 0; list-style: none; text-align: left; }
.pgvad-checkout-page .cart_totals .woocommerce-shipping-destination,
.pgvad-checkout-page .cart_totals .shipping-calculator-button { font-size: .875rem; text-align: left; }
.pgvad-checkout-page .order-total th,
.pgvad-checkout-page .order-total td { font-size: 1.25rem; font-weight: 700; color: var(--pg-ink); }
.pgvad-checkout-page .wc-proceed-to-checkout { margin-top: 1.25rem; }
.pgvad-checkout-page .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; font-size: 1.0625rem; }

/* ---------- Classic checkout ([woocommerce_checkout]) ---------- */
.pgvad-checkout-page form.checkout { display: grid; gap: 2rem; }
@media (min-width: 960px) {
	.pgvad-checkout-page form.checkout { grid-template-columns: minmax(0, 1fr) 26rem; align-items: start; }
	.pgvad-checkout-page form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.pgvad-checkout-page #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	.pgvad-checkout-page #order_review_heading,
	.pgvad-checkout-page #order_review { grid-column: 2; }
	.pgvad-checkout-page #order_review_heading { margin: 0 0 -1.5rem; }
	.pgvad-checkout-page #order_review { position: sticky; top: 1.5rem; }
}
.pgvad-checkout-page .col2-set { display: grid; gap: 2rem; width: auto; }
.pgvad-checkout-page .col2-set .col-1,
.pgvad-checkout-page .col2-set .col-2,
.pgvad-checkout-page .form-row-first,
.pgvad-checkout-page .form-row-last,
.pgvad-checkout-page .form-row-wide { float: none !important; width: auto !important; padding: 0 !important; }
.pgvad-checkout-page .col2-set::before, .pgvad-checkout-page .col2-set::after,
.pgvad-checkout-page .woocommerce-billing-fields__field-wrapper::before, .pgvad-checkout-page .woocommerce-billing-fields__field-wrapper::after,
.pgvad-checkout-page .woocommerce-shipping-fields__field-wrapper::before, .pgvad-checkout-page .woocommerce-shipping-fields__field-wrapper::after { display: none; }
.pgvad-checkout-page .form-row .woocommerce-input-wrapper { display: block; }
.pgvad-checkout-page .woocommerce-billing-fields__field-wrapper,
.pgvad-checkout-page .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pgvad-checkout-page .form-row { display: grid; gap: .25rem; margin: 0; grid-column: 1 / -1; }
.pgvad-checkout-page .form-row-first { grid-column: 1; }
.pgvad-checkout-page .form-row-last { grid-column: 2; }
@media (max-width: 599px) {
	.pgvad-checkout-page .woocommerce-billing-fields__field-wrapper,
	.pgvad-checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.pgvad-checkout-page .form-row-first,
	.pgvad-checkout-page .form-row-last { grid-column: 1; }
}
.pgvad-checkout-page .form-row label { color: var(--pg-ink); font-weight: 600; font-size: .9375rem; }
.pgvad-checkout-page .form-row .required { color: var(--wp--preset--color--amber); text-decoration: none; border: 0; }
.pgvad-checkout-page .form-row .optional { color: var(--pg-muted); font-weight: 400; }
.pgvad-checkout-page .input-text,
.pgvad-checkout-page .form-row select,
.pgvad-checkout-page .form-row textarea {
	width: 100%; min-height: 48px; padding: .625rem .75rem; border: 1px solid var(--pg-muted); border-radius: 8px;
	background: #fff; color: var(--pg-ink); font: inherit; font-size: 1rem;
}
.pgvad-checkout-page .form-row textarea { min-height: 7rem; }
.pgvad-checkout-page .input-text:focus-visible,
.pgvad-checkout-page .form-row select:focus-visible,
.pgvad-checkout-page .form-row textarea:focus-visible { outline: 3px solid var(--pg-green); outline-offset: 1px; border-color: var(--pg-green); }
.pgvad-checkout-page .woocommerce-invalid .input-text,
.pgvad-checkout-page .woocommerce-invalid select { border: 2px solid var(--wp--preset--color--amber); }
.pgvad-checkout-page .checkout-inline-error-message { margin: .25rem 0 0; color: var(--wp--preset--color--amber); font-weight: 600; }
.pgvad-checkout-page .select2-container .select2-selection--single { min-height: 48px; border: 1px solid var(--pg-muted); border-radius: 8px; }
.pgvad-checkout-page .select2-container .select2-selection__rendered { line-height: 46px !important; padding-left: .75rem !important; }
.pgvad-checkout-page .select2-container .select2-selection__arrow { height: 46px !important; }

.pgvad-checkout-page #payment { margin-top: 1.25rem; background: transparent; }
.pgvad-checkout-page #payment ul.payment_methods { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pgvad-checkout-page #payment ul.payment_methods > li { padding: .75rem 1rem; border: 1px solid var(--pg-line); border-radius: 8px; background: #fff; }
.pgvad-checkout-page #payment ul.payment_methods > li:has(input:checked) { border-color: var(--pg-green); box-shadow: inset 0 0 0 1px var(--pg-green); }
.pgvad-checkout-page #payment ul.payment_methods label { font-weight: 600; cursor: pointer; }
.pgvad-checkout-page #payment ul.payment_methods input[type="radio"] { width: 1.25rem; height: 1.25rem; margin-right: .5rem; accent-color: var(--pg-green); vertical-align: middle; }
.pgvad-checkout-page #payment .payment_box { margin: .75rem 0 0; padding: .75rem 1rem; border-radius: 8px; background: var(--pg-surface) !important; color: var(--pg-ink); font-size: .9375rem; }
.pgvad-checkout-page #payment .payment_box::before { display: none; }
.pgvad-checkout-page #payment div.form-row.place-order { margin: 0; padding: 0; }
.pgvad-checkout-page #order_review table.shop_table { border: 0; }
.pgvad-checkout-page #order_review table.shop_table th,
.pgvad-checkout-page #order_review table.shop_table td { padding: .75rem 0; border: 0; border-bottom: 1px solid var(--pg-line); background: transparent; }
.pgvad-checkout-page #order_review table.shop_table td:last-child,
.pgvad-checkout-page #order_review table.shop_table th:last-child { text-align: right; }
.pgvad-checkout-page #order_review .product-name { width: 60%; }
.pgvad-checkout-page #order_review .product-quantity { color: var(--pg-muted); font-weight: 400; }
.pgvad-checkout-page #order_review tfoot th { color: var(--pg-muted); font-weight: 600; }
.pgvad-checkout-page #order_review tfoot tr:last-child th,
.pgvad-checkout-page #order_review tfoot tr:last-child td { border-bottom: 0; }
.pgvad-checkout-page #shipping_method { margin: 0; padding: 0; list-style: none; }
.pgvad-checkout-page #shipping_method li { margin: 0 0 .25rem; }
.pgvad-checkout-page #payment .payment_box p { margin: 0; }
.pgvad-checkout-page .woocommerce-terms-and-conditions-wrapper { margin-bottom: 1rem; font-size: .9375rem; color: var(--pg-muted); }
.pgvad-checkout-page .woocommerce-form__label-for-checkbox { display: flex; gap: .5rem; align-items: flex-start; color: var(--pg-ink); }
.pgvad-checkout-page input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: .125rem; accent-color: var(--pg-green); }
.pgvad-checkout-page #place_order { width: 100%; min-height: 56px; font-size: 1.125rem; }
.pgvad-checkout-page .woocommerce-form-coupon-toggle,
.pgvad-checkout-page .woocommerce-form-login-toggle { margin: 0; }
.pgvad-checkout-page form.checkout_coupon,
.pgvad-checkout-page form.woocommerce-form-login { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: 1.25rem; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }

/* Order received */
.pgvad-checkout-page .woocommerce-thankyou-order-received { margin: 0; padding: 1.25rem; border-left: 4px solid var(--pg-green); background: var(--pg-surface); border-radius: 8px; color: var(--pg-forest); font-size: 1.25rem; font-weight: 600; }
.pgvad-checkout-page ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; padding: 1.25rem; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); list-style: none; color: var(--pg-muted); }
.pgvad-checkout-page ul.woocommerce-order-overview strong { display: block; color: var(--pg-ink); }
.pgvad-checkout-page .woocommerce-order-details__title,
.pgvad-checkout-page .woocommerce-column__title { color: var(--pg-forest); font-size: 1.375rem; }
.pgvad-checkout-page .woocommerce-customer-details address { padding: 1.25rem; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); font-style: normal; }

/* WooCommerce caps cart/checkout content at 1000px in block themes; use the shop width. */
.pgvad-checkout-page > .wp-block-post-title,
.pgvad-checkout-page > .wp-block-post-content,
.pgvad-checkout-page .wp-block-post-content > .woocommerce { max-width: 1280px !important; margin-inline: auto !important; }
.pgvad-checkout-page > .wp-block-post-title { margin-top: 0; }
.pgvad-checkout-page #payment div.payment_box::before { display: none !important; }
.pgvad-checkout-page .select2-container--default .select2-selection--single { height: 48px !important; display: flex; align-items: center; }
.pgvad-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.2 !important; padding: 0 2.5rem 0 .75rem !important; color: var(--pg-ink); }
.pgvad-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: .5rem; height: 46px !important; }
