/* A 620px drawing is uniformly scaled as a whole by button-scale.js.
   Text layout is calculated once at the design width, never at the block width. */
.maha-stable-button,
.nta_wa_button.maha-legacy-capsule {
 --maha-button-bg:#29b73e; --maha-button-color:#fff;
 display:block; width:100%; max-width:100%; min-width:0; padding:0;
 box-sizing:border-box;
 font-family:Arial,Helvetica,sans-serif; line-height:1.35; vertical-align:top;
}
.maha-button-frame { position:relative; display:block; width:100%; min-width:0; aspect-ratio:620 / 158; }
[data-maha-scale-ready] .maha-button-frame > :is(button,a) { visibility:visible !important; }
.maha-stable-button [hidden] { display:none !important; }
:is(.maha-stable-button .maha-button-frame > button, .nta_wa_button.maha-legacy-capsule .wa__button) {
 --maha-portrait:158px;
 --maha-badge:calc(var(--maha-portrait) * .345);
 --maha-text-size:24px;
 position:absolute !important; inset-inline-start:0; top:calc(13px * var(--maha-button-scale, 1)); display:flex !important; align-items:center; box-sizing:border-box;
 transform:scale(var(--maha-button-scale, 1)); transform-origin:top left; visibility:hidden;
 width:620px !important; max-width:none !important; min-width:620px !important; min-height:132px !important; height:auto !important;
 margin:0 !important;
 padding:16px 36px 16px 210px !important;
 border:0; border-radius:999px !important; background:var(--maha-button-bg); color:var(--maha-button-color);
 font:inherit; text-align:start; text-transform:none; letter-spacing:normal; text-decoration:none;
 cursor:pointer; box-shadow:0 12px 20px #00000012; overflow:visible; isolation:isolate;
}
.maha-stable-button .maha-button-frame > button:hover:not(:disabled) { filter:brightness(.97); }
.maha-stable-button .maha-button-frame > button:disabled { background:#e7ece9; color:#53645b; cursor:not-allowed; box-shadow:none; opacity:1; }
:is(.maha-stable-button .maha-button-frame > button, .nta_wa_button.maha-legacy-capsule .wa__button):focus-visible { outline:3px solid #136b35; outline-offset:5px; }
:is(.maha-stable-button .maha-button-portrait, .nta_wa_button.maha-legacy-capsule :is(.wa__cs_img,.wa__btn_icon)) {
 position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%);
 width:var(--maha-portrait); height:var(--maha-portrait); min-width:0; min-height:0;
 padding:0; margin:0; border:6px solid #fff; border-radius:50%;
 box-sizing:border-box; background:#f3f6f4; box-shadow:0 7px 14px #0000000b;
}
/* Clip the photo separately so the badge can overlap the circular portrait. */
:is(.maha-stable-button .maha-button-photo, .nta_wa_button.maha-legacy-capsule .wa__cs_img_wrap) {
 display:block; width:100% !important; height:100% !important; max-width:none; max-height:none;
 border-radius:50% !important; overflow:hidden; clip-path:circle(50%); background:#f3f6f4;
}
:is(.maha-stable-button .maha-button-photo > img, .nta_wa_button.maha-legacy-capsule .wa__btn_icon > img) {
 display:block; width:100% !important; height:100% !important; max-width:none !important; max-height:none !important;
 object-fit:cover; object-position:center; border:0 !important; border-radius:50% !important;
 margin:0 !important; padding:0 !important; box-shadow:none; background:#29b73e;
}
.maha-stable-button .maha-button-photo > img.maha-has-photo { background:#f3f6f4; }
:is(.maha-stable-button .maha-button-wa-badge, .nta_wa_button.maha-legacy-capsule .maha-legacy-wa-badge) {
 position:absolute; top:20%; inset-inline-end:calc(var(--maha-badge) * -.5);
 display:grid; place-items:center; width:var(--maha-badge); height:var(--maha-badge);
 border:0; border-radius:50%; background:#fff; box-shadow:0 3px 8px #00000018; box-sizing:border-box;
}
.nta_wa_button.maha-legacy-capsule .maha-legacy-wa-badge {
 top:calc(50% - var(--maha-portrait) * .3); inset-inline-start:calc(var(--maha-portrait) - var(--maha-badge) * .5);
 inset-inline-end:auto;
}
:is(.maha-stable-button .maha-button-wa-badge, .nta_wa_button.maha-legacy-capsule .maha-legacy-wa-badge) img {
 display:block; width:60% !important; height:60% !important; max-width:none; max-height:none;
 margin:0 !important; padding:0 !important; border:0; border-radius:0; box-shadow:none;
 filter:brightness(0) saturate(100%) invert(55%) sepia(88%) saturate(1578%) hue-rotate(87deg) brightness(94%) contrast(83%);
}
:is(.maha-stable-button .maha-button-text, .nta_wa_button.maha-legacy-capsule .wa__btn_txt) {
 display:flex; flex-direction:column; gap:5px; min-width:0; width:100%; height:auto;
 margin:0; padding:0; overflow-wrap:normal;
}
:is(.maha-stable-button .maha-button-meta, .nta_wa_button.maha-legacy-capsule .wa__cs_info) {
 display:flex; align-items:center; flex-wrap:nowrap; gap:7px;
 margin:0; padding:0; font-size:var(--maha-text-size); line-height:1.2; font-weight:400; color:inherit;
}
.nta_wa_button.maha-legacy-capsule .wa__cs_name { font-size:inherit; font-weight:400; line-height:1.2; color:inherit !important; }
:is(.maha-stable-button [data-status], .nta_wa_button.maha-legacy-capsule .wa__cs_status) {
 position:static; display:inline-block; width:auto; height:auto; max-width:100%;
 margin:0; border-radius:.6em; padding:.2em .5em; background:#ffffff40;
 font-size:calc(var(--maha-text-size) * .75); line-height:1.2; color:inherit;
}
:is(.maha-stable-button [data-label], .nta_wa_button.maha-legacy-capsule .wa__btn_title) {
 display:block; margin:0; padding:0; font-family:inherit; font-size:var(--maha-text-size);
 line-height:1.35; font-weight:700; color:inherit; white-space:pre-line; overflow-wrap:normal;
}
.maha-stable-button [data-detail] { display:none; }
.maha-stable-button [data-feedback] { margin:12px 8px 0; color:#46574e; font:13px/1.5 Arial,Helvetica,sans-serif; }
.maha-stable-button [data-retry] { margin-top:8px; min-height:44px; background:#fff; border:1px solid #bacdc1; border-radius:8px; padding:8px 14px; color:#225a40; font:inherit; cursor:pointer; }
.nta_wa_button.maha-legacy-capsule :is(.wa__cs_img,.wa__btn_icon)::after,
.nta_wa_button.maha-legacy-capsule .wa__button::before { display:none; }
[data-maha-manual-floating] [data-manual-feedback] { margin:12px 0 0; padding:12px; border-radius:8px; color:#244936; background:#eef5f0; font:13px/1.5 Arial,Helvetica,sans-serif; }

.nta_wa_button.maha-legacy-capsule .wa__button .wa__cs_status { margin:0; background:#ffffff40; }

/* Theme button/heading rules must not change the geometry of the fixed drawing. */
.maha-stable-button .maha-button-frame > button,
.nta_wa_button.maha-legacy-capsule .maha-button-frame > a {
 font:24px/1.35 Arial,Helvetica,sans-serif !important;
 letter-spacing:normal !important; text-transform:none !important;
}
.maha-stable-button .maha-button-frame [data-label],
.nta_wa_button.maha-legacy-capsule .maha-button-frame .wa__btn_title {
 font:700 24px/1.35 Arial,Helvetica,sans-serif !important;
 letter-spacing:normal !important; text-transform:none !important;
}
.maha-stable-button [data-name], .nta_wa_button.maha-legacy-capsule .wa__cs_name {
 min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Public placements remain absent until an On recipient/link is prepared. */
.maha-stable-button[hidden] { display:none !important; }
