/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.ctabutton {
    position: fixed;
    bottom: 0px;
    width: 100%;
    z-index: 500;
    border: none;
    margin: 0;
    max-width: 576px;
}
.ctabutton.message-slider.ctabutton-position-right {
    left: auto;
    right: 15px;
    width: auto;
    max-width: none;
}
.ctabutton.message-slider.ctabutton-position-left {
    left: 15px;
    right: auto;
    width: auto;
    max-width: none;
}

/* Call + Message: shrink-wrap to buttons + footer; stay flush to corner (not centred in the bar) */
.ctabutton.ctabutton--fit-content {
    width: fit-content;
    width: -moz-fit-content;
    max-width: min(576px, calc(100vw - 30px));
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
}
.ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-right {
    margin-left: auto;
    margin-right: 0;
}
.ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-left {
    margin-left: 0;
    margin-right: auto;
}
.ctabutton.ctabutton--fit-content:not(.message-slider) {
    left: 15px;
    right: auto;
}
/* Call / SMS: same tight spacing as mobile (global launch-btn uses margin:15px on desktop) */
.ctabutton.ctabutton--fit-content:not(.message-slider) a.launch-btn {
    margin: 0;
    padding: 14px 18px;
    font-size: 18px;
    line-height: 1.35;
}
.ctabutton.ctabutton--fit-content:not(.message-slider) .ctabutton-launch-stack__buttons {
    gap: 8px;
    align-items: center;
}
.ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15.ctabutton-launch-stack {
    gap: 8px;
}

/* Redirect slider: docked bottom corner, 20px from bottom and from left or right */
.ctabutton.redirect-slider {
    bottom: 20px;
    left: 20px;
    right: auto;
    width: auto;
    max-width: min(576px, calc(100vw - 40px));
}
.ctabutton.redirect-slider.ctabutton-position-right {
    left: auto;
    right: 20px;
}
.ctabutton.redirect-slider.ctabutton-position-left {
    left: 20px;
    right: auto;
}
.ctabutton.redirect-slider .ctabutton-vis-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
/* “Powered by” — redirect, Call/SMS, Message SMS (not WhatsApp) */
.ctabutton .ctabutton-footer-brand {
    margin: 8px 0 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
    color: #737373;
}
.ctabutton .ctabutton-footer-brand__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ctabutton .ctabutton-footer-brand__link:hover {
    color: #525252;
}
/* Apply-coupon starter: only the launch control — hide slide-up panel */
.ctabutton.redirect-slider.redirect-slider--coupon-minimal .bottom-sheet {
    display: none !important;
}
.ctabutton.redirect-slider .bottom-sheet {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ctabutton.redirect-slider a.launch-btn,
.ctabutton.redirect-slider button.launch-btn {
    margin: 12px 0 0 0;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--small {
    padding: 8px 16px;
    font-size: 13px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--medium {
    padding: 12px 24px;
    font-size: 15px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--large {
    padding: 16px 36px;
    font-size: 17px;
}

/* Coupon minimal: reveal code, then tap again to copy */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
}
/* Stack three layers in one grid cell so width = max(all states) */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__stack {
    display: inline-grid;
    vertical-align: middle;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__idle,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__revealed,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__copied {
    grid-area: 1 / 1;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__idle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal:not(.ctabutton-launch-btn--text-icon) .ctabutton-coupon-reveal__idle {
    display: inline;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__revealed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__revealed .ctabutton-coupon-reveal__copy-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: inherit;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__revealed .ctabutton-coupon-reveal__copy-icon svg {
    display: block;
    width: 1.1em;
    height: 1.1em;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__code {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__copied {
    display: inline-block;
}
/* Default: idle visible */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal:not(.is-revealed) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__revealed,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal:not(.is-revealed) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__copied {
    visibility: hidden;
    pointer-events: none;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-revealed:not(.is-copied) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__idle,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-revealed:not(.is-copied) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__copied {
    visibility: hidden;
    pointer-events: none;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-copied .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__idle,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-copied .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__revealed {
    visibility: hidden;
    pointer-events: none;
}
/* Icon-only: off-flow hidden layers until first tap (keeps circle) */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--coupon-reveal .ctabutton-coupon-reveal__stack {
    position: relative;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--coupon-reveal:not(.is-revealed) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__revealed,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--coupon-reveal:not(.is-revealed) .ctabutton-coupon-reveal__stack > .ctabutton-coupon-reveal__copied {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}
/* Revealed + copied: muted dark surface (distinct from primary CTA) */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-revealed,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--coupon-reveal.is-copied {
    background-color: #3a3a3a !important;
    color: #f0f0f0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--coupon-reveal.is-revealed,
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--coupon-reveal.is-copied {
    width: auto;
    min-width: 48px;
    padding: 0 16px;
    border-radius: 999px;
}

/* Icon-only launch (round, WhatsApp-style) */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only {
    position: relative;
    display: block;
    border-radius: 50%;
    padding: 0;
    min-width: 0;
    line-height: 1;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--small {
    width: 48px;
    height: 48px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--medium {
    width: 60px;
    height: 60px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--large {
    width: 72px;
    height: 72px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only .dashicons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 1em;
    height: 1em;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--small .dashicons {
    font-size: 26px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--medium .dashicons {
    font-size: 32px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--large .dashicons {
    font-size: 38px;
}

/* Text + icon launch (icon before label) */
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: left;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon .ctabutton-launch-btn__label {
    min-width: 0;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon .ctabutton-launch-btn__icon {
    flex-shrink: 0;
    margin: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon.ctabutton-launch-btn--small .ctabutton-launch-btn__icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon.ctabutton-launch-btn--medium .ctabutton-launch-btn__icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--text-icon.ctabutton-launch-btn--large .ctabutton-launch-btn__icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ctabutton .bottom-sheet {
    position: relative;
    box-sizing: border-box;
    padding: 16px 16px 18px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 20px rgb(0 0 0 / 30%);
    display: none;
}
.ctabutton .bottom-sheet .bottom-sheet-content {
    min-width: 0;
    /* Reserve space so title/body never sit under the absolutely positioned close control */
    padding-right: 36px;
}
.ctabutton .bottom-sheet.open {
    display: block;
    animation: fadeIn 0.6s;
    -webkit-animation: fadeIn 0.6s;
    -moz-animation: fadeIn 0.6s;
    -o-animation: fadeIn 0.6s;
    -ms-animation: fadeIn 0.6s;
}
.ctabutton .bottom-sheet a {
    text-decoration: none;
}

.ctabutton .bottom-sheet .close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    float: none;
    margin: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    color: var(--wp-admin-theme-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ctabutton .bottom-sheet .close__glyph {
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    margin-top: -0.1em;
}
.ctabutton .bottom-sheet .close:hover,
.ctabutton .bottom-sheet .close:focus-visible {
    background-color: rgba(0, 0, 0, 0.06);
    outline: none;
}

.ctabutton .bottom-sheet h4 {
    color: var(--wp-admin-theme-color);
    font-size: larger;
    font-weight: 600;
    padding: 0;
    margin: 0 0 10px;
}

.ctabutton .bottom-sheet .sheet-item {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #cccccc;
}

.ctabutton .bottom-sheet .sheet-item .sheet-image {
    display: inline-block;
    width: 18%;
    float: left;
    padding-right: 2%;
}

.ctabutton .bottom-sheet .sheet-item .sheet-image img {
    height: auto;
    max-width: 100%;
}

.ctabutton .bottom-sheet .sheet-item .sheet-content h5 {
    font-size: medium;
    text-transform: none;
    font-weight: 700;
    color: var(--wc-secondary-text);
    margin: 0;
}

.ctabutton .bottom-sheet .sheet-item .sheet-content p {
    font-size: 13px;
    line-height: normal;
    margin-bottom: 1.3em;
}

.ctabutton .bottom-sheet .sheet-button {
    padding: 10px 16px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    background-color: var(--woocommerce, #0170B9);
    margin: 0px;
}
.ctabutton a.launch-btn,
.ctabutton button.launch-btn {
    font-weight: 600;
    background-color: #05ba94;
    border-radius: 3rem;
    border: none;
    color: #fff;
    padding: 12px 24px;
    margin: 15px;
    text-decoration: none;
}
.ctabutton a.launch-btn:hover,
.ctabutton a.launch-btn:focus,
.ctabutton a.launch-btn:active,
.ctabutton a.launch-btn:visited {
    text-decoration: none;
    color: #fff;
}
.ctabutton.message-slider a.launch-btn {
    margin-left: 8px;
    margin-right: 0;
    border-radius: 6px;
    display: block;
    height: 60px; 
    width: 60px;
    border-radius: 50%;
    padding: 0;
    text-align: center;
    position: relative;
}
.ctabutton.message-slider a.launch-btn .dashicons,
.ctabutton.message-slider a.launch-btn .ctabutton-whatsapp-icon {
    margin: 0;
    font-size: 32px;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}
.ctabutton.message-slider a.launch-btn .ctabutton-whatsapp-icon {
    font-size: inherit;
    width: 32px;
    height: 32px;
}
.ctabutton .bottom-sheet .sheet-redirect {
    clear: none;
    display: block;
    margin-top: 0;
}

.ctabutton .bottom-sheet .sheet-redirect .ctabutton-redirect-panel__title {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ctabutton .bottom-sheet .sheet-redirect .ctabutton-redirect-panel__desc {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.ctabutton .bottom-sheet .sheet-redirect .sheet-button {
    padding: 10px 18px;
    font-size: 16px;
    line-height: 1.35;
}
.ctabutton .bottom-sheet .sheet-redirect a.sheet-button.ctabutton-sheet-cta.ctabutton-sheet-cta--width-standard {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}
.ctabutton .bottom-sheet .sheet-redirect a.sheet-button.ctabutton-sheet-cta.ctabutton-sheet-cta--width-full {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}
.ctabutton.redirect-slider .bottom-sheet .sheet-redirect a.sheet-button.ctabutton-sheet-cta {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}
.ctabutton.redirect-slider .bottom-sheet .sheet-redirect > div:first-child > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.ctabutton .dashicons {
    text-decoration: none;
    vertical-align: middle;
    margin-right: 5px;
}
.ctabutton a.launch-btn .dashicons {
    text-decoration: none;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-o-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-ms-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/** helpers **/
.ctabutton .mb-15 {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* Call / Message: column wraps buttons + footer; block width = content (footer centred in that block) */
.ctabutton .mb-15.ctabutton-launch-stack {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: top;
}
.ctabutton .ctabutton-launch-stack__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
}
.ctabutton .mb-15.ctabutton-launch-stack .ctabutton-footer-brand {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.ctabutton-message-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ctabutton.message-slider.ctabutton-position-left .ctabutton-message-item {
    flex-direction: row-reverse;
}
.ctabutton-callout:empty {
    display: none;
}
.ctabutton-callout {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ctabutton-callout.ctabutton-callout--light {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 12px rgb(0 0 0 / 15%);
}
.ctabutton-callout.ctabutton-callout--dark {
    background: #1f2c33;
    color: #e9edef;
    box-shadow: 0 2px 12px rgb(0 0 0 / 35%);
}

@media only screen and (max-width: 768px) {
    .ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--medium {
        width: 52px;
        height: 52px;
    }
    .ctabutton.redirect-slider button.launch-btn.ctabutton-launch-btn--icon-only.ctabutton-launch-btn--medium .dashicons {
        font-size: 28px;
    }
    /* Align with mb-15 padding (8px): desktop uses right:15px + padding which made the button farther from the right than from the bottom. */
    .ctabutton.message-slider.ctabutton-position-right {
        right: 0;
    }
    .ctabutton.message-slider.ctabutton-position-left {
        left: 0;
    }
    /* width:auto + inset avoids 100%/100vw overflow next to scrollbars */
    .ctabutton.ctabutton--fit-content {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        overflow-x: clip;
    }
    /* Must beat desktop :not(.message-slider){left:15px} — otherwise Call/SMS stays shrink-wrapped ~half screen */
    .ctabutton.ctabutton--fit-content:not(.message-slider) {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        overflow-x: clip;
    }
    .ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-right {
        left: auto;
        right: 0;
    }
    .ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-left {
        left: 0;
        right: auto;
    }
    .ctabutton .mb-15 {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 8px;
    }
    .ctabutton .mb-15.ctabutton-launch-stack {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .ctabutton .mb-15.ctabutton-launch-stack .ctabutton-launch-stack__buttons {
        width: 100%;
    }
    .ctabutton.message-slider .mb-15 {
        padding: 10px;
    }
    .ctabutton .mb-15 a.launch-btn,
    .ctabutton .mb-15 button.launch-btn {
        flex: 1;
        min-width: 0;
        margin: 0;
        text-align: center;
    }
    /* Call / SMS: stay one row; stay within viewport (no stacked full-width buttons) */
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15.ctabutton-launch-stack {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .ctabutton-launch-stack__buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15 a.launch-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        padding: 14px 10px;
        font-size: 17px;
        line-height: 1.35;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.2em;
        overflow-wrap: anywhere;
        word-wrap: break-word;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15 a.launch-btn .dashicons {
        flex-shrink: 0;
        margin-right: 0;
    }
    /* Message slider: keep a fixed round button — do not use flex:1 here or the link can shrink to 0 beside the callout. */
    .ctabutton.message-slider .ctabutton-message-item {
        min-width: 0;
        flex: 1 1 auto;
    }
    .ctabutton.message-slider .mb-15 .ctabutton-callout {
        flex: 1 1 auto;
        min-width: 0;
        padding: 5px 8px;
        font-size: 13px;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn {
        flex: 0 0 auto;
        min-width: 56px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn .dashicons,
    .ctabutton.message-slider .mb-15 a.launch-btn .ctabutton-whatsapp-icon {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn .ctabutton-whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/*
 * Message slider admin preview: wp-admin is wider than 768px so @media above does not run.
 * Narrow container + @container mirrors the same rules so the preview matches phones.
 */
.ctabutton-admin-preview--message {
    container-type: inline-size;
    max-width: min(390px, 100%);
}
@container (max-width: 768px) {
    .ctabutton.message-slider.ctabutton-position-right {
        right: 0;
    }
    .ctabutton.message-slider.ctabutton-position-left {
        left: 0;
    }
    /* width:auto + inset avoids 100%/100vw overflow next to scrollbars */
    .ctabutton.ctabutton--fit-content {
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        overflow-x: clip;
    }
    /* Must beat desktop :not(.message-slider){left:15px} — otherwise Call/SMS stays shrink-wrapped ~half screen */
    .ctabutton.ctabutton--fit-content:not(.message-slider) {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        overflow-x: clip;
    }
    .ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-right {
        left: auto;
        right: 0;
    }
    .ctabutton.ctabutton--fit-content.message-slider.ctabutton-position-left {
        left: 0;
        right: auto;
    }
    .ctabutton .mb-15 {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 8px;
    }
    .ctabutton .mb-15.ctabutton-launch-stack {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .ctabutton .mb-15.ctabutton-launch-stack .ctabutton-launch-stack__buttons {
        width: 100%;
    }
    .ctabutton.message-slider .mb-15 {
        padding: 10px;
    }
    .ctabutton .mb-15 a.launch-btn,
    .ctabutton .mb-15 button.launch-btn {
        flex: 1;
        min-width: 0;
        margin: 0;
        text-align: center;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15.ctabutton-launch-stack {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .ctabutton-launch-stack__buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15 a.launch-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        padding: 14px 10px;
        font-size: 17px;
        line-height: 1.35;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.2em;
        overflow-wrap: anywhere;
        word-wrap: break-word;
    }
    .ctabutton.ctabutton--fit-content:not(.message-slider) .mb-15 a.launch-btn .dashicons {
        flex-shrink: 0;
        margin-right: 0;
    }
    .ctabutton.message-slider .ctabutton-message-item {
        min-width: 0;
        flex: 1 1 auto;
    }
    .ctabutton.message-slider .mb-15 .ctabutton-callout {
        flex: 1 1 auto;
        min-width: 0;
        padding: 5px 8px;
        font-size: 13px;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn {
        flex: 0 0 auto;
        min-width: 56px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn .dashicons,
    .ctabutton.message-slider .mb-15 a.launch-btn .ctabutton-whatsapp-icon {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    .ctabutton.message-slider .mb-15 a.launch-btn .ctabutton-whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* Show on: desktop / mobile / both — matches 768px breakpoint used above */
.ctabutton .ctabutton-vis-wrap.ctabutton-vis--both {
    display: contents;
}
.ctabutton .ctabutton-message-item.ctabutton-vis-wrap.ctabutton-vis--both {
    display: flex;
}
.ctabutton .ctabutton-vis-wrap.ctabutton-vis--desktop {
    display: none;
}
@media (min-width: 769px) {
    .ctabutton .ctabutton-vis-wrap.ctabutton-vis--desktop {
        display: contents;
    }
    .ctabutton .ctabutton-message-item.ctabutton-vis-wrap.ctabutton-vis--desktop {
        display: flex;
    }
}
.ctabutton .ctabutton-vis-wrap.ctabutton-vis--mobile {
    display: none;
}
@media (max-width: 768px) {
    .ctabutton .ctabutton-vis-wrap.ctabutton-vis--mobile {
        display: contents;
    }
    .ctabutton .ctabutton-message-item.ctabutton-vis-wrap.ctabutton-vis--mobile {
        display: flex;
    }
}