/*
 * adUP design layer for every public page outside the home template and the booking
 * flow (body.adup-public: My Account, cart, checkout / order-pay, shop and product
 * pages, Services, legal pages, the customer dashboard, 404). It follows home.css:
 * Inter text, Fraunces titles, the home background, pill buttons, rounded fields.
 * Colors are --brand-* tokens only (Billboard → Brand & Theme); never type a color
 * here. Sizes are px: the root font-size on these pages is 10px.
 */

body.adup-public {
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 420px),
    linear-gradient(180deg, var(--brand-tint) 0%, var(--brand-surface) 24%, var(--brand-tint) 100%);
  color: var(--brand-ink);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Titles: Fraunces like the home page, at a size that suits a content page. */
body.adup-public h1:not(.bb-welcome-section h1),
body.adup-public h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

body.adup-public h1:not(.bb-welcome-section h1) {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
}

body.adup-public h2 {
  margin: 28px 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

body.adup-public h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.adup-public #brx-content p,
body.adup-public #brx-content li {
  font-size: 16px;
  line-height: 1.65;
}

/* Service card titles use the headline font, like the home page's cards. */
body.adup-public .billboard-service-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Buttons: the home page's pink pill. */
body.adup-public button[type="submit"],
body.adup-public input[type="submit"],
body.adup-public a.button,
body.adup-public button.button,
body.adup-public .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand-primary-fill);
  color: var(--brand-on-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

body.adup-public button[type="submit"]:hover,
body.adup-public input[type="submit"]:hover,
body.adup-public a.button:hover,
body.adup-public button.button:hover {
  background: var(--brand-primary-fill-hover);
  color: var(--brand-on-primary);
}

/* Fields: rounded and tap-sized (Bricks gives inputs a 40px line-height). */
body.adup-public input[type="text"],
body.adup-public input[type="email"],
body.adup-public input[type="password"],
body.adup-public input[type="tel"],
body.adup-public input[type="number"],
body.adup-public input[type="search"],
body.adup-public input[type="url"],
body.adup-public select,
body.adup-public textarea {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 12px;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.4;
}

/* Login, register and lost-password forms: white cards like the home page's. */
body.adup-public .woocommerce form.login,
body.adup-public .woocommerce form.register,
body.adup-public .woocommerce form.lost_reset_password {
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: 20px;
  background: var(--brand-surface);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--brand-ink) 7%, transparent);
}

/* 404 (bricks-child/404.php): message, Book / Home, then search. */
body.adup-public .adup-404 {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 72px 0 96px;
  text-align: center;
}

body.adup-public .adup-404-code {
  margin: 0 0 8px;
  color: var(--brand-link);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

body.adup-public .adup-404-text {
  max-width: 460px;
  margin: 0 auto;
  color: var(--brand-muted);
}

body.adup-public .adup-404-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 40px;
}

body.adup-public .adup-404-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

body.adup-public .adup-404-home:hover {
  border-color: var(--brand-primary);
}

body.adup-public .adup-404-search {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--brand-line);
}

body.adup-public .adup-404-search input[type="search"] {
  width: 100%;
  text-align: left;
}

@media (max-width: 767px) {
  body.adup-public #brx-content p,
  body.adup-public #brx-content li {
    font-size: 15px;
  }

  body.adup-public .woocommerce form.login,
  body.adup-public .woocommerce form.register,
  body.adup-public .woocommerce form.lost_reset_password {
    padding: 18px;
    border-radius: 16px;
  }
}

body.woocommerce-page h1,
body.woocommerce-page h2,
body.woocommerce-page h3,
body.woocommerce h1,
body.woocommerce h2,
body.woocommerce h3 {
  color: var(--brand-ink);
}

/* Account forms: rounded, tap-sized fields; quiet help text; a framed password box. */
.woocommerce-MyAccount-content .form-row {
  margin-bottom: 14px;
}

/* Bricks gives inputs a 40px line-height, which made them 62px tall. */
.woocommerce-MyAccount-content .input-text,
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1.4;
  border: 1px solid var(--brand-line-strong);
  border-radius: 12px;
  background: var(--brand-surface);
  font-size: 15px;
}

.woocommerce-MyAccount-content label {
  font-size: 14px;
  font-weight: 600;
}

.woocommerce-MyAccount-content .form-row em,
.woocommerce-MyAccount-content #account_display_name_description em {
  display: block;
  margin-top: 6px;
  color: var(--brand-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.woocommerce-MyAccount-content fieldset {
  margin: 20px 0;
  padding: 12px 16px 4px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
}

.woocommerce-MyAccount-content legend {
  padding: 0 6px;
  font-size: 15px;
  font-weight: 700;
}

/* Links */
body.woocommerce-page .brxe-container a:not(.button),
body.woocommerce-page main a:not(.button),
body.woocommerce main a:not(.button) {
  color: var(--brand-link);
}

/* Buttons */
body.woocommerce-page .button,
body.woocommerce-page button.button,
body.woocommerce-page input.button,
body.woocommerce-page #place_order,
body.woocommerce-page .wp-element-button,
body.woocommerce-page .wp-block-button__link,
body.woocommerce-page .wc-block-components-button,
body.woocommerce .button,
body.woocommerce button.button {
  background: var(--brand-primary-fill);
  border-color: var(--brand-primary-fill);
  color: var(--brand-on-primary);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.woocommerce-page .button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce-page #place_order:hover,
body.woocommerce-page .wp-element-button:hover,
body.woocommerce-page .wp-block-button__link:hover,
body.woocommerce-page .wc-block-components-button:hover,
body.woocommerce .button:hover {
  background: var(--brand-primary-fill-hover);
  border-color: var(--brand-primary-fill-hover);
  color: var(--brand-on-primary);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-primary) 26%, transparent);
}

body.woocommerce-page #place_order,
body.woocommerce-page .checkout-button {
  background: var(--brand-primary-fill);
  border-color: transparent;
  color: var(--brand-on-primary);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

/* Prices */
body.woocommerce .price,
body.woocommerce-page .price,
body.woocommerce-page .amount {
  color: var(--brand-accent-text);
  font-weight: 700;
}

/* Product tabs */
body.woocommerce .woocommerce-tabs .tabs li.active a,
body.woocommerce .woocommerce-tabs .tabs li a:hover {
  color: var(--brand-link);
}

body.woocommerce .woocommerce-tabs .tabs li.active {
  border-bottom-color: var(--brand-primary);
  box-shadow: inset 0 -2px 0 var(--brand-primary);
}

/* My Account navigation */
.woocommerce-MyAccount-navigation {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation li a {
  color: var(--brand-ink);
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  background: var(--brand-tint-pink);
  color: var(--brand-link);
  box-shadow: inset 3px 0 0 var(--brand-primary);
}

/* Billboard page, stacked (phones, tablets): space between the photo and the title. */
@media (max-width: 1023px) {
  body.single-product div.product.type-product {
    row-gap: 24px;
  }
}

/* Empty cart's "New in store": images are their thumbnail size (300px, one file larger), so they
   came out at different widths; fill the card instead. */
body.adup-public .wc-block-grid__product-image,
body.adup-public .wc-block-grid__product-link {
  display: block;
  width: 100%;
}

body.adup-public .wc-block-grid__product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Order tables (order received, My Account → order, cart totals): cells had line-height 1, so a
   wrapped product name or label ("Service Fee (5%):") was cramped. */
body.adup-public table.shop_table th,
body.adup-public table.shop_table td {
  line-height: 1.45;
}

/* Order actions (Pay / View / Cancel) in My Account → Orders and on an order: WooCommerce
   prints the buttons with no space between them, so they touched when they wrapped. */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account .woocommerce-table--order-details .order-actions-button {
  margin: 4px 8px 4px 0;
}

/* Phones: the 7-item sidebar filled the screen; show it as a row of scrollable tabs. */
@media (max-width: 767px) {
  .woocommerce-MyAccount-navigation {
    margin-bottom: 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 2px 24px 8px 2px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, var(--brand-ink) calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, var(--brand-ink) calc(100% - 24px), transparent);
  }

  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-MyAccount-navigation li {
    flex: none;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
  }

  .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center;
    height: 38px;
    padding: 0 14px !important;
    line-height: 1.2;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    background: var(--brand-surface);
    font-size: 14px;
    white-space: nowrap;
    box-shadow: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content h2,
  body.woocommerce-account .woocommerce-MyAccount-content h3 {
    margin: 20px 0 10px;
    font-size: 18px;
    line-height: 1.25;
  }

  .woocommerce-MyAccount-content {
    padding: 16px;
    border-radius: 16px;
  }

  /* The account wrapper is a flex column with a 40px gap on top of the tabs' own margin. */
  body.woocommerce-account .woocommerce {
    row-gap: 0;
  }

  .woocommerce-MyAccount-content .button {
    width: 100%;
  }

  /* Stacked full-width order actions: a gap between them, none after the last. */
  body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
  body.woocommerce-account .woocommerce-table--order-details .order-actions-button {
    margin: 0 0 8px;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:last-child,
  body.woocommerce-account .woocommerce-table--order-details .order-actions-button:last-child {
    margin-bottom: 0;
  }

  .woocommerce-MyAccount-navigation li.is-active a {
    border-color: transparent;
    background: var(--brand-primary-fill);
    color: var(--brand-on-primary);
  }
}

/* Forms */
body.woocommerce-page input:focus,
body.woocommerce-page select:focus,
body.woocommerce-page textarea:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--brand-primary);
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--brand-primary);
}

/* Cards: order review, cart totals, account content */
.woocommerce-checkout-review-order,
.cart_totals,
.woocommerce-order,
.woocommerce-MyAccount-content {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  padding: 1.25rem;
}

/* Login/register on My Account: tap-friendly remember-me row and show-password button. */
.woocommerce-form-login__rememberme {
	display: flex;
	margin-bottom: 12px;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	cursor: pointer;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--brand-primary-fill);
}

/* Show/hide password: a quiet eye icon inside the field (SVG mask, colored by currentColor). */
.woocommerce form .password-input input {
	padding-right: 52px;
}

.woocommerce form .password-input .show-password-input,
.woocommerce form .password-input .show-password-input:hover,
.woocommerce form .password-input .show-password-input:focus {
	top: 50%;
	right: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--brand-muted);
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
}

.woocommerce form .password-input .show-password-input:hover {
	color: var(--brand-ink);
}

.woocommerce form .password-input .show-password-input:focus-visible {
	outline: 3px solid var(--brand-focus-ring);
	outline-offset: -3px;
}

.woocommerce form .password-input .show-password-input::after,
.woocommerce form .password-input .show-password-input.display-password::after {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	background-color: currentColor;
	-webkit-mask: var(--bb-eye-icon) center / contain no-repeat;
	mask: var(--bb-eye-icon) center / contain no-repeat;
	font-family: inherit;
}

.woocommerce form .password-input .show-password-input {
	--bb-eye-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.woocommerce form .password-input .show-password-input.display-password {
	--bb-eye-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.6 5.1A10.6 10.6 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-2.6 3.5'/%3E%3Cpath d='M6.6 6.6C3.7 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}

/* Tap-sized shop pagination and product breadcrumb links. */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.woocommerce-breadcrumb a {
	display: inline-block;
	padding-block: 12px;
}

/* Billboard product page: live details at the top of the Description tab (Billboard_Product_Display). */
.billboard-details-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 0 0 24px;
}

.billboard-details-list > div {
	padding: 12px 14px;
	border: 1px solid var(--brand-line);
	border-radius: 14px;
	background: var(--brand-surface);
}

.billboard-details-list dt {
	margin: 0 0 4px;
	color: var(--brand-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.billboard-details-list dd {
	margin: 0;
	color: var(--brand-ink);
	font-size: 15px;
	font-weight: 700;
}

body.woocommerce .billboard-details-list .amount {
	color: var(--brand-ink);
}
