/* UCAI App Screens 1.2.0 — Mon compte y Panier con diseño de app. Fondo blanco. */

body.ucai-screens.woocommerce-account,
body.ucai-screens.woocommerce-cart,
body.ucai-screens.page-id-289 {
  background: #fff !important;
}

body.ucai-screens.woocommerce-cart .page-header,
body.ucai-screens.woocommerce-account.logged-in .page-header {
  display: none;
}

.ucai-screen {
  --u-navy: #1b2437;
  --u-text: #1b2437;
  --u-muted: #6b7280;
  --u-gold: #b49a57;
  --u-gold-strong: #a8894a;
  --u-gold-1: #d9bf86;
  --u-gold-2: #b89954;
  --u-cream: #f8f1e4;
  --u-cream-line: #efe3c9;
  --u-line: #eee8dc;
  --u-red: #b3312d;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px 28px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--u-text);
  box-sizing: border-box;
}

.ucai-screen *,
.ucai-screen *::before,
.ucai-screen *::after {
  box-sizing: border-box;
}

.ucai-screen svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ucai-screen__logo {
  text-align: center;
  margin: 2px 0 8px;
}

.ucai-screen__logo img {
  width: 96px;
  height: auto;
  display: inline-block;
}

.ucai-screen__title {
  margin: 4px 0 4px;
  font-family: inherit;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--u-navy);
}

.ucai-screen__title--center {
  text-align: center;
  margin-bottom: 18px;
}

.ucai-screen__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--u-muted);
}

.ucai-screen__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--u-gold-strong) !important;
  text-decoration: none !important;
}

.ucai-screen__back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ucai-card {
  background: #fff;
  border: 1px solid var(--u-line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(60, 45, 15, 0.05);
}

.ucai-btn-gold,
.woocommerce .ucai-screen a.ucai-btn-gold,
.woocommerce .ucai-totals a.checkout-button.ucai-btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--u-gold-1, #d9bf86) 0%, var(--u-gold-2, #b89954) 100%);
  box-shadow: 0 10px 24px rgba(160, 128, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.ucai-btn-gold svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ucai-btn-gold:active {
  transform: scale(0.985);
}

/* ------------------------------------------------------------------ Mon compte */

.ucai-acc .woocommerce-MyAccount-navigation,
.ucai-acc .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0;
}

.ucai-acc__hello {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.ucai-acc__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--u-cream);
  color: var(--u-gold);
}

.ucai-acc__avatar svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.ucai-acc__hello-text p {
  margin: 0;
}

.ucai-acc__hi {
  font-size: 17px;
  line-height: 1.3;
  color: var(--u-navy);
}

.ucai-acc__hi strong {
  font-weight: 800;
}

.ucai-acc__type,
.ucai-acc__hint {
  margin-top: 3px !important;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--u-muted);
}

.ucai-acc__menu ul {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.ucai-acc__menu li {
  margin: 0;
  padding: 0;
}

.ucai-acc__menu li + li {
  border-top: 1px solid #f2ecdf;
}

.ucai-acc__menu a,
.ucai-acc__logout {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  color: var(--u-navy) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.ucai-acc__menu a:active,
.ucai-acc__logout:active {
  background: #fbf7ef;
}

.ucai-acc__ico {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--u-cream-line);
  border-radius: 12px;
  background: var(--u-cream);
  color: var(--u-gold);
}

.ucai-acc__ico svg {
  width: 22px;
  height: 22px;
}

.ucai-acc__label {
  flex: 1 1 auto;
  min-width: 0;
}

.ucai-acc__chev {
  display: grid;
  place-items: center;
  margin-left: auto;
  color: var(--u-navy);
}

.ucai-acc__chev svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ucai-acc__logout {
  margin-top: 16px;
  color: var(--u-red) !important;
}

.ucai-acc__logout .ucai-acc__ico {
  border-color: #f6d7d5;
  background: #fdf0ef;
  color: var(--u-red);
}

.ucai-acc.is-dashboard .ucai-acc__content .woocommerce-notices-wrapper:empty {
  display: none;
}

.ucai-acc.is-endpoint .ucai-acc__content {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--u-line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(60, 45, 15, 0.05);
  font-size: 14px;
  overflow-x: auto;
}

.ucai-acc.is-endpoint .ucai-acc__content input.input-text,
.ucai-acc.is-endpoint .ucai-acc__content select,
.ucai-acc.is-endpoint .ucai-acc__content textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ddd6c8;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}

.ucai-acc.is-endpoint .ucai-acc__content .button,
.ucai-acc.is-endpoint .ucai-acc__content button[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #d9bf86 0%, #b89954 100%);
  color: #fff;
  font-weight: 700;
}

/* ------------------------------------------------------------------ Panier */

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .ucai-cart ~ .woocommerce-notices-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error,
.woocommerce-account .ucai-acc .woocommerce-message,
.woocommerce-account .ucai-acc .woocommerce-info,
.woocommerce-account .ucai-acc .woocommerce-error {
  border: 1px solid #efe3c9;
  border-radius: 12px;
  background: #fbf7ef;
  color: #1b2437;
  font-size: 13.5px;
}

.ucai-cart__head {
  margin-bottom: 4px;
}

.ucai-cart__items {
  display: grid;
  gap: 14px;
  border: 0 !important;
  margin: 0 !important;
}

.ucai-ci {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 10px;
  padding: 14px;
}

.ucai-ci__thumb {
  grid-row: 1 / span 3;
  align-self: start;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f4f1;
}

.ucai-ci__thumb a,
.ucai-ci__thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  padding: 6px;
  margin: 0 !important;
}

.ucai-ci__info {
  min-width: 0;
}

.ucai-ci__name,
.ucai-ci__name a {
  display: block;
  color: var(--u-navy) !important;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.28;
  text-transform: uppercase;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.ucai-ci__info dl.variation {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--u-muted);
}

.ucai-ci__info dl.variation dt,
.ucai-ci__info dl.variation dd {
  display: inline;
  float: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.ucai-ci__info dl.variation dd p {
  display: inline;
  margin: 0;
}

.ucai-ci__info dl.variation dd::after {
  content: " · ";
}

.ucai-ci__info dl.variation dd:last-of-type::after {
  content: "";
}

.ucai-ci__prices {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ucai-ci__prices strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--u-navy);
}

.ucai-ci__prices small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--u-muted);
}

.ucai-ci__total {
  text-align: right;
}

.ucai-ci__total strong {
  color: var(--u-gold-strong);
  font-size: 16px;
}

.ucai-ci__actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ucai-qty {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 4px;
  border: 1px solid #e6dfd2;
  border-radius: 999px;
  background: #fff;
}

.ucai-qty .quantity {
  display: inline-block;
  margin: 0 !important;
}

.ucai-qty input.qty {
  width: 40px !important;
  height: 38px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--u-navy);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ucai-qty input.qty::-webkit-outer-spin-button,
.ucai-qty input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ucai-qty:not(.has-stepper) {
  padding: 0 10px;
}

.ucai-qty__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  color: var(--u-navy) !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ucai-qty__btn:active {
  background: #f4efe5 !important;
}

.ucai-qty__btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.woocommerce .ucai-ci .product-remove a.remove.ucai-ci__remove,
.ucai-ci .product-remove a.remove.ucai-ci__remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent !important;
  color: var(--u-navy) !important;
  font-size: 0;
  line-height: 1;
}

.ucai-ci .product-remove a.remove.ucai-ci__remove:active {
  background: #f4efe5 !important;
}

.ucai-ci__remove svg {
  width: 22px;
  height: 22px;
}

.ucai-cart__coupon {
  padding: 0;
}

.ucai-cart__coupon summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--u-navy);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ucai-cart__coupon summary::-webkit-details-marker {
  display: none;
}

.ucai-cart__coupon-ico {
  display: grid;
  color: var(--u-gold);
}

.ucai-cart__coupon-ico svg {
  width: 22px;
  height: 22px;
}

.ucai-cart__coupon-chev {
  display: grid;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.ucai-cart__coupon-chev svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ucai-cart__coupon[open] .ucai-cart__coupon-chev {
  transform: rotate(180deg);
}

.ucai-cart__coupon-form {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  float: none !important;
}

.ucai-cart__coupon-form #coupon_code {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #ddd6c8;
  border-radius: 12px;
  font-size: 15px;
}

.ucai-cart__coupon-form .button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 16px !important;
  border: 0;
  border-radius: 12px;
  background: var(--u-navy) !important;
  color: #fff !important;
  font-weight: 700;
}

.ucai-cart__actions {
  display: none !important;
}

.ucai-cart__collaterals,
.woocommerce .cart-collaterals.ucai-cart__collaterals {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 24px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.woocommerce .cart-collaterals .cart_totals.ucai-totals,
.ucai-totals {
  float: none !important;
  width: 100% !important;
}

.ucai-totals__card {
  padding: 16px;
  margin-bottom: 16px;
  color: #1b2437;
}

.ucai-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
}

.ucai-totals__row > span:last-child {
  font-weight: 700;
  text-align: right;
}

.ucai-totals__pending {
  color: #a8894a;
}

.ucai-totals__grand {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee8dc;
  align-items: center;
}

.ucai-totals__grand > span:first-child {
  font-size: 20px;
  font-weight: 800;
}

.ucai-totals__grand > span:last-child,
.ucai-totals__grand > span:last-child strong {
  font-size: 22px;
  font-weight: 800;
  color: #a8894a;
}

.ucai-totals__grand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.ucai-totals a.woocommerce-remove-coupon {
  margin-left: 6px;
  font-size: 12px;
  color: #b3312d;
}

.ucai-totals__note {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7280;
}

.ucai-totals__note-ico {
  display: grid;
  flex: 0 0 18px;
  color: #b49a57;
}

.ucai-totals__note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ucai-totals__cta {
  padding: 0 !important;
}

.ucai-cart--empty .ucai-cart__empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
}

.ucai-cart__empty-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--u-cream);
  color: var(--u-gold);
}

.ucai-cart__empty-ico svg {
  width: 34px;
  height: 34px;
}

.ucai-cart__empty .wc-empty-cart-message,
.ucai-cart__empty .cart-empty {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 17px;
  font-weight: 800;
  color: var(--u-navy);
}

.ucai-cart__empty .cart-empty::before {
  display: none !important;
}

.ucai-cart__empty-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--u-muted);
}

.ucai-cart__shop {
  max-width: 320px;
}

@media (max-width: 370px) {
  .ucai-ci {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 12px;
    padding: 12px;
  }

  .ucai-ci__thumb {
    width: 78px;
    height: 78px;
  }

  .ucai-screen__title {
    font-size: 25px;
  }
}

/* ---- Neutraliza el CSS personalizado antiguo (marco, rejilla y colores) solo en estas pantallas ---- */
html body.ucai-screens.woocommerce-account.logged-in .woocommerce,
html body.ucai-screens.woocommerce-cart .woocommerce {
  display: block !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}

html body :is(.ucai-screen, .ucai-totals) :is(p, li, span, strong, small, dt, dd, label, summary) {
  color: inherit;
}

html body :is(.ucai-screen, .ucai-totals) {
  color: #1b2437;
}

html body .ucai-screen .ucai-screen__subtitle,
html body .ucai-screen .ucai-acc__type,
html body .ucai-screen .ucai-acc__hint,
html body .ucai-screen .ucai-ci__prices small,
html body .ucai-screen .ucai-ci__info dl.variation,
html body .ucai-screen .ucai-ci__info dl.variation :is(dt, dd, p),
html body .ucai-screen .ucai-cart__empty-hint,
html body .ucai-totals .ucai-totals__note,
html body .ucai-totals .ucai-totals__note span,
html body .ucai-totals .ucai-totals__grand small {
  color: #6b7280;
}

html body .ucai-screen .ucai-acc__type,
html body .ucai-screen .ucai-acc__hint {
  font-weight: 500;
}

html body .ucai-screen .ucai-ci__total strong,
html body .ucai-screen .ucai-ci__total strong *,
html body .ucai-totals .ucai-totals__pending,
html body .ucai-totals .ucai-totals__grand > span:last-child,
html body .ucai-totals .ucai-totals__grand > span:last-child * {
  color: #a8894a;
}

html body .ucai-screen .ucai-acc__ico,
html body .ucai-screen .ucai-acc__avatar,
html body .ucai-screen .ucai-cart__coupon-ico,
html body .ucai-screen .ucai-cart__empty-ico,
html body .ucai-totals .ucai-totals__note-ico {
  color: #b49a57;
}

html body .ucai-screen .ucai-acc__logout,
html body .ucai-screen .ucai-acc__logout :is(span, .ucai-acc__ico) {
  color: #b3312d !important;
}

html body .ucai-screen .ucai-acc__label {
  text-align: left;
  color: #1b2437;
}

html body .ucai-totals a.woocommerce-remove-coupon {
  color: #b3312d;
}

html body .ucai-screen.ucai-acc .woocommerce-MyAccount-content.ucai-acc__content {
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  margin-top: 12px;
}

html body .ucai-screen.ucai-acc.is-endpoint .woocommerce-MyAccount-content.ucai-acc__content {
  margin-top: 14px;
  padding: 16px !important;
  border: 1px solid #eee8dc !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(60, 45, 15, 0.05) !important;
}

html body .ucai-screen .ucai-acc__logout .ucai-acc__chev {
  color: #1b2437 !important;
}

/* ---- Carrito: limpieza de estilos antiguos ---- */
html body .ucai-collaterals-fix,
html body .cart-collaterals .cart_totals.ucai-totals {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body .ucai-screen .ucai-qty .quantity,
html body .ucai-screen .ucai-qty .quantity:focus-within {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body .ucai-screen .ucai-qty input.qty,
html body .ucai-screen .ucai-qty input.qty:focus {
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .ucai-totals a.checkout-button.ucai-btn-gold,
html body .ucai-screen a.ucai-btn-gold {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

html body .ucai-totals .ucai-cart-total-note {
  position: relative;
  margin: 12px 0 0 !important;
  padding: 0 0 0 28px !important;
  border: 0 !important;
  background: none !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #6b7280 !important;
}

html body .ucai-totals .ucai-cart-total-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b49a57' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.2'/%3E%3C/svg%3E") no-repeat center / contain;
}

html body .ucai-screen .ucai-cart__coupon-form .button {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}

/* ---- Buscador del catálogo (sustituye al desplegable «Tri par défaut») ---- */
.woocommerce-ordering {
  display: none !important;
}

.ucai-search-wrap {
  clear: both;
  width: 100%;
  max-width: 560px;
  margin: 4px auto 18px;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html body .ucai-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

html body .ucai-search .ucai-search__ico {
  position: absolute;
  left: 16px;
  top: 50%;
  display: grid;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #a8894a;
  pointer-events: none;
}

html body .ucai-search svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body .ucai-search input.ucai-search__input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 46px 0 46px !important;
  border: 1px solid #e6dfd2 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(60, 45, 15, 0.06) !important;
  color: #1b2437;
  font-family: inherit;
  font-size: 16px; /* 16px evita el zoom automático de iOS */
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

html body .ucai-search input.ucai-search__input::placeholder {
  color: #8a8f99;
}

html body .ucai-search input.ucai-search__input:focus {
  border-color: #cdb279 !important;
  box-shadow: 0 0 0 3px rgba(180, 154, 87, 0.18) !important;
}

html body .ucai-search input.ucai-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

html body .ucai-search .ucai-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px !important;
  border: 0 !important;
  border-radius: 50%;
  background: #f1ece2 !important;
  color: #1b2437 !important;
  box-shadow: none !important;
  transform: translateY(-50%);
  cursor: pointer;
}

html body .ucai-search .ucai-search__clear[hidden] {
  display: none;
}

html body .ucai-search__none {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: #6b7280;
}

html body .ucai-search__none[hidden] {
  display: none;
}

html body .ucai-search__none .ucai-search__all {
  display: block;
  margin: 8px auto 0;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 12px;
  background: #f6edda !important;
  color: #a8894a !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none !important;
  cursor: pointer;
}

/* ---- Checkout: fila «Frais de transport : À confirmer» ---- */
.ucai-transport-row .ucai-transport-row__value {
  color: #a8894a;
  font-weight: 700;
}

/* Resultados de búsqueda: título como en las categorías */
body.ucai-product-search .woocommerce-products-header__title.page-title {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

/* ------------------------------------------------------------------ Se connecter / Créer un compte */

body.ucai-screens.woocommerce-account .page-header:has(~ .page-content .ucai-login),
body.ucai-screens.woocommerce-account:has(.ucai-login) .page-header {
  display: none;
}

html body.ucai-screens.woocommerce-account .woocommerce:has(.ucai-login) {
  display: block !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}

.woocommerce-account .woocommerce:has(.ucai-login) > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce:has(.ucai-login) > .woocommerce-error,
.woocommerce-account .woocommerce:has(.ucai-login) > .woocommerce-message,
.woocommerce-account .woocommerce:has(.ucai-login) > .woocommerce-info {
  max-width: 528px;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body .woocommerce:has(.ucai-login) :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  border: 1px solid #efe3c9 !important;
  border-radius: 12px !important;
  background: #fbf7ef !important;
  color: #1b2437 !important;
  font-size: 13.5px;
}

html body .woocommerce:has(.ucai-login) .woocommerce-error {
  border-color: #f3cfcc !important;
  background: #fdf1f0 !important;
  color: #8a2432 !important;
}

.ucai-login {
  padding-top: 18px;
}

.ucai-login .ucai-screen__logo img {
  width: 118px;
}

html body .ucai-screen .ucai-login__eyebrow {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b49a57;
}

.ucai-login .ucai-login__title {
  margin-bottom: 6px;
}

html body .ucai-screen .ucai-login__lead {
  max-width: 330px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6b7280;
}

/* Selector segmentado (estilo iOS) */
.ucai-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: #f3efe7;
}

.ucai-seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 36, 55, 0.12), 0 1px 1px rgba(27, 36, 55, 0.04);
  transition: transform 0.26s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.ucai-login[data-tab="register"] .ucai-seg__thumb {
  transform: translateX(100%);
}

html body .ucai-screen .ucai-seg__btn {
  position: relative;
  z-index: 1;
  height: 40px;
  margin: 0;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 11px;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html body .ucai-screen .ucai-seg__btn[aria-selected="true"] {
  color: #1b2437 !important;
  font-weight: 700 !important;
}

/* Tarjeta del formulario */
.ucai-login__panel {
  padding: 20px 18px 18px;
}

.ucai-login__panel[hidden] {
  display: none !important;
}

html body .ucai-login__panel form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.ucai-login .social-sep {
  display: none !important;
}

html body .ucai-screen .ucai-field {
  display: block;
  width: auto !important;
  float: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

html body .ucai-screen .ucai-field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #1b2437;
}

.ucai-field__box {
  position: relative;
}

html body .ucai-screen .ucai-field__ico {
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #a8894a;
  pointer-events: none;
}

.ucai-field__ico svg,
.ucai-field__eye svg {
  width: 100%;
  height: 100%;
}

html body .ucai-screen .ucai-field__box input.input-text {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 46px 0 44px !important;
  border: 1px solid #e2dbcd !important;
  border-radius: 14px !important;
  background: #fbfaf7 !important;
  box-shadow: none !important;
  color: #1b2437 !important;
  font-family: inherit;
  font-size: 16px !important; /* evita el zoom de iOS */
  font-weight: 500;
  line-height: 52px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

html body .ucai-screen .ucai-field__box input.input-text::placeholder {
  color: #a1a5ad;
  font-weight: 400;
}

html body .ucai-screen .ucai-field__box input.input-text:focus {
  border-color: #cdb279 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(180, 154, 87, 0.18) !important;
}

html body .ucai-screen .ucai-field__eye {
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 11px !important;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  transform: translateY(-50%);
  cursor: pointer;
}

.ucai-field__eye .ucai-eye-closed,
.ucai-field__eye[aria-pressed="true"] .ucai-eye-open {
  display: none;
}

.ucai-field__eye[aria-pressed="true"] .ucai-eye-closed {
  display: block;
}

.ucai-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
}

/* Interruptor «Se souvenir de moi» */
html body .ucai-screen label.ucai-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  font-size: 13.5px;
  font-weight: 600;
  color: #1b2437;
  cursor: pointer;
}

html body .ucai-screen .ucai-switch input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  margin: 0 !important;
  border: 0;
  border-radius: 13px;
  background: #e5e0d6;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

html body .ucai-screen .ucai-switch input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

html body .ucai-screen .ucai-switch input[type="checkbox"]:checked {
  background: #b89954;
}

html body .ucai-screen .ucai-switch input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

html body .ucai-screen a.ucai-login__lost {
  font-size: 13.5px;
  font-weight: 600;
  color: #a8894a !important;
  text-decoration: none !important;
  white-space: nowrap;
}

html body .ucai-screen .ucai-login__panel button.ucai-btn-gold {
  width: 100% !important;
  margin: 4px 0 0 !important;
  float: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body .ucai-screen .ucai-login__panel .woocommerce-privacy-policy-text,
html body .ucai-screen .ucai-login__panel .woocommerce-privacy-policy-text p,
html body .ucai-screen .ucai-login__hint {
  margin: 0 0 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b7280;
}

/* Acceso a la cuenta profesional */
.ucai-login__pro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

html body .ucai-screen .ucai-login__pro-ico {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #efe3c9;
  border-radius: 12px;
  background: #f8f1e4;
  color: #b49a57;
}

.ucai-login__pro-ico svg {
  width: 22px;
  height: 22px;
}

.ucai-login__pro-text {
  flex: 1 1 auto;
  min-width: 0;
}

html body .ucai-screen .ucai-login__pro-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #1b2437;
}

html body .ucai-screen .ucai-login__pro-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

html body .ucai-screen .ucai-login__pro-chev {
  display: grid;
  color: #1b2437;
}

.ucai-login__pro-chev svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* WooCommerce envuelve los campos de contraseña en span.password-input y añade su propio ojo: se usa el nuestro. */
html body .ucai-screen .ucai-field__box .password-input {
  display: block;
  position: static;
}

html body .ucai-screen .ucai-field__box .show-password-input {
  display: none !important;
}

html body .ucai-screen .ucai-field__ico,
html body .ucai-screen .ucai-field__eye {
  z-index: 2;
}

html body .ucai-screen .ucai-field__eye svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

html body .ucai-screen .ucai-field__eye .ucai-eye-closed,
html body .ucai-screen .ucai-field__eye[aria-pressed="true"] .ucai-eye-open {
  display: none;
}

html body .ucai-screen .ucai-field__eye[aria-pressed="true"] .ucai-eye-closed {
  display: block;
}

/* ------------------------------------------------------------------ Mot de passe oublié */
.ucai-recover__badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 14px auto 6px;
  border-radius: 50%;
  background: #f8f1e4;
  color: #b49a57;
}

.ucai-recover__badge svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ucai-recover__badge--ok {
  background: #eef6ef;
  color: #2f7a4b;
}

html body .ucai-screen.ucai-recover .ucai-login__panel button.ucai-btn-gold {
  margin-top: 6px !important;
}

html body .ucai-screen a.ucai-recover__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 18px auto 0;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #a8894a !important;
  text-decoration: none !important;
}

.ucai-recover__back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body .ucai-screen .ucai-recover__msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
}

.ucai-recover__cta {
  margin-top: 16px !important;
}

/* ---- Mode de vente (unité / ml) ---- */
.ucai-unit-suffix {
  margin-left: 2px;
  font-size: 0.62em;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

form.cart .ucai-qty-label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1b2437;
}

form.cart .ucai-qty-suffix {
  display: inline-block;
  margin: 0 10px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #a8894a;
  vertical-align: middle;
}

form.cart .ucai-qty-suffix:empty {
  display: none;
}

.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) {
  flex-wrap: wrap;
}

html body .ucai-screen .ucai-qty__unit {
  margin: 0 2px 0 -6px;
  font-size: 14px;
  font-weight: 700;
  color: #a8894a;
}

html body .ucai-screen .ucai-qty__unit:empty {
  display: none;
}

/* Etiqueta a todo el ancho y «ml» dentro del campo de cantidad */
html body form.cart .ucai-qty-label {
  grid-column: 1 / -1;
  flex: 1 0 100%;
}

html body form.cart .quantity {
  position: relative;
}

html body form.cart .quantity .ucai-qty-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

html body form.cart.ucai-unit-ml .quantity input.qty,
html body form.cart.ucai-unit-u .quantity input.qty {
  min-width: 92px;
  padding-right: 34px !important;
  text-align: center;
}

/* Precio de la barra completa para artículos al metro lineal */
.ucai-bar-price {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #6b7280;
}

html body .ucai-screen .ucai-ci__prices small.ucai-ci__bar {
  margin-top: 1px;
  color: #a8894a;
  font-weight: 600;
}
