.fct-pwa-root,
.fct-pwa-root * {
    box-sizing: border-box;
}

.fct-pwa-root[hidden] {
    display: none !important;
}

.fct-pwa-launcher {
    position: fixed;
    right: 0;
    top: 54%;
    z-index: 2147482900;
    width: 62px;
    min-height: 84px;
    padding: 5px 5px 7px;
    border: 2px solid #ffffff;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transform: translateY(-50%);
    transition: transform .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.fct-pwa-launcher:hover,
.fct-pwa-launcher:focus-visible {
    transform: translateY(-50%) translateX(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .36);
    outline: 2px solid #d71920;
    outline-offset: 2px;
}

.fct-pwa-launcher img {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.fct-pwa-launcher-label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .35px;
    color: #ffffff;
}

.fct-pwa-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.fct-pwa-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.fct-pwa-modal-open,
html.fct-pwa-modal-open body {
    overflow: hidden !important;
}

.fct-pwa-modal {
    position: relative;
    width: min(100%, 430px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: #ffffff;
    color: #161616;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
    font-family: Arial, Helvetica, sans-serif;
    transform: translateY(12px) scale(.98);
    transition: transform .18s ease;
}

.fct-pwa-overlay.is-open .fct-pwa-modal {
    transform: translateY(0) scale(1);
}

.fct-pwa-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid #d71920;
    border-radius: 9px;
    background: #111111;
    color: #ffffff;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
}

.fct-pwa-close:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.fct-pwa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 16px 54px 14px 16px;
    background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
    color: #ffffff;
    border-radius: 17px 17px 0 0;
}

.fct-pwa-brand-image-wrap {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 14px;
    background: #ffffff;
}

.fct-pwa-brand-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fct-pwa-brand h2 {
    margin: 0 0 3px;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.28;
    font-weight: 800;
}

.fct-pwa-brand p {
    margin: 0;
    color: #eeeeee;
    font-size: 13px;
    line-height: 1.35;
}

.fct-pwa-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ededed;
    border-bottom: 1px solid #d8d8d8;
}

.fct-pwa-tab {
    min-height: 58px;
    padding: 8px 6px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}

.fct-pwa-tab + .fct-pwa-tab {
    border-left: 1px solid #d8d8d8;
}

.fct-pwa-tab small {
    display: block;
    margin-top: 3px;
    color: #555555;
    font-size: 12px;
    font-weight: 600;
}

.fct-pwa-tab.is-active {
    border-bottom-color: #d71920;
    background: #ffffff;
    color: #b90f16;
}

.fct-pwa-tab:focus-visible {
    outline: 2px solid #d71920;
    outline-offset: -3px;
}

.fct-pwa-panel {
    display: none;
    padding: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.fct-pwa-panel.is-active {
    display: block;
}

.fct-pwa-panel p {
    margin: 0 0 14px;
    color: #272727;
    font-size: 14px;
    line-height: 1.5;
}

.fct-pwa-primary,
.fct-pwa-secondary {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
}

.fct-pwa-primary {
    border: 2px solid #111111;
    background: #d71920;
    color: #ffffff;
}

.fct-pwa-primary:hover,
.fct-pwa-primary:focus-visible {
    background: #b90f16;
    outline: 2px solid #d71920;
    outline-offset: 2px;
}

.fct-pwa-secondary {
    border: 2px solid #111111;
    background: #111111;
    color: #ffffff;
}

.fct-pwa-secondary:hover,
.fct-pwa-secondary:focus-visible {
    background: #2c2c2c;
    outline: 2px solid #d71920;
    outline-offset: 2px;
}

.fct-pwa-note {
    min-height: 20px;
    margin: 10px 0 0 !important;
    color: #7b1014 !important;
    font-size: 13px !important;
    font-weight: 700;
}

.fct-pwa-steps {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.fct-pwa-steps li {
    position: relative;
    min-height: 38px;
    margin: 0 0 10px;
    padding: 7px 8px 7px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f8f8;
    color: #222222;
    font-size: 13px;
    line-height: 1.42;
}

.fct-pwa-steps li span {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #d71920;
    color: #ffffff;
    font-size: 13px;
    line-height: 27px;
    font-weight: 800;
    text-align: center;
    transform: translateY(-50%);
}

@media (max-width: 480px) {
    .fct-pwa-overlay {
        align-items: flex-end;
        padding: 8px;
    }

    .fct-pwa-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .fct-pwa-launcher {
        top: 58%;
        width: 58px;
        min-height: 80px;
    }

    .fct-pwa-launcher img {
        width: 46px;
        height: 46px;
    }
}

@media (display-mode: standalone) {
    .fct-pwa-root {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fct-pwa-launcher,
    .fct-pwa-overlay,
    .fct-pwa-modal {
        transition: none !important;
    }
}




/* v1.0.7: réplica exacta de los dos botones flotantes */
.fct-pwa-root {
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}
.fct-pwa-dock {
    position: fixed !important;
    right: 10px !important;
    top: 68% !important;
    z-index: 2147482900 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    overflow: visible !important;
}
.fct-pwa-side-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #06142d !important;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(0,0,0,.32) !important;
    line-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
}
.fct-pwa-side-btn img {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain !important;
}
.fct-pwa-side-btn:hover,
.fct-pwa-side-btn:focus,
.fct-pwa-side-btn:active {
    background: #06142d !important;
    border: 0 !important;
    outline: 0 !important;
    transform: none !important;
}
@media (max-width: 767px) {
    .fct-pwa-dock {
        right: 10px !important;
        gap: 10px !important;
    }
}


/* v1.0.7 smaller replicated Android / iOS glyphs */
.fct-pwa-side-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.fct-pwa-side-btn img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}
.fct-pwa-side-btn-android img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}
.fct-pwa-side-btn-ios img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}


/* v1.0.7: reducción proporcional de 4 px en logo y recuadro */
.fct-pwa-dock {
    width: 54px !important;
}
.fct-pwa-side-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    padding: 0 !important;
    border-radius: 17px !important;
    background: #06142d !important;
    box-shadow: 0 6px 15px rgba(0,0,0,.32) !important;
}
.fct-pwa-side-btn img,
.fct-pwa-side-btn-android img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 0 !important;
}
.fct-pwa-side-btn-ios img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}


/* v1.0.7: instalación Android inmediata y estados visuales corregidos */
.fct-pwa-close {
    border-radius: 12px !important;
    background: #ffb400 !important;
    color: #111111 !important;
    border-color: #ffb400 !important;
}
.fct-pwa-tabs {
    background: #ffffff !important;
}
.fct-pwa-tab {
    background: #ffffff !important;
    color: #222222 !important;
    border-bottom-color: #d8d8d8 !important;
}
.fct-pwa-tab small {
    color: #555555 !important;
}
.fct-pwa-tab.is-active {
    background: #ffb400 !important;
    color: #111111 !important;
    border-bottom-color: #ffb400 !important;
}
.fct-pwa-tab.is-active small {
    color: #333333 !important;
}
.fct-pwa-primary {
    border-radius: 14px !important;
    border-color: #ffb400 !important;
    background: #ffb400 !important;
    color: #111111 !important;
}
.fct-pwa-primary:hover,
.fct-pwa-primary:focus-visible,
.fct-pwa-primary:active {
    background: #ffb400 !important;
    color: #111111 !important;
    border-color: #ffb400 !important;
}
