.carepack-chat-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background-color: var(--cp-chat-color, #0fa445);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: filter 0.2s ease;
}

.carepack-sticky-button[hidden],
.carepack-contact-panel[hidden] {
    display: none !important;
}

.carepack-chat-button:hover {
    filter: brightness(0.95);
    color: #ffffff;
}

.carepack-chat-button svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.carepack-chat-label {
    margin-left: 8px;
    font-size: 16px;
}

.carepack-review-stick {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9999;
}

.carepack-review-stick img {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.carepack-review-stick img:hover {
    transform: scale(1.1);
}

.carepack-sticky-button {
    position: fixed;
    right: 0;
    top: 62%;
    z-index: 10030;
    min-height: 178px;
    padding: 18px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 0;
    border-radius: 20px 0 0 20px;
    color: #ffffff;
    background: #402f93;
    box-shadow: 0 18px 36px rgba(8, 11, 38, 0.28);
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
    letter-spacing: 0.08em;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.carepack-sticky-button:hover,
.carepack-sticky-button:focus {
    filter: brightness(1.08);
}

.carepack-contact-panel {
    position: fixed;
    right: 52px;
    top: 62%;
    z-index: 10020;
    width: min(360px, calc(100vw - 122px));
    padding: 24px 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: #30373f;
    box-shadow: 0 22px 48px rgba(8, 11, 38, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(24px, -50%, 0);
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.carepack-contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -50%, 0);
}

.carepack-contact-panel h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.carepack-contact-panel p {
    margin: 0 0 12px;
    color: rgba(240, 246, 252, 0.82);
    font-size: 14px;
    line-height: 1.7;
}

.carepack-contact-panel p strong {
    color: #ffffff;
}

.carepack-contact-panel a {
    color: inherit;
    word-break: break-word;
    text-decoration: none;
}

.carepack-contact-panel__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #f4f7fb !important;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carepack-contact-panel__link:hover,
.carepack-contact-panel__link:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.carepack-contact-panel::before {
    content: "Pomoc CarePack";
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(240, 246, 252, 0.84);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .carepack-review-stick {
        right: 10px;
        bottom: 70px;
    }

    .carepack-review-stick img {
        max-width: 80px;
    }

    .carepack-chat-button {
        right: 10px;
        bottom: 10px;
        padding: 10px 14px;
    }

    .carepack-sticky-button {
        top: 62%;
        right: calc(env(safe-area-inset-right, 0px));
        bottom: auto;
        min-height: 164px;
        padding: 16px 8px;
        border-radius: 20px 0 0 20px;
        border-right: 0;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: translateY(-50%);
    }

    .carepack-contact-panel {
        top: auto;
        right: 16px;
        left: 16px;
        bottom: 146px;
        width: auto;
        transform: translate3d(0, 16px, 0);
    }

    .carepack-contact-panel.active {
        transform: translate3d(0, 0, 0);
    }
}
