/* =============================================================
   WooCommerce — Private Pharmacy Care theme overlay
   Cart, checkout, account, notices, forms, tables
   ============================================================= */

body.woocommerce-page,
body.ppc-wc-page {
  --ppc-wc-green: var(--brand-600, #2b7a5c);
  --ppc-wc-green-dark: var(--brand-700, #236b51);
  --ppc-wc-ink: #0f2b1f;
  --ppc-wc-muted: #5b6b7c;
  --ppc-wc-line: color-mix(in oklab, var(--brand-600, #2b7a5c) 14%, #e5e7eb);
  --ppc-wc-soft: #f7fbf8;
  --ppc-wc-radius: 16px;
}

/* ----- Page chrome ----- */
body.ppc-wc-page .site-main.ppc-wc-page {
  padding: 28px 0 72px;
}

body.ppc-wc-page .entry-header {
  margin: 0 0 1.5rem;
}

body.ppc-wc-page h1.entry-title {
  margin: 0;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ppc-wc-ink);
}

body.ppc-wc-page .entry-content > .woocommerce,
body.ppc-wc-page .entry-content > .wp-block-woocommerce-cart,
body.ppc-wc-page .entry-content > .wp-block-woocommerce-checkout {
  margin-top: 0;
}

body.ppc-wc-page .woocommerce,
.woocommerce-page .woocommerce {
  float: none;
  width: 100%;
}

body.ppc-wc-page h2,
body.woocommerce-page .woocommerce h2,
body.woocommerce-account .woocommerce h2,
body.woocommerce-cart h2,
body.woocommerce-checkout h2,
.wc-block-components-title,
.wc-block-components-checkout-step__title {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ppc-wc-ink);
  margin: 0 0 0.75rem;
}

body.ppc-wc-page h3,
body.woocommerce-page .woocommerce h3 {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ppc-wc-ink);
}

body.ppc-wc-page .woocommerce p,
body.woocommerce-account .woocommerce p {
  color: var(--ppc-wc-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

body.ppc-wc-page .woocommerce a:not(.button):not(.btn),
body.woocommerce-account .woocommerce a:not(.button):not(.btn) {
  color: var(--ppc-wc-green-dark);
  text-decoration: none;
  font-weight: 650;
}

body.ppc-wc-page .woocommerce a:not(.button):not(.btn):hover,
body.woocommerce-account .woocommerce a:not(.button):not(.btn):hover {
  color: var(--ppc-wc-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ppc-wc-page .clear,
.woocommerce .clear {
  clear: both;
}

/* ----- Buttons ----- */
body.woocommerce-page .woocommerce a.button:not(.single_add_to_cart_button),
body.woocommerce-page .woocommerce button.button:not(.single_add_to_cart_button),
body.woocommerce-page .woocommerce input.button,
body.woocommerce-page .woocommerce #respond input#submit,
body.ppc-wc-page a.button,
body.ppc-wc-page button.button:not(.single_add_to_cart_button),
body.ppc-wc-page input.button,
body.ppc-wc-page .woocommerce-Button,
.woocommerce a.button:not(.single_add_to_cart_button),
.woocommerce button.button:not(.single_add_to_cart_button),
.woocommerce input.button,
.woocommerce #respond input#submit {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ppc-wc-green);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  text-shadow: none;
  box-shadow: 0 10px 22px rgba(43, 122, 92, 0.18);
  float: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

body.woocommerce-page .woocommerce a.button:not(.single_add_to_cart_button):hover,
body.woocommerce-page .woocommerce button.button:not(.single_add_to_cart_button):hover,
body.woocommerce-page .woocommerce input.button:hover,
body.ppc-wc-page a.button:hover,
body.ppc-wc-page button.button:not(.single_add_to_cart_button):hover,
.woocommerce a.button:not(.single_add_to_cart_button):hover,
.woocommerce button.button:not(.single_add_to_cart_button):hover,
.woocommerce input.button:hover {
  background: var(--ppc-wc-green-dark);
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(43, 122, 92, 0.24);
  transform: translateY(-1px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--ppc-wc-green);
  color: #fff !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--ppc-wc-green-dark);
}

.woocommerce a.button.cancel,
.woocommerce button.button.cancel,
.woocommerce a.button[class*="disabled"],
.woocommerce .woocommerce-button--previous {
  background: #fff;
  color: var(--ppc-wc-green-dark) !important;
  border-color: color-mix(in oklab, var(--ppc-wc-green) 28%, #e5e7eb);
  box-shadow: none;
}

.woocommerce a.button.cancel:hover,
.woocommerce .woocommerce-button--previous:hover {
  background: var(--brand-50, #f4fbf7);
  color: var(--ppc-wc-green-dark) !important;
}

.woocommerce .button:disabled,
.woocommerce .button.disabled,
.woocommerce button.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Block cart / checkout buttons */
.ppc-wc-page .wc-block-components-button:not(.is-link),
.ppc-wc-page .wp-block-button__link,
.ppc-wc-page .wc-block-cart__submit-button,
.ppc-wc-page .wc-block-components-checkout-place-order-button {
  min-height: 48px;
  border-radius: 999px !important;
  background: var(--ppc-wc-green) !important;
  color: #fff !important;
  font-weight: 750 !important;
  box-shadow: 0 10px 22px rgba(43, 122, 92, 0.18);
}

.ppc-wc-page .wc-block-components-button:not(.is-link):hover,
.ppc-wc-page .wp-block-button__link:hover {
  background: var(--ppc-wc-green-dark) !important;
}

.ppc-wc-page .wc-block-components-button.outlined,
.ppc-wc-page .wc-block-components-button.is-style-outline {
  background: #fff !important;
  color: var(--ppc-wc-green-dark) !important;
  border: 1px solid color-mix(in oklab, var(--ppc-wc-green) 28%, #e5e7eb) !important;
  box-shadow: none;
}

/* ----- Notices ----- */
.woocommerce-notices-wrapper {
  margin: 0 0 1.25rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: auto;
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--ppc-wc-line);
  border-top: 1px solid var(--ppc-wc-line);
  border-left: 4px solid var(--ppc-wc-green);
  border-radius: 14px;
  background: var(--ppc-wc-soft);
  color: var(--ppc-wc-ink);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.5;
  list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
  content: none !important;
  display: none !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button,
.woocommerce-page .woocommerce-message .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-error .button {
  float: none;
  margin: 0 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
}

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce .woocommerce-message .button,
body.woocommerce-account .woocommerce .woocommerce-info .button {
  margin: 0.15rem auto 0;
}

.woocommerce-error,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
  display: block;
  border-left-color: #b42318;
  background: #fef2f2;
  color: #7f1d1d;
}

.woocommerce-error li {
  list-style: none !important;
  margin: 0.2rem 0 !important;
  padding: 0 !important;
  color: #7f1d1d;
}

.ppc-wc-page .wc-block-components-notice-banner {
  border-radius: 14px !important;
  border: 1px solid var(--ppc-wc-line) !important;
  background: var(--ppc-wc-soft) !important;
}

.ppc-wc-page .wc-block-components-notice-banner.is-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

/* ----- Forms ----- */
.woocommerce form .form-row {
  padding: 0;
  margin: 0 0 1rem;
}

.woocommerce form .form-row label,
.woocommerce-account .woocommerce label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ppc-wc-ink);
  line-height: 1.3;
}

.woocommerce form .form-row label .required,
.woocommerce .required {
  color: var(--ppc-wc-green);
  font-weight: 700;
  border: 0;
  text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .woocommerce-Input,
.woocommerce .input-text,
.woocommerce-page .select2-container .select2-selection--single {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  background: #fff;
  color: var(--ppc-wc-ink);
  font: inherit;
  line-height: 1.4;
  box-shadow: none;
  outline: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.woocommerce form .form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .woocommerce-Input:focus,
.woocommerce .input-text:focus {
  border-color: color-mix(in oklab, var(--ppc-wc-green) 55%, var(--border, #e5e7eb));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ppc-wc-green) 14%, #fff);
}

.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"],
.woocommerce-page input[type="checkbox"],
.woocommerce-page input[type="radio"] {
  width: auto;
  min-height: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  margin: 0 0.4rem 0 0;
  border-radius: 4px;
  accent-color: var(--ppc-wc-green);
  box-shadow: none;
}

.woocommerce .woocommerce-form__label-for-checkbox,
.woocommerce label.checkbox,
.woocommerce label.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ppc-wc-muted);
}

.woocommerce span em,
.woocommerce .woocommerce-form-row em,
#account_display_name_description {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--ppc-wc-muted);
}

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

.woocommerce .password-input input {
  padding-right: 2.85rem;
}

.woocommerce .show-password-input,
.woocommerce .show-password-input::before {
  color: var(--ppc-wc-muted);
}

.woocommerce fieldset {
  margin: 0.35rem 0 0.5rem;
  padding: 1.15rem 1.2rem 0.35rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: var(--ppc-wc-radius);
  background: var(--ppc-wc-soft);
}

.woocommerce fieldset legend {
  padding: 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ppc-wc-ink);
}

.woocommerce .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 48px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ppc-wc-ink);
  line-height: 48px;
  padding-left: 1rem;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 8px;
}

.select2-dropdown {
  border-color: var(--ppc-wc-line);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
  float: none;
  width: calc(50% - 0.55rem);
  display: inline-block;
  vertical-align: top;
}

.woocommerce form .form-row-first,
.woocommerce-page form .form-row-first {
  margin-right: 1.1rem;
}

.woocommerce form .form-row-wide,
.woocommerce-page form .form-row-wide {
  width: 100%;
  float: none;
}

/* Block checkout fields */
.ppc-wc-page .wc-block-components-text-input input,
.ppc-wc-page .wc-block-components-textarea,
.ppc-wc-page .wc-block-components-combobox input,
.ppc-wc-page .wc-blocks-components-select .components-select-control__input {
  min-height: 48px;
  border-radius: 1rem !important;
  border-color: var(--border, #e5e7eb) !important;
}

.ppc-wc-page .wc-block-components-text-input.is-active input,
.ppc-wc-page .wc-block-components-text-input input:focus {
  border-color: color-mix(in oklab, var(--ppc-wc-green) 55%, #e5e7eb) !important;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ppc-wc-green) 14%, #fff) !important;
}

/* ----- Tables ----- */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table,
.woocommerce table.woocommerce-table,
.woocommerce .woocommerce-orders-table,
.woocommerce .woocommerce-table--order-details {
  width: 100%;
  margin: 0 0 1.25rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: var(--ppc-wc-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce .woocommerce-orders-table th,
.woocommerce .woocommerce-orders-table td {
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--ppc-wc-line);
  text-align: left;
  vertical-align: middle;
  color: var(--ppc-wc-ink);
  font-size: 0.92rem;
}

.woocommerce table.shop_table thead th,
.woocommerce .woocommerce-orders-table thead th {
  background: var(--ppc-wc-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ppc-wc-green-dark);
}

.woocommerce table.shop_table tr:last-child th,
.woocommerce table.shop_table tr:last-child td,
.woocommerce .woocommerce-orders-table tr:last-child td,
.woocommerce .woocommerce-orders-table tr:last-child th {
  border-bottom: 0;
}

.woocommerce .woocommerce-orders-table .button {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  box-shadow: none;
}

.woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__cell-order-number a {
  font-weight: 750;
}

.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
  color: var(--ppc-wc-green-dark);
}

.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status {
  color: #b42318;
}

.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status {
  color: #b45309;
}

/* ----- Account layout ----- */
body.woocommerce-account .ppc-account {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--ppc-header-h, 4.75rem) + 12px);
  padding: 1rem 0.85rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: var(--ppc-wc-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 43, 31, 0.04);
}

.ppc-account-nav__title {
  margin: 0 0 0.65rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ppc-wc-green-dark);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul + ul {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  content: none !important;
  display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .ppc-account-nav__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.85;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .ppc-account-nav__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--ppc-wc-line);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--ppc-wc-soft);
  color: var(--ppc-wc-ink);
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a[aria-current="page"] {
  background: color-mix(in oklab, var(--ppc-wc-green) 12%, #fff);
  color: var(--ppc-wc-green-dark);
  font-weight: 750;
  text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
  padding: 1.35rem 1.45rem 1.5rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: var(--ppc-wc-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 43, 31, 0.04);
}

body.woocommerce-account .woocommerce-MyAccount-content > *:first-child {
  margin-top: 0;
}

/* ----- Dashboard ----- */
.ppc-account-dash__hello {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--ppc-wc-ink);
}

.ppc-account-dash__hello strong {
  color: var(--ppc-wc-ink);
  font-weight: 800;
}

.ppc-account-dash__lead {
  margin: 0 0 1.35rem;
  max-width: 42rem;
}

.ppc-account-dash__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ppc-account-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 14px;
  background: var(--ppc-wc-soft);
  text-decoration: none !important;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ppc-account-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--ppc-wc-green) 32%, #e5e7eb);
  box-shadow: 0 12px 24px rgba(43, 122, 92, 0.1);
  text-decoration: none !important;
}

.ppc-account-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: #fff;
  color: var(--ppc-wc-green);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ppc-wc-green) 14%, transparent);
}

.ppc-account-card__icon svg {
  width: 20px;
  height: 20px;
}

.ppc-account-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ppc-wc-ink);
}

.ppc-account-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ppc-wc-muted);
  font-weight: 500;
}

/* ----- Addresses ----- */
.woocommerce-MyAccount-content > p:has(+ .woocommerce-Addresses),
.woocommerce-MyAccount-content > p:first-of-type {
  margin-bottom: 1.15rem;
}

.woocommerce .woocommerce-Addresses,
.woocommerce .u-columns.woocommerce-Addresses,
.woocommerce .col2-set.addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  float: none;
}

.woocommerce .woocommerce-Addresses::before,
.woocommerce .woocommerce-Addresses::after,
.woocommerce .col2-set.addresses::before,
.woocommerce .col2-set.addresses::after {
  content: none;
  display: none;
}

.woocommerce .woocommerce-Address,
.woocommerce .u-column1.woocommerce-Address,
.woocommerce .u-column2.woocommerce-Address,
.woocommerce .col-1.woocommerce-Address,
.woocommerce .col-2.woocommerce-Address {
  float: none !important;
  width: 100% !important;
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 14px;
  background: var(--ppc-wc-soft);
}

.woocommerce .woocommerce-Address-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
}

.woocommerce .woocommerce-Address-title h2,
.woocommerce .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ppc-wc-ink);
}

.woocommerce .woocommerce-Address-title .edit,
.woocommerce .addresses .title .edit {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid color-mix(in oklab, var(--ppc-wc-green) 28%, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--ppc-wc-green-dark);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.woocommerce .woocommerce-Address-title .edit:hover {
  background: color-mix(in oklab, var(--ppc-wc-green) 8%, #fff);
  text-decoration: none;
}

.woocommerce .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ppc-wc-muted);
}

/* ----- Account details / address forms ----- */
.woocommerce form.edit-account,
.woocommerce form.woocommerce-EditAccountForm,
.woocommerce-MyAccount-content form {
  max-width: 40rem;
}

.woocommerce form.edit-account .clear,
.woocommerce form.woocommerce-EditAccountForm .clear,
.woocommerce-ResetPassword .clear {
  display: none;
}

.woocommerce-password-strength {
  margin-top: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
}

/* ----- Login / register / lost password ----- */
body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-lost-password .woocommerce,
body.woocommerce-reset-password .woocommerce {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 43, 31, 0.06);
}

body.woocommerce-account:not(.logged-in) .woocommerce:has(#customer_login) {
  max-width: 56rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce #customer_login.col2-set,
.woocommerce .u-columns.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  float: none;
}

.woocommerce #customer_login.col2-set::before,
.woocommerce #customer_login.col2-set::after,
.woocommerce .u-columns.col2-set::before,
.woocommerce .u-columns.col2-set::after {
  content: none;
  display: none;
}

.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2,
.woocommerce #customer_login .col-1,
.woocommerce #customer_login .col-2 {
  float: none !important;
  width: 100% !important;
  padding: 1.4rem 1.45rem 1.5rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 43, 31, 0.04);
}

.woocommerce .woocommerce-form-login .form-row,
.woocommerce .woocommerce-form-register .form-row {
  margin-bottom: 0.9rem;
}

.woocommerce .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  margin: 0;
}

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

.woocommerce .lost_password {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.woocommerce-ResetPassword > p:first-child {
  margin-bottom: 1rem;
}

/* ----- View order ----- */
.woocommerce-view-order .woocommerce-MyAccount-content > p {
  margin-bottom: 1.15rem;
}

.woocommerce-view-order mark {
  background: color-mix(in oklab, var(--ppc-wc-green) 12%, #fff);
  color: var(--ppc-wc-green-dark);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-weight: 750;
}

.woocommerce-customer-details,
.woocommerce-order-details {
  margin-top: 1.35rem;
}

.woocommerce .woocommerce-customer-details address,
.woocommerce-page .woocommerce-customer-details address {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 14px;
  background: var(--ppc-wc-soft);
  font-style: normal;
  line-height: 1.55;
}

.woocommerce ol.commentlist.notes {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.woocommerce ol.commentlist.notes li.note {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 12px;
  background: var(--ppc-wc-soft);
}

.woocommerce .woocommerce-pagination {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ----- Order received ----- */
.woocommerce-order {
  max-width: 46rem;
}

.woocommerce-thankyou-order-received,
.woocommerce-notice--success {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--ppc-wc-line);
  background: var(--ppc-wc-soft);
  color: var(--ppc-wc-ink);
  font-weight: 700;
}

.woocommerce-order-overview,
ul.order_details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.woocommerce-order-overview li,
ul.order_details li {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ppc-wc-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.woocommerce-order-overview li strong,
ul.order_details li strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ppc-wc-ink);
  font-size: 0.98rem;
  font-weight: 800;
}

/* ----- Cart / checkout blocks ----- */
.ppc-wc-page .wp-block-woocommerce-cart,
.ppc-wc-page .wp-block-woocommerce-checkout {
  font-size: 1rem;
}

.ppc-wc-page .wc-block-cart-items,
.ppc-wc-page .wc-block-cart-items__row {
  border-color: var(--ppc-wc-line) !important;
}

.ppc-wc-page .wc-block-components-product-name {
  color: var(--ppc-wc-ink) !important;
  font-weight: 750 !important;
}

.ppc-wc-page .wc-block-components-product-price,
.ppc-wc-page .wc-block-formatted-money-amount {
  color: var(--ppc-wc-ink);
  font-weight: 750;
}

.ppc-wc-page .wp-block-woocommerce-checkout-order-summary-block,
.ppc-wc-page .wc-block-components-sidebar,
.ppc-wc-page .wp-block-woocommerce-cart-order-summary-block {
  padding: 1.15rem;
  border: 1px solid var(--ppc-wc-line);
  border-radius: 16px;
  background: var(--ppc-wc-soft);
}

.ppc-wc-page .wc-block-components-totals-item,
.ppc-wc-page .wc-block-components-totals-wrapper {
  color: var(--ppc-wc-ink);
}

.ppc-wc-page .wc-block-components-checkout-step {
  padding-bottom: 0.5rem;
  border-color: var(--ppc-wc-line);
}

.ppc-wc-page .wc-block-components-radio-control-accordion-option,
.ppc-wc-page .wc-block-components-radio-control__option {
  border-color: var(--ppc-wc-line) !important;
  border-radius: 12px !important;
}

.ppc-wc-page .wc-block-components-checkbox .wc-block-components-checkbox__input {
  accent-color: var(--ppc-wc-green);
}

.ppc-wc-page .wc-block-components-quantity-selector {
  border-radius: 10px !important;
  border-color: var(--ppc-wc-line) !important;
}

/* ----- Quantity (classic) ----- */
.woocommerce .quantity .qty {
  width: 4.5rem;
  min-height: 42px;
  text-align: center;
}

/* ----- Coupon / order notes ----- */
.woocommerce form.checkout_coupon,
.woocommerce-form-coupon {
  padding: 1rem 1.15rem;
  border: 1px dashed color-mix(in oklab, var(--ppc-wc-green) 28%, #e5e7eb);
  border-radius: 14px;
  background: var(--ppc-wc-soft);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  body.woocommerce-account .ppc-account {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    padding: 0.85rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li,
  body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0;
    padding: 0;
    border: 0;
    flex: 1 1 auto;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.1rem 1rem 1.2rem;
  }

  .ppc-account-dash__cards,
  .woocommerce .woocommerce-Addresses,
  .woocommerce .u-columns.woocommerce-Addresses,
  .woocommerce .col2-set.addresses,
  .woocommerce #customer_login.col2-set,
  .woocommerce .u-columns.col2-set,
  .woocommerce-order-overview,
  ul.order_details {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-first,
  .woocommerce-page form .form-row-last {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .woocommerce-message,
  .woocommerce-info {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-message .button,
  .woocommerce-info .button {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 580px) {
  body.ppc-wc-page .site-main.ppc-wc-page {
    padding: 20px 0 52px;
  }

  body.woocommerce-account:not(.logged-in) .woocommerce,
  body.woocommerce-lost-password .woocommerce {
    padding: 1.15rem 1rem 1.25rem;
  }

  .woocommerce table.shop_table_responsive thead {
    display: none;
  }

  .woocommerce table.shop_table_responsive tr {
    display: block;
    padding: 0.75rem 0.85rem;
  }

  .woocommerce table.shop_table_responsive tr td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.35rem 0;
    border: 0;
    text-align: right;
  }

  .woocommerce table.shop_table_responsive tr td::before {
    content: attr(data-title);
    font-weight: 750;
    color: var(--ppc-wc-muted);
    text-align: left;
  }
}
