.rdpk-root {
    --rdpk-accent: #fa8e79;
    --rdpk-ink: #262126;
    --rdpk-muted: #766f74;
    --rdpk-surface: #fffdfa;
    --rdpk-line: rgba(38, 33, 38, 0.12);
    position: fixed;
    z-index: 99990;
    left: 50%;
    bottom: 0;
    width: min(390px, calc(100vw - 24px));
    transform: translateX(-50%);
    color: var(--rdpk-ink);
    font-family: inherit;
    line-height: 1.35;
}

.rdpk-panel {
    position: relative;
    width: 100%;
    margin: 0 0 7px;
    padding: 14px;
    border: 1px solid var(--rdpk-line);
    border-radius: 20px;
    background: var(--rdpk-surface);
    box-shadow: 0 14px 38px rgba(38, 24, 30, 0.17), 0 3px 10px rgba(38, 24, 30, 0.08);
}

.rdpk-panel[hidden] {
    display: none;
}

.rdpk-panel__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin: -2px 0 10px;
}

.rdpk-panel__brand {
    color: var(--rdpk-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rdpk-panel__close {
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rdpk-muted);
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.rdpk-panel__close:hover,
.rdpk-panel__close:focus-visible {
    background: rgba(38, 33, 38, 0.07);
    color: var(--rdpk-ink);
}

.rdpk-panel__items {
    display: grid;
    gap: 7px;
}

.rdpk-item {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--rdpk-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rdpk-ink);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.rdpk-item:hover {
    border-color: color-mix(in srgb, var(--rdpk-accent) 44%, transparent);
    background: color-mix(in srgb, var(--rdpk-accent) 5%, #fff);
    color: var(--rdpk-ink);
    transform: translateY(-1px);
}

.rdpk-item:focus-visible,
.rdpk-trigger:focus-visible,
.rdpk-panel__close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--rdpk-accent) 32%, transparent);
    outline-offset: 2px;
}

.rdpk-item--primary {
    min-height: 56px;
    padding: 11px 14px;
    border-color: transparent;
    background: var(--rdpk-accent);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--rdpk-accent) 30%, transparent);
    color: var(--rdpk-ink);
    font-size: 16px;
    font-weight: 760;
}

.rdpk-item--primary:hover {
    border-color: transparent;
    background: color-mix(in srgb, var(--rdpk-accent) 90%, #000);
    color: var(--rdpk-ink);
}

.rdpk-item__icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
}

.rdpk-item__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.rdpk-item__arrow {
    font-size: 19px;
    transition: transform 160ms ease;
}

.rdpk-item:hover .rdpk-item__arrow {
    transform: translateX(2px);
}

.rdpk-trigger {
    display: none;
    width: 195px;
    min-height: 30px;
    margin: 0 auto;
    padding: 4px 20px 3px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 13px 13px 0 0;
    background: var(--rdpk-accent);
    box-shadow: 0 -5px 16px rgba(38, 24, 30, 0.11);
    color: var(--rdpk-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 680;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.rdpk-root--ready .rdpk-trigger {
    display: flex;
}

.rdpk-trigger__chevron {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform 180ms ease;
}

.rdpk-root--open .rdpk-trigger__chevron {
    transform: rotate(180deg);
}

@media (max-width: 782px) {
    .rdpk-root {
        width: calc(100vw - 16px);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .rdpk-root--hide-mobile {
        display: none !important;
    }

    .rdpk-panel {
        margin-bottom: 6px;
        padding: 13px;
        border-radius: 18px;
    }

    .rdpk-trigger {
        width: 180px;
        min-height: 30px;
        font-size: 12px;
    }
}

@media (min-width: 783px) {
    .rdpk-root--hide-desktop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rdpk-item,
    .rdpk-item__arrow,
    .rdpk-trigger__chevron {
        transition: none;
    }
}

@media print {
    .rdpk-root {
        display: none !important;
    }
}
