#ppcmb-root,
#ppcmb-root * {
    box-sizing: border-box;
}

.ppcmb-root {
    position: fixed;
    bottom: 22px;
    z-index: 999999;
    font-family: inherit;
    color: var(--ppcmb-text);
}

.ppcmb-root.ppcmb-right {
    right: 22px;
}

.ppcmb-root.ppcmb-left {
    left: 22px;
}

.ppcmb-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(360px, calc(100vw - 32px));
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ppcmb-button);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppcmb-trigger:hover,
.ppcmb-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.27);
}

.ppcmb-trigger:focus-visible,
.ppcmb-close:focus-visible {
    outline: 3px solid rgba(30, 115, 190, 0.35);
    outline-offset: 3px;
}

.ppcmb-trigger-icon {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.ppcmb-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppcmb-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    width: min(390px, calc(100vw - 32px));
    padding: 24px 24px 20px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 16px;
    background: var(--ppcmb-panel);
    color: var(--ppcmb-text);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.ppcmb-right .ppcmb-panel {
    right: 0;
}

.ppcmb-left .ppcmb-panel {
    left: 0;
}

.ppcmb-title {
    margin: 0 34px 14px 0;
    color: inherit;
    font-size: 20px;
    line-height: 1.3;
}

.ppcmb-message {
    color: inherit;
    font-size: 15px;
    line-height: 1.6;
}

.ppcmb-message p {
    margin: 0 0 12px;
}

.ppcmb-message p:last-child {
    margin-bottom: 0;
}

.ppcmb-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    opacity: 0.7;
}

.ppcmb-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.ppcmb-panel[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .ppcmb-root {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .ppcmb-root.ppcmb-right,
    .ppcmb-root.ppcmb-left {
        right: 14px;
        left: 14px;
    }

    .ppcmb-trigger {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .ppcmb-panel,
    .ppcmb-right .ppcmb-panel,
    .ppcmb-left .ppcmb-panel {
        right: 0;
        left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ppcmb-trigger {
        transition: none;
    }
}
