.ctp-plan-floating-toolbar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(820px, calc(100vw - 34px));
    min-height: 68px;
    padding: 12px 14px 12px 16px;
    color: #f5f5f5;
    background:
        linear-gradient(135deg, rgba(255, 196, 0, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(35, 35, 35, 0.98), rgba(16, 16, 16, 0.98));
    border: 1px solid rgba(255, 196, 0, 0.34);
    border-radius: 18px;
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 38px rgba(255, 196, 0, 0.08);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ctp-plan-floating-toolbar::before {
    content: "";
    position: absolute;
    inset: 1px 1px auto 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.ctp-plan-floating-toolbar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.ctp-plan-floating-toolbar.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

.ctp-plan-floating-toolbar__summary {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ctp-plan-floating-toolbar__label {
    margin-bottom: 3px;
    color: #b7ae92;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.ctp-plan-floating-toolbar__count {
    color: #f4f4f4;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
}

.ctp-plan-floating-toolbar__count strong {
    color: #ffc400;
    font-size: 24px;
    line-height: 1;
}

.ctp-plan-floating-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.ctp-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    color: #f5f5f5;
    background: linear-gradient(180deg, #2a2a2a, #1d1d1d);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ctp-toolbar-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(255, 196, 0, 0.42);
    background: linear-gradient(180deg, #353535, #242424);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.ctp-toolbar-btn:disabled {
    cursor: not-allowed;
    color: #777;
    opacity: 0.48;
    background: #202020;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.ctp-toolbar-btn--accent {
    color: #151515;
    border-color: rgba(255, 213, 79, 0.9);
    background: linear-gradient(180deg, #ffcf25, #b99000);
    box-shadow:
        0 12px 24px rgba(255, 196, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.42) inset;
}

.ctp-toolbar-btn--accent:hover:not(:disabled) {
    color: #111;
    background: linear-gradient(180deg, #ffe072, #d2a900);
    box-shadow:
        0 14px 28px rgba(255, 196, 0, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.48) inset;
}

.ctp-toolbar-btn--plain {
    color: #cfcfcf;
    background: transparent;
}

.ctp-toolbar-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
}

.ctp-toolbar-btn--danger {
    color: #fff;
    border-color: rgba(244, 63, 94, 0.44);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.24), rgba(127, 29, 29, 0.22));
}

.ctp-toolbar-btn--danger:hover:not(:disabled) {
    border-color: rgba(244, 63, 94, 0.72);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.34), rgba(127, 29, 29, 0.32));
    box-shadow:
        0 10px 24px rgba(244, 63, 94, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.ctp-toolbar-btn__icon {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

body.ctp-editor-toolbar-open {
    padding-bottom: 88px;
}

@media (max-width: 680px) {
    .ctp-plan-floating-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        bottom: 12px;
        padding: 12px;
    }

    .ctp-plan-floating-toolbar__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .ctp-toolbar-btn {
        width: 100%;
    }

    body.ctp-editor-toolbar-open {
        padding-bottom: 152px;
    }
}
