/* =========================================================
   Radio Bury PWA install prompt
   ========================================================= */

.rb-install-prompt {
    position: fixed;

    right: 1.5rem;
    bottom: 1.5rem;

    z-index: 1080;

    width: min(430px, calc(100vw - 3rem));
}

.rb-install-prompt[hidden] {
    display: none !important;
}


/* =========================================================
   Main panel
   ========================================================= */

.rb-install-prompt__panel {
    position: relative;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.9rem;
    row-gap: 0.8rem;

    align-items: center;

    padding: 1rem 1.05rem;

    background: rgba(8, 52, 42, 0.98);

    color: #fff;

    border: 1px solid rgba(96, 191, 125, 0.24);

    border-radius: 1.2rem;

    box-shadow:
        0 1rem 2.5rem rgba(0, 0, 0, 0.3);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}


/* =========================================================
   App icon
   ========================================================= */

.rb-install-prompt__brand {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    flex: 0 0 auto;

    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.rb-install-prompt__logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   Text
   ========================================================= */

.rb-install-prompt__content {
    min-width: 0;

    padding-right: 1.7rem;
}

.rb-install-prompt__title {
    margin: 0;

    color: #fff;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.rb-install-prompt__text {
    margin-top: 0.18rem;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.84rem;
    line-height: 1.4;
}

.rb-install-prompt__text strong {
    color: #fff;
    font-weight: 700;
}


/* =========================================================
   Actions
   ========================================================= */

.rb-install-prompt__actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.55rem;

    margin-top: 0.05rem;
}

.rb-install-prompt__later,
.rb-install-prompt__install {
    border: 0;

    font: inherit;
    font-size: 0.84rem;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}


/* Not now */

.rb-install-prompt__later {
    padding: 0.55rem 0.8rem;

    background: transparent;

    color: rgba(255, 255, 255, 0.68);

    border-radius: 999px;
}

.rb-install-prompt__later:hover,
.rb-install-prompt__later:focus-visible {
    background: rgba(255, 255, 255, 0.07);

    color: #fff;
}


/* Install / Got it */

.rb-install-prompt__install {
    padding: 0.58rem 1.1rem;

    background: #60bf7d;

    color: #071d17;

    border-radius: 999px;

    font-weight: 700;
}

.rb-install-prompt__install:hover,
.rb-install-prompt__install:focus-visible {
    background: #71bf44;

    color: #071d17;

    transform: translateY(-1px);
}


/* =========================================================
   Close button
   ========================================================= */

.rb-install-prompt__close {
    position: absolute;

    top: 0.55rem;
    right: 0.55rem;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: rgba(255, 255, 255, 0.52);

    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.rb-install-prompt__close:hover,
.rb-install-prompt__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);

    color: #fff;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    .rb-install-prompt {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;

        width: auto;
    }

    .rb-install-prompt__panel {
        column-gap: 0.75rem;

        padding: 0.85rem;

        border-radius: 1.05rem;
    }

    .rb-install-prompt__brand {
        width: 50px;
        height: 50px;

        border-radius: 0.8rem;
    }

    .rb-install-prompt__title {
        font-size: 0.95rem;
    }

    .rb-install-prompt__text {
        font-size: 0.8rem;
    }

    .rb-install-prompt__actions {
        margin-top: 0;
    }
}
