.woocommerce-checkout .woocommerce form .form-row label,.woocommerce-page .woocommerce form .form-row label{font-weight:700;color:var(--coffeeno-ui-text,#333)}
.woocommerce-checkout .woocommerce form .form-row input.input-text,.woocommerce-checkout .woocommerce form .form-row textarea,.woocommerce-checkout .woocommerce form .form-row select,.woocommerce-page .woocommerce form .form-row input.input-text,.woocommerce-page .woocommerce form .form-row textarea,.woocommerce-page .woocommerce form .form-row select{background:var(--coffeeno-ui-field-bg,#fff)!important;border:1px solid var(--coffeeno-ui-border,#dadada)!important;border-radius:12px!important;box-shadow:none!important;min-height:48px;padding:10px 14px!important;color:var(--coffeeno-ui-text,#333)}
.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-additional-fields,.woocommerce-checkout #order_review,.woocommerce-checkout #payment,.woocommerce-account .woocommerce,.woocommerce-order-received .woocommerce-order,.woocommerce-order-received .woocommerce-order-details,.woocommerce-order-received .woocommerce-customer-details,.woocommerce-order-received .woocommerce-table--order-details,.coffeeno-otp-auth{background:var(--coffeeno-ui-panel-bg,#fff)!important;border:1px solid var(--coffeeno-ui-border,#dadada)!important;border-radius:18px!important;box-shadow:none!important}
.woocommerce-checkout #payment{padding:20px!important}.woocommerce-checkout #payment div.payment_box{background:rgba(0,0,0,.03)!important;border-radius:12px!important;color:var(--coffeeno-ui-text,#333)!important}.woocommerce-checkout #payment div.payment_box:before{display:none!important}
.woocommerce .button.alt,.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt,.woocommerce #payment #place_order,.coffeeno-otp-auth__button{background:var(--coffeeno-ui-primary,#e11d2e)!important;color:var(--coffeeno-ui-primary-text,#fff)!important;border-color:var(--coffeeno-ui-primary,#e11d2e)!important;border:none!important;border-radius:14px!important;box-shadow:none!important;text-shadow:none!important;font-weight:700!important;min-height:48px}
.woocommerce .button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,.woocommerce input.button.alt:hover,.woocommerce #payment #place_order:hover,.coffeeno-otp-auth__button:hover{filter:brightness(.96)}
.woocommerce-checkout-review-order-table,.woocommerce table.shop_table,.woocommerce-order-received table.shop_table{border-collapse:separate;border-spacing:0;border:1px solid var(--coffeeno-ui-border,#dadada)!important;border-radius:16px!important;overflow:hidden}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:12px!important}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,.woocommerce-checkout .wc_payment_methods{background:transparent!important}
.woocommerce-order-received .entry-title,.woocommerce-order-received .woocommerce-order h1,.woocommerce-order-received .woocommerce-order h2,.woocommerce-checkout .entry-title{line-height:1.15;color:#3a3a3a}.woocommerce-order-received .entry-title,.woocommerce-order-received .woocommerce-order h1{font-size:clamp(34px,8vw,64px);margin-bottom:12px}.woocommerce-order-received .woocommerce-order h2{font-size:clamp(26px,6.2vw,48px)}
.coffeeno-otp-auth__header h2{font-size:clamp(28px,5vw,42px);line-height:1.25}.coffeeno-otp-auth__header p{color:var(--coffeeno-ui-muted,#666)}.coffeeno-otp-auth__stage{display:grid;gap:10px}.coffeeno-otp-auth__stage label{margin:0;font-weight:700}.coffeeno-otp-auth__input{margin:0!important;background:var(--coffeeno-ui-field-bg,#fff)!important;border-color:var(--coffeeno-ui-border,#dadada)!important}.coffeeno-otp-auth__button{margin-top:2px!important}.coffeeno-otp-auth__sent{margin:0;line-height:1.8;color:#4b5563;overflow-wrap:anywhere}.coffeeno-otp-auth__sent strong{direction:ltr;display:inline-block}.coffeeno-otp-auth__secondary-actions{flex-wrap:wrap}.coffeeno-otp-auth__link{flex:1 1 180px;text-align:center;border-radius:12px!important;padding:10px 12px!important;text-decoration:none!important;background:rgba(0,0,0,.04)}
.woocommerce-order-received .woocommerce-order-details,.woocommerce-order-received .woocommerce-customer-details{padding:18px!important}.woocommerce-order-received .woocommerce-order-overview{display:flex;flex-wrap:wrap;gap:14px}.woocommerce-order-received .woocommerce-order-overview li{float:none!important;border:1px solid var(--coffeeno-ui-border,#dadada);border-radius:12px;padding:10px 14px!important;margin:0!important;background:var(--coffeeno-ui-panel-bg,#fff)}
@media(max-width:767px){.woocommerce-checkout #payment,.woocommerce-checkout #order_review,.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-additional-fields,.coffeeno-otp-auth{padding:16px!important}.woocommerce-order-received .entry-title,.woocommerce-checkout .entry-title{font-size:clamp(30px,10vw,52px)}.woocommerce-order-received .woocommerce-order-overview{display:grid;grid-template-columns:1fr 1fr}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:10px 8px!important}.coffeeno-otp-auth__secondary-actions{display:grid;grid-template-columns:1fr}.coffeeno-otp-auth__link{width:100%}}

/* OTP state visibility must beat theme/button layout rules. */
.coffeeno-otp-auth__stage[hidden]{display:none!important}
.coffeeno-otp-auth__secondary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;margin-top:10px!important}
.coffeeno-otp-auth__secondary-actions .coffeeno-otp-auth__link{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;min-height:42px!important;max-height:none!important;margin:0!important;padding:10px 12px!important;line-height:1.4!important;border:1px solid var(--coffeeno-ui-border,#dadada)!important;border-radius:12px!important;background:#fff!important;color:var(--coffeeno-ui-text,#333)!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important;font-size:14px!important;font-weight:700!important}
.coffeeno-otp-auth__secondary-actions .coffeeno-otp-auth__link:disabled{opacity:.55!important;cursor:not-allowed!important;background:#f4f4f4!important}
.coffeeno-otp-auth__sent{display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
.coffeeno-otp-auth__sent strong{direction:ltr!important;unicode-bidi:isolate!important;display:inline-block!important;white-space:nowrap!important}

/* Keep default Woo page titles update-safe: CSS/body classes only, no template override. */
body.woocommerce-checkout h1.entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-account h1.entry-title,
body.woocommerce-order-received h1.entry-title,
body.woocommerce-order-received .woocommerce-order h1{font-size:var(--coffeeno-ui-page-title-desktop,44px)!important;line-height:1.2!important;margin:0 0 18px!important;letter-spacing:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}

@media(max-width:767px){
  .coffeeno-otp-auth__secondary-actions{grid-template-columns:1fr 1fr!important}
  .coffeeno-otp-auth__secondary-actions .coffeeno-otp-auth__link{min-height:44px!important;padding:9px 8px!important;font-size:13px!important}
  body.woocommerce-checkout h1.entry-title,
  body.woocommerce-cart h1.entry-title,
  body.woocommerce-account h1.entry-title,
  body.woocommerce-order-received h1.entry-title,
  body.woocommerce-order-received .woocommerce-order h1{font-size:var(--coffeeno-ui-page-title-mobile,32px)!important;line-height:1.25!important;margin-bottom:14px!important}
}

/* Classic Coffeeno checkout desktop spacing: keep theme typography from crowding panel borders. */
@media(min-width:768px){
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-additional-fields{padding:20px 22px!important}
  body.woocommerce-checkout .woocommerce-billing-fields>h3,
  body.woocommerce-checkout .woocommerce-additional-fields>h3{font-size:26px!important;line-height:1.3!important;margin:0 0 16px!important}
  body.woocommerce-checkout .woocommerce-billing-fields label,
  body.woocommerce-checkout .woocommerce-additional-fields label{font-size:15px!important;line-height:1.6!important}
  body.woocommerce-checkout .woocommerce-additional-fields textarea{font-size:14px!important;line-height:1.7!important}
}

/* OTP-verified phone is identity, not free-form recipient data. */
body.woocommerce-checkout input.coffeeno-checkout-phone--verified[readonly]{background:#fff1f2!important;color:#7f1d1d!important;border-color:#f4a3ad!important;border-style:solid!important;cursor:not-allowed!important;box-shadow:none!important}
body.woocommerce-checkout .woocommerce form #billing_phone_field .woocommerce-input-wrapper .description{display:block!important;width:100%!important;box-sizing:border-box!important;margin-top:8px!important;padding:10px 12px!important;background:#fff1f2!important;border:1px solid #f4a3ad!important;border-radius:10px!important;color:#7f1d1d!important;font-size:12px!important;font-weight:600!important;line-height:1.8!important;box-shadow:none!important}