/* Paid WhatsApp updates opt-in card: website booking (class/ucp.class.php) + admin Create order (admin/class/ucp.class.php). */
.wa-optin { position: relative; display: flex; align-items: center; gap: 14px; margin: 16px 0; padding: 14px 16px; border: 1.5px solid #d7eadb; border-radius: 14px; background: linear-gradient(135deg, #ffffff 0%, #f1fbf4 100%); box-shadow: 0 2px 10px rgba(18, 140, 126, .07); cursor: pointer; user-select: none; transition: border-color .2s, box-shadow .2s, background .2s; font-weight: normal; width: 100%; }
.wa-optin:hover { border-color: #9fdcb2; box-shadow: 0 4px 16px rgba(18, 140, 126, .13); }
.wa-optin input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wa-optin-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #25d366, #128c7e); color: #fff; font-size: 25px; box-shadow: 0 3px 10px rgba(37, 211, 102, .35); }
.wa-optin-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.wa-optin-title { font-weight: 700; font-size: 15px; color: #1f2d27; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.wa-optin-price { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #e3f7ea; color: #0f7a4a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wa-optin-sub { font-size: 12.5px; color: #66746d; font-weight: 400; }
.wa-optin-sub[dir="rtl"] { font-size: 13px; }
.wa-optin-note { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #8a6d1f; line-height: 1.4; }
.wa-optin-note .fa-info-circle { color: #c99a2e; }
.wa-optin-note[dir="rtl"] { text-align: left; }
.wa-optin-note-en { margin-top: 0; }
.wa-optin-switch { flex: 0 0 46px; width: 46px; height: 26px; border-radius: 999px; background: #cfd8d3; position: relative; transition: background .2s; }
.wa-optin-switch::after { 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, .25); transition: transform .2s; }
.wa-optin input:checked ~ .wa-optin-switch { background: #25d366; }
.wa-optin input:checked ~ .wa-optin-switch::after { transform: translateX(20px); }
.wa-optin input:focus-visible ~ .wa-optin-switch { outline: 2px solid #128c7e; outline-offset: 2px; }
.wa-optin:has(input:checked), .wa-optin.is-on { border-color: #25d366; background: linear-gradient(135deg, #f3fdf6 0%, #dff7e8 100%); box-shadow: 0 4px 18px rgba(37, 211, 102, .2); }
.wa-optin-on { display: none; color: #0f7a4a; font-size: 12px; font-weight: 600; }
.wa-optin:has(input:checked) .wa-optin-on, .wa-optin.is-on .wa-optin-on { display: inline; }
/* Narrow homes (Order Review column): logo + switch on top, text full width below. */
#bookingWaNotify { container-type: inline-size; }
@container (max-width: 330px) {
  .wa-optin { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon . switch" "text text text"; row-gap: 10px; }
  .wa-optin-icon { grid-area: icon; flex-basis: auto; width: 38px; height: 38px; font-size: 21px; }
  .wa-optin-switch { grid-area: switch; align-self: center; }
  .wa-optin-text { grid-area: text; }
}
@media (max-width: 480px) { .wa-optin { gap: 10px; padding: 12px; } .wa-optin-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 21px; } .wa-optin-title { font-size: 14px; } }
