/* Owner-approved Selge actions and sliding view switch v4. Canonical contract: docs/design/selge-action-buttons.json.
 * Shared owner for desktop/tablet actions and the cross-device view switch.
 * Phone UAs receive only the view switch; other rules require the desktop/tablet class.
 * Native labels, handlers, menus, branded search and business state remain authoritative. */
@media all {
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle) {
    --tp24-action-fill: #ffffff;
    --tp24-action-ink: #334b5b;
    --tp24-action-line: #cbd5df;
    --tp24-action-hover: #eaf0f5;
    --tp24-action-hover-line: #94aabd;
    --tp24-action-hover-ink: #263f52;
    --tp24-action-press: #dce6ee;
    --tp24-action-height: 44px;
    --tp24-action-padding: 7px 12px;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-btn-primary,.teenus24-btn-preview-publish,.teenus24-action-btn-primary,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,#wp-submit,.tp24-needs button:is([value="save"],[value="submit"],[value="confirm"],[value="activate"],[value="recover"],[value="notifications"])) {
    --tp24-action-fill: #254b68;
    --tp24-action-ink: #ffffff;
    --tp24-action-line: #254b68;
    --tp24-action-hover: #183b55;
    --tp24-action-hover-line: #183b55;
    --tp24-action-hover-ink: #ffffff;
    --tp24-action-press: #102d43;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-btn-cancel,.teenus24-btn-back,.tp24-needs button[value="close"]) {
    --tp24-action-fill: transparent;
    --tp24-action-ink: #475569;
    --tp24-action-line: transparent;
    --tp24-action-hover: #eaf0f5;
    --tp24-action-hover-line: #b9cad7;
    --tp24-action-hover-ink: #263f52;
    --tp24-action-press: #dce6ee;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-call-cta,.teenus24-phone-link) {
    --tp24-action-fill: transparent;
    --tp24-action-ink: #475569;
    --tp24-action-line: transparent;
    --tp24-action-hover: #eaf2ef;
    --tp24-action-hover-line: #adcbc1;
    --tp24-action-hover-ink: #244b40;
    --tp24-action-press: #dce9e3;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-action-btn-danger,.teenus24-btn-danger,.tp24-needs button[value="remove"]) {
    --tp24-action-fill: #ffffff;
    --tp24-action-ink: #9f3c3c;
    --tp24-action-line: #dfbcbc;
    --tp24-action-hover: #faeaea;
    --tp24-action-hover-line: #bc7777;
    --tp24-action-hover-ink: #852d2d;
    --tp24-action-press: #f3d7d7;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.tp24-needs form:not(:has(button[value="save"],button[value="submit"],button[value="publish"])) button[value="preview"],.tp24-needs form:not(:has(button[value="save"])) button[value="publish"]) {
    --tp24-action-fill: #254b68;
    --tp24-action-ink: #ffffff;
    --tp24-action-line: #254b68;
    --tp24-action-hover: #183b55;
    --tp24-action-hover-line: #183b55;
    --tp24-action-hover-ink: #ffffff;
    --tp24-action-press: #102d43;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[data-tp24-action="secondary"] {
    --tp24-action-fill: #ffffff;
    --tp24-action-ink: #334b5b;
    --tp24-action-line: #cbd5df;
    --tp24-action-hover: #eaf0f5;
    --tp24-action-hover-line: #94aabd;
    --tp24-action-hover-ink: #263f52;
    --tp24-action-press: #dce6ee;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[data-tp24-action="primary"] {
    --tp24-action-fill: #254b68;
    --tp24-action-ink: #ffffff;
    --tp24-action-line: #254b68;
    --tp24-action-hover: #183b55;
    --tp24-action-hover-line: #183b55;
    --tp24-action-hover-ink: #ffffff;
    --tp24-action-press: #102d43;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[data-tp24-action="quiet"] {
    --tp24-action-fill: transparent;
    --tp24-action-ink: #475569;
    --tp24-action-line: transparent;
    --tp24-action-hover: #eaf0f5;
    --tp24-action-hover-line: #b9cad7;
    --tp24-action-hover-ink: #263f52;
    --tp24-action-press: #dce6ee;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[data-tp24-action="phone"] {
    --tp24-action-fill: transparent;
    --tp24-action-ink: #475569;
    --tp24-action-line: transparent;
    --tp24-action-hover: #eaf2ef;
    --tp24-action-hover-line: #adcbc1;
    --tp24-action-hover-ink: #244b40;
    --tp24-action-press: #dce9e3;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[data-tp24-action="danger"] {
    --tp24-action-fill: #ffffff;
    --tp24-action-ink: #9f3c3c;
    --tp24-action-line: #dfbcbc;
    --tp24-action-hover: #faeaea;
    --tp24-action-hover-line: #bc7777;
    --tp24-action-hover-ink: #852d2d;
    --tp24-action-press: #f3d7d7;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-phone-link,.teenus24-call-cta,.teenus24-btn-cancel,.teenus24-btn-back,.tp24-needs button[value="close"],[data-tp24-action="quiet"],[data-tp24-action="phone"]) {
    --tp24-action-height: 44px;
    --tp24-action-padding: 4px 8px;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle) {
    align-items: center; justify-content: center; gap: 7px !important;
    box-sizing: border-box !important; min-height: var(--tp24-action-height) !important; height: auto !important;
    padding: var(--tp24-action-padding) !important; border: 1px solid var(--tp24-action-line) !important;
    border-radius: 8px !important; background: var(--tp24-action-fill) !important; color: var(--tp24-action-ink) !important;
    font: 600 var(--selge-button, .9375rem)/1.5 Manrope, Arial, sans-serif !important;
    text-decoration: none !important; text-align: center; text-shadow: none !important;
    box-shadow: none !important; transform: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease !important;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):not(:disabled,[aria-disabled="true"],[aria-busy="true"]):hover {
    background: var(--tp24-action-hover) !important; border-color: var(--tp24-action-hover-line) !important; color: var(--tp24-action-hover-ink) !important;
    box-shadow: 0 3px 8px #254b681a !important; transform: translateY(-1px);
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):not(:disabled,[aria-disabled="true"],[aria-busy="true"]):active {
    background: var(--tp24-action-press) !important; border-color: var(--tp24-action-hover-line) !important; color: var(--tp24-action-hover-ink) !important;
    box-shadow: none !important; transform: translateY(0);
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):focus-visible {
    outline: 2px solid #527fa0 !important; outline-offset: 3px !important;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(:disabled,[aria-disabled="true"]):not([aria-busy="true"]) {
    background: #eef1f3 !important; color: #77828c !important; border-color: #d8dfe4 !important;
    box-shadow: none !important; transform: none; opacity: 1 !important; cursor: not-allowed;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[aria-busy="true"] {
    cursor: progress; box-shadow: none !important; transform: none;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[aria-busy="true"]::before {
    content: ""; display: inline-block; width: 13px; height: 13px; box-sizing: border-box;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: tp24-action-spin .8s linear infinite; margin-right: 7px; vertical-align: -2px;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle) svg {
    width: 15px; height: 15px; flex-shrink: 0;
}
@media (pointer: coarse) {
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle) {
    min-height: 44px !important; min-width: 44px;
}
}
@media (prefers-reduced-motion: reduce) {
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle) {
    transition: none !important; transform: none !important;
}
body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle)[aria-busy="true"]::before {
    animation: none;
}
}
@keyframes tp24-action-spin { to { transform: rotate(360deg); } }
}

body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-phone-link,.teenus24-call-cta,[data-tp24-action="phone"]){font-size:var(--selge-contact,1rem)!important;font-weight:600!important;}

body.tp24-selge.tp24-selge-desktop-tablet :is(.teenus24-btn,.teenus24-action-btn,.teenus24-add-service-btn,.teenus24-account-guest-add-btn,.teenus24-request-selection-bar__button,.teenus24-call-cta,.teenus24-phone-link,.tp24-needs form button,.tp24-selge-auth #wp-submit,[data-tp24-action]):not(nav *, .teenus24-account-menu *, .teenus24-main-nav *, .teenus24-search-brand-cta, .tp24-selge-account-toggle):is(.teenus24-phone-link,.teenus24-call-cta,[data-tp24-action="phone"]){font-size:var(--selge-contact,1rem)!important;font-weight:600!important;}


/* Approved sliding view switch. Shared desktop and phone owner; other actions
 * above remain desktop/tablet-only. Native links remain usable without JS. */
body.tp24-selge .teenus24-public-view-switch{
 display:inline-grid!important;grid-template-columns:1.35fr 1fr;position:relative;isolation:isolate;
 align-items:stretch;gap:0!important;padding:3px!important;box-sizing:border-box;
 width:192px;height:40px;max-width:100%;flex:none;border:0!important;border-radius:12px!important;
 background:#e4ebef!important;box-shadow:none!important;
}
body.tp24-selge .teenus24-public-view-switch::before{
 content:"";position:absolute;z-index:0;top:3px;bottom:3px;left:3px;
 width:calc((100% - 6px) * .5744680851);border-radius:9px;background:#fff;
 box-shadow:0 2px 6px #263a4914;transition:left 180ms ease,width 180ms ease;pointer-events:none;
}
body.tp24-selge .teenus24-public-view-switch:has(> .is-active:last-child)::before{
 left:calc(3px + (100% - 6px) * .5744680851);width:calc((100% - 6px) * .4255319149);
}
body.tp24-selge .teenus24-public-view-switch > .teenus24-public-view-switch-option{
 position:relative;z-index:1;display:inline-flex!important;align-items:center;justify-content:center;
 gap:7px;box-sizing:border-box;min-width:0;min-height:44px;height:44px;align-self:center;margin:-5px 0!important;padding:0 8px!important;
 border:0!important;border-radius:9px!important;background:transparent!important;
 color:#536f7e!important;font:500 .9375rem/1.5 var(--selge-font,Manrope,Arial,sans-serif)!important;
 text-decoration:none!important;white-space:nowrap;box-shadow:none!important;transform:none!important;
}
body.tp24-selge .teenus24-public-view-switch > .is-active{color:#243f50!important}
body.tp24-selge .teenus24-public-view-switch > .teenus24-public-view-switch-option::before{content:none!important}
body.tp24-selge .teenus24-public-view-switch > .teenus24-public-view-switch-option:hover{color:#243f50!important}
body.tp24-selge .teenus24-public-view-switch > .teenus24-public-view-switch-option:focus-visible{outline:2px solid #527fa0!important;outline-offset:2px}
body.tp24-selge .teenus24-public-view-switch svg{display:block;width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6}
@media(prefers-reduced-motion:reduce){body.tp24-selge .teenus24-public-view-switch::before{transition:none}}
