/* ==========================================================================
   PixHaste — product cards, shop archive, cart, checkout, account
   ========================================================================== */

/* ==================================================== the product card == */
/* Cover art is portrait key art from the supplier CDN. The card leans on that
   art entirely, which is why there is no placeholder colour treatment here. */
.ph-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.ph-card-grid--5 { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }

.ph-product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ph-surface) 0%, var(--ph-bg-2) 100%);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-lg);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), border-color .3s ease, box-shadow .3s ease;
  height: 100%;
}
.ph-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, .55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(124, 58, 237, .25);
}

.ph-product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ph-surface-2);
}
.ph-product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), filter .4s ease;
}
.ph-product-card:hover .ph-product-card__media img { transform: scale(1.07); }

/* Sheen sweep on hover — cheap, and it makes a static cover feel alive. */
.ph-product-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .17) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .75s ease;
  pointer-events: none;
}
.ph-product-card:hover .ph-product-card__media::after { transform: translateX(120%); }

.ph-product-card__badges {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.ph-badge {
  padding: 4px 10px; border-radius: 99px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.ph-badge--sale { background: var(--ph-grad); color: #fff; }
.ph-badge--new { background: rgba(34, 197, 94, .92); color: #04210f; }
.ph-badge--out { background: rgba(10, 12, 20, .82); color: var(--ph-text-2); border: 1px solid var(--ph-line-2); }

/* Platform pill sits bottom-right of the art */
.ph-product-card__platform {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(8, 11, 20, .78); border: 1px solid var(--ph-line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .68rem; font-weight: 700; color: var(--ph-text);
  text-transform: uppercase; letter-spacing: .04em;
}
.ph-product-card__platform svg { width: 12px; height: 12px; }

.ph-product-card__body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 15px 16px; flex: 1;
}
.ph-product-card__title {
  font-family: var(--ph-font-display);
  font-size: .98rem; font-weight: 650; line-height: 1.32; margin: 0;
  color: var(--ph-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.64em;
}
.ph-product-card:hover .ph-product-card__title { color: #fff; }

.ph-product-card__meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: .72rem; color: var(--ph-text-3);
}
.ph-product-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.ph-product-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 4px;
}
.ph-product-card__price { display: flex; flex-direction: column; line-height: 1.2; }
.ph-product-card__price del {
  font-size: .76rem; color: var(--ph-text-3); text-decoration: line-through; opacity: .85;
}
.ph-product-card__price ins,
.ph-product-card__price .amount {
  font-family: var(--ph-font-display);
  font-size: 1.16rem; font-weight: 750; color: var(--ph-text);
  text-decoration: none; background: none;
}
.ph-product-card__price del .amount { font-size: .76rem; color: var(--ph-text-3); font-weight: 500; }

.ph-product-card__cta {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--ph-grad); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ph-product-card__cta:hover { transform: scale(1.12) rotate(-6deg); box-shadow: 0 8px 22px rgba(244, 63, 158, .5); }
.ph-product-card__cta svg { width: 17px; height: 17px; }

/* Whole-card link overlay so the title, art and meta are all clickable. */
.ph-product-card__link { position: absolute; inset: 0; z-index: 1; }

/* Discount flag */
.ph-save-flag {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  background: rgba(34, 197, 94, .16); color: #6ee7a0;
  font-size: .68rem; font-weight: 800;
}

/* ====================================================== shop archive ==== */
.ph-shop { display: grid; grid-template-columns: 268px 1fr; gap: 36px; align-items: start; }

.ph-filters {
  position: sticky; top: calc(var(--ph-header-h) + 20px);
  background: var(--ph-surface); border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-lg); padding: 20px;
  max-height: calc(100vh - var(--ph-header-h) - 40px);
  overflow-y: auto;
}
.ph-filters__group + .ph-filters__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--ph-line); }
.ph-filters h4 {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ph-text-3); margin-bottom: 13px;
}
.ph-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ph-filters li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 11px; border-radius: var(--ph-r-sm);
  font-size: .875rem; color: var(--ph-text-2);
  transition: background .2s ease, color .2s ease;
}
.ph-filters li a:hover { background: rgba(255, 255, 255, .06); color: var(--ph-text); }
.ph-filters li.current-cat > a, .ph-filters li a.is-active {
  background: var(--ph-grad-soft); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .35);
}
.ph-filters li .count { font-size: .74rem; color: var(--ph-text-3); }

.ph-shop__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ph-line);
}
.ph-shop__count { color: var(--ph-text-3); font-size: .88rem; }

/* Custom select: the arrow is a pseudo-element so no inline SVG is needed. */
.ph-select { position: relative; display: inline-flex; }
.ph-select::after {
  content: ""; position: absolute; right: 15px; top: 50%; pointer-events: none;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--ph-text-2); border-bottom: 2px solid var(--ph-text-2);
  transform: rotate(45deg);
}
.ph-select select, .woocommerce-ordering select {
  padding: 9px 38px 9px 15px; border-radius: 99px;
  background: var(--ph-surface-2);
  border: 1px solid var(--ph-line-2); color: var(--ph-text);
  font-size: .875rem; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.ph-select select:focus { outline: none; border-color: var(--ph-violet); }
.ph-select select option { background: var(--ph-surface); color: var(--ph-text); }

.ph-filters-toggle { display: none; }
.ph-filters__close { display: none; }

@media (max-width: 1023px) {
  .ph-shop { grid-template-columns: 1fr; }
  .ph-filters {
    position: fixed; inset: 0; z-index: 100; border-radius: 0; max-height: none;
    transform: translateX(-100%); transition: transform .3s ease; padding-top: 68px;
  }
  .ph-filters.is-open { transform: translateX(0); }
  .ph-filters-toggle { display: inline-flex; }
  .ph-filters__close { display: inline-flex; position: absolute; top: 15px; right: 15px; }
}

/* ---------------------------------------------------------- pagination -- */
.ph-pagination, .woocommerce-pagination { margin-top: 44px; display: flex; justify-content: center; }
.ph-pagination ul, .woocommerce-pagination ul {
  display: flex; gap: 7px; list-style: none; margin: 0; padding: 0; border: 0;
}
.ph-pagination li, .woocommerce-pagination li { border: 0 !important; margin: 0 !important; }
.ph-pagination a, .ph-pagination span,
.woocommerce-pagination a, .woocommerce-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: var(--ph-r-sm); border: 1px solid var(--ph-line);
  background: var(--ph-surface); color: var(--ph-text-2);
  font-size: .9rem; font-weight: 600;
  transition: all .2s ease;
}
.ph-pagination a:hover, .woocommerce-pagination a:hover {
  border-color: var(--ph-violet); color: #fff; background: var(--ph-surface-2);
}
.ph-pagination .current, .woocommerce-pagination .current {
  background: var(--ph-grad); color: #fff; border-color: transparent;
}

/* -------------------------------------------------------- empty state -- */
.ph-empty { text-align: center; padding: 70px 20px; }
.ph-empty svg { width: 58px; height: 58px; color: var(--ph-text-3); margin: 0 auto 18px; }
.ph-empty h3 { margin-bottom: 8px; }
.ph-empty p { color: var(--ph-text-2); margin-bottom: 22px; }

/* ============================================ woocommerce form controls == */
.woocommerce form .form-row { margin-bottom: 16px; padding: 0; }
.woocommerce form .form-row label,
.woocommerce-billing-fields label,
.ph-field label {
  display: block; margin-bottom: 7px;
  font-size: .82rem; font-weight: 600; color: var(--ph-text-2);
}
.woocommerce .required { color: var(--ph-pink); border: 0; }

.woocommerce input[type="text"], .woocommerce input[type="email"],
.woocommerce input[type="tel"], .woocommerce input[type="password"],
.woocommerce input[type="number"], .woocommerce input[type="search"],
.woocommerce textarea, .woocommerce select,
.ph-field input, .ph-field textarea, .ph-field select,
.select2-container--default .select2-selection--single {
  width: 100%; padding: 12px 15px;
  border-radius: var(--ph-r-sm); border: 1px solid var(--ph-line-2);
  background: rgba(255, 255, 255, .05); color: var(--ph-text);
  font-size: .93rem; transition: border-color .2s ease, background .2s ease;
  height: auto;
}
.woocommerce input:focus, .woocommerce textarea:focus, .woocommerce select:focus,
.ph-field input:focus, .ph-field textarea:focus {
  outline: none; border-color: var(--ph-violet); background: rgba(255, 255, 255, .08);
}
.woocommerce input::placeholder, .ph-field input::placeholder { color: var(--ph-text-3); }
.woocommerce textarea { min-height: 120px; resize: vertical; }

.select2-container--default .select2-selection--single {
  display: flex; align-items: center; min-height: 46px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ph-text); padding: 0; line-height: 1.5;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%; transform: translateY(-50%); right: 8px;
}
.select2-dropdown { background: var(--ph-surface); border-color: var(--ph-line-2); color: var(--ph-text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ph-violet); }
.select2-search--dropdown .select2-search__field {
  background: rgba(255, 255, 255, .06); border-color: var(--ph-line-2); color: var(--ph-text);
}

/* --------------------------------------------- buttons woocommerce owns - */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 99px; border: 1px solid transparent;
  background: var(--ph-grad); color: #fff;
  font-weight: 650; font-size: .93rem; line-height: 1.2;
  box-shadow: 0 6px 20px rgba(124, 58, 237, .34);
  transition: transform .2s ease, box-shadow .25s ease;
  text-transform: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--ph-grad); color: #fff;
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 63, 158, .4);
}
.woocommerce a.button.wc-backward {
  background: var(--ph-surface-2); border-color: var(--ph-line-2); box-shadow: none;
}
.woocommerce button.button:disabled, .woocommerce a.button.disabled {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

.woocommerce .quantity { display: inline-flex; }
.woocommerce .quantity .qty {
  width: 74px; text-align: center; padding: 11px 6px;
  border-radius: var(--ph-r-sm); border: 1px solid var(--ph-line-2);
  background: rgba(255, 255, 255, .05); color: var(--ph-text);
}

/* -------------------------------------------------------------- notices - */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; margin: 0 0 24px;
  border-radius: var(--ph-r); border: 1px solid var(--ph-line-2);
  background: var(--ph-surface); color: var(--ph-text-2);
  list-style: none; font-size: .92rem;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message { border-left: 3px solid var(--ph-success); }
.woocommerce-info { border-left: 3px solid var(--ph-violet); }
.woocommerce-error { border-left: 3px solid var(--ph-danger); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; flex: none; }

/* ------------------------------------------------------------- tables --- */
.woocommerce table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--ph-line); border-radius: var(--ph-r-lg);
  overflow: hidden; background: var(--ph-surface);
}
.woocommerce table.shop_table th {
  background: var(--ph-surface-2); color: var(--ph-text);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 18px; text-align: left; border: 0;
}
.woocommerce table.shop_table td {
  padding: 16px 18px; border: 0; border-top: 1px solid var(--ph-line);
  color: var(--ph-text-2); vertical-align: middle;
}
.woocommerce table.shop_table td.product-name a { color: var(--ph-text); font-weight: 600; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--ph-pink-400); }
.woocommerce table.shop_table img { width: 58px; border-radius: var(--ph-r-sm); }
.woocommerce table.shop_table .amount { color: var(--ph-text); font-weight: 650; }
.woocommerce a.remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(239, 68, 68, .15); color: var(--ph-danger) !important;
  font-size: 18px; line-height: 1; text-decoration: none;
}
.woocommerce a.remove:hover { background: var(--ph-danger); color: #fff !important; }

/* --------------------------------------------- totals and review panels - */
.cart_totals, .woocommerce-checkout-review-order,
.woocommerce-order-details, .woocommerce-customer-details {
  background: var(--ph-surface); border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-lg); padding: 24px;
}
.cart_totals h2, .woocommerce-checkout-review-order h3 { margin-top: 0; font-size: 1.2rem; }
.cart_totals table.shop_table, .woocommerce-checkout-review-order table { border: 0; background: none; }
.cart_totals table.shop_table th, .woocommerce-checkout-review-order table th { background: none; padding-left: 0; }
.cart_totals table.shop_table td, .woocommerce-checkout-review-order table td { padding-right: 0; text-align: right; }
.order-total .amount {
  font-size: 1.25rem;
  background: var(--ph-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

#payment { background: none; border-radius: 0; }
#payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 18px; }
#payment ul.payment_methods li {
  padding: 14px 16px; margin-bottom: 10px; list-style: none;
  border: 1px solid var(--ph-line-2); border-radius: var(--ph-r); background: rgba(255, 255, 255, .03);
}
#payment div.payment_box {
  background: var(--ph-surface-2); color: var(--ph-text-2);
  border-radius: var(--ph-r-sm); margin-top: 12px; font-size: .88rem;
}
#payment div.payment_box::before { display: none; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 18px; font-size: .88rem; color: var(--ph-text-2); }

.woocommerce .cart .coupon { display: flex; gap: 10px; align-items: center; }
.woocommerce .cart .coupon input { width: auto; flex: 1; max-width: 240px; }

/* ------------------------------------------------------- my account ----- */
.woocommerce-account .woocommerce {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px;
}
.woocommerce-MyAccount-navigation a {
  display: block; padding: 11px 15px; border-radius: var(--ph-r-sm);
  color: var(--ph-text-2); font-size: .92rem; font-weight: 500;
  background: var(--ph-surface); border: 1px solid var(--ph-line);
  transition: all .2s ease;
}
.woocommerce-MyAccount-navigation a:hover { color: #fff; border-color: var(--ph-violet-400); }
.woocommerce-MyAccount-navigation .is-active a {
  background: var(--ph-grad); color: #fff; border-color: transparent;
}
.woocommerce-MyAccount-content {
  background: var(--ph-surface); border: 1px solid var(--ph-line);
  border-radius: var(--ph-r-lg); padding: 28px;
}
@media (max-width: 840px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }

/* ------------------------------------------------ checkout and cart ----- */
.woocommerce-checkout form.checkout {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: start;
}
.woocommerce-checkout form.checkout .col2-set { grid-column: 1; }
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review { grid-column: 2; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
@media (max-width: 900px) {
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout form.checkout .col2-set,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review { grid-column: 1; }
}

.ph-cart-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ph-cart-layout { grid-template-columns: 1fr; } }

/* A standing reminder on cart and checkout that nothing ships and, right
   now, that nothing is fulfilled either. */
.ph-checkout-note {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 22px;
  border-radius: var(--ph-r); border: 1px solid rgba(245, 165, 36, .35);
  background: rgba(245, 165, 36, .1); color: #f7cf94; font-size: .89rem;
}
.ph-checkout-note svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.ph-checkout-note strong { color: #ffe3b8; }

/* ======================================== form controls, theme-wide ====== */
/* The WooCommerce-prefixed rules above only apply inside a .woocommerce
   wrapper, which the shortcode checkout does not always provide around every
   field. Scoping to the theme's own main element is both broader and safer:
   it covers every storefront form without ever reaching wp-admin. */
.ph-main input[type="text"],
.ph-main input[type="email"],
.ph-main input[type="tel"],
.ph-main input[type="url"],
.ph-main input[type="password"],
.ph-main input[type="number"],
.ph-main input[type="search"],
.ph-main input[type="date"],
.ph-main textarea,
.ph-main select {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--ph-r-sm);
  border: 1px solid var(--ph-line-2);
  background: rgba(255, 255, 255, .05);
  color: var(--ph-text);
  font-size: .93rem;
  line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
}
.ph-main textarea { min-height: 120px; resize: vertical; }
.ph-main input::placeholder,
.ph-main textarea::placeholder { color: var(--ph-text-3); }
.ph-main input:focus,
.ph-main textarea:focus,
.ph-main select:focus {
  outline: none;
  border-color: var(--ph-violet);
  background: rgba(255, 255, 255, .08);
}
.ph-main select option { background: var(--ph-surface); color: var(--ph-text); }

/* Chrome paints autofilled fields with its own opaque background and ignores
   background-color. An inset shadow the size of the field is the only way to
   repaint it, and the text colour has to be set separately. */
.ph-main input:-webkit-autofill,
.ph-main input:-webkit-autofill:hover,
.ph-main input:-webkit-autofill:focus,
.ph-main textarea:-webkit-autofill,
.ph-main select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--ph-surface-2) inset !important;
  box-shadow: 0 0 0 1000px var(--ph-surface-2) inset !important;
  -webkit-text-fill-color: var(--ph-text) !important;
  caret-color: var(--ph-text);
  border-color: var(--ph-line-2);
}

/* The search field in the header is a pill, not a boxed input. */
.ph-main .ph-search-form input[type="search"] { border-radius: 99px; }

/* When no gateway is available WooCommerce prints a bare notice; give it the
   same treatment as the other panels so the checkout does not end abruptly. */
.woocommerce-checkout #payment .woocommerce-notice,
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice,
.woocommerce-checkout #payment .wc_payment_methods > li:only-child:not([class*="payment_method"]) {
  padding: 16px 18px;
  border: 1px dashed var(--ph-line-2);
  border-radius: var(--ph-r);
  background: rgba(255, 255, 255, .03);
  color: var(--ph-text-2);
  font-size: .9rem;
}

/* WooCommerce styles its own fields with `.woocommerce form .form-row
   input.input-text`, which out-specifies the theme-scoped rules above and
   puts the browser-default white back. Matching that selector with one more
   class wins it back without resorting to !important. */
.ph-main .woocommerce form .form-row input.input-text,
.ph-main .woocommerce form .form-row textarea.input-text,
.ph-main .woocommerce form .form-row select,
.ph-main .woocommerce-page form .form-row input.input-text,
.ph-main .woocommerce-page form .form-row textarea.input-text,
.ph-main form.checkout .form-row input.input-text,
.ph-main form.checkout .form-row textarea,
.ph-main form.woocommerce-form .form-row input.input-text,
.ph-main .woocommerce .form-row input.input-text {
  padding: 12px 15px;
  border-radius: var(--ph-r-sm);
  border: 1px solid var(--ph-line-2);
  background-color: rgba(255, 255, 255, .05);
  color: var(--ph-text);
  font-size: .93rem;
  line-height: 1.5;
}
.ph-main .woocommerce form .form-row input.input-text:focus,
.ph-main .woocommerce form .form-row textarea.input-text:focus,
.ph-main form.checkout .form-row input.input-text:focus {
  outline: none;
  border-color: var(--ph-violet);
  background-color: rgba(255, 255, 255, .08);
}
.ph-main .woocommerce form .form-row input.input-text::placeholder,
.ph-main form.checkout .form-row input.input-text::placeholder {
  color: var(--ph-text-3);
}

/* The country row renders as static text when only one country is allowed. */
.ph-main .woocommerce-input-wrapper strong { color: var(--ph-text); font-weight: 600; }

/* The coupon row is a flex row, but the theme-wide `width: 100%` on inputs
   fights the flex basis and collapses the field to a few characters. Give it
   an explicit basis so it stays readable next to the button. */
.ph-main .woocommerce .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ph-main .woocommerce .coupon input[type="text"],
.ph-main .woocommerce .coupon input#coupon_code {
  flex: 1 1 200px;
  width: auto;
  min-width: 170px;
  max-width: 280px;
}
.ph-main .woocommerce .coupon .button { flex: none; }

/* The cart actions row holds the coupon on the left and Update cart on the
   right; without this they stack awkwardly once the coupon field has width. */
.ph-main .woocommerce .cart .actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
