.gjci-root [hidden] {
    display: none !important;
}

.gjci-root {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999999;
    color: #1f2937;
    font-family: "Segoe UI", Arial, sans-serif;
    pointer-events: none;
}

.gjci-root--bottom-left,
.gjci-root--bottom-right,
.gjci-root--bottom-center {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
}

.gjci-banner,
.gjci-panel,
.gjci-badge,
.gjci-open-preferences {
    font: inherit;
    pointer-events: auto;
}

.gjci-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1700px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 34px 96px 34px 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.gjci-banner__content {
    flex: 1 1 54%;
    min-width: 0;
}

.gjci-banner__description {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #374151;
}

.gjci-banner__description a {
    color: #3157e0;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gjci-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 46%;
    min-width: 0;
}

.gjci-btn,
.gjci-open-preferences,
.gjci-badge,
.gjci-panel__close,
.gjci-banner__close,
.gjci-banner__settings {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.gjci-btn {
    min-height: 62px;
    min-width: 270px;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gjci-btn:hover,
.gjci-badge:hover,
.gjci-open-preferences:hover,
.gjci-banner__settings:hover {
    transform: translateY(-1px);
}

.gjci-btn--primary,
.gjci-btn--ghost {
    background: #3157e0;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(49, 87, 224, 0.2);
}

.gjci-banner__settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 0;
    background: transparent;
    color: #3157e0;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.gjci-banner__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 30px;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gjci-banner__close:hover,
.gjci-panel__close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

.gjci-panel {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin-left: 0;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    overflow-y: auto;
}

.gjci-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.gjci-panel__eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.gjci-panel__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #111827;
}

.gjci-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
}

.gjci-panel__description,
.gjci-option__copy p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
}

.gjci-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #f9fafb;
}

.gjci-option__copy {
    flex: 1 1 auto;
}

.gjci-option__copy strong {
    display: block;
    font-size: 17px;
    color: #111827;
}

.gjci-option__copy p {
    margin-top: 6px;
}

.gjci-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e5edff;
    color: #3157e0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gjci-switch {
    position: relative;
    flex: 0 0 auto;
}

.gjci-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.gjci-switch__track {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    transition: background-color 0.18s ease;
}

.gjci-switch__track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.18s ease;
}

.gjci-switch input:checked + .gjci-switch__track {
    background: #3157e0;
}

.gjci-switch input:checked + .gjci-switch__track::after {
    transform: translateX(24px);
}

.gjci-panel__footer {
    margin-top: 18px;
}

.gjci-panel__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gjci-panel__links a {
    color: #3157e0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gjci-panel__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.gjci-panel__actions .gjci-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    font-size: 16px;
}

.gjci-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 68px;
    min-height: 68px;
    margin-top: 12px;
    margin-left: 0;
    padding: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.gjci-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.gjci-badge__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gjci-badge__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gjci-open-preferences {
    border: 1px solid rgba(49, 87, 224, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    color: #3157e0;
}

@media (max-width: 1440px) {
    .gjci-badge {
        width: 30px;
        height: 30px;
        padding: 10px !important;
    }
    .gjci-badge__icon{
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 1280px) {
    .gjci-banner {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 72px;
    }

    .gjci-banner__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 782px) {
    .gjci-root,
    .gjci-root--bottom-left,
    .gjci-root--bottom-right,
    .gjci-root--bottom-center {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .gjci-banner,
    .gjci-panel {
        width: 100%;
        max-width: 100%;
    }

    .gjci-banner {
        gap: 20px;
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .gjci-banner__description {
        font-size: 15px;
    }

    .gjci-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gjci-btn,
    .gjci-banner__settings {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        font-size: 16px;
        text-align: center;
    }

    .gjci-banner__settings {
        justify-content: center;
    }

    .gjci-panel {
        padding: 20px;
    }

    .gjci-panel__title {
        font-size: 24px;
    }

    .gjci-panel__actions {
        flex-direction: column;
    }

    .gjci-option {
        align-items: flex-start;
    }

    .gjci-chip,
    .gjci-switch {
        margin-top: 4px;
    }
}

@media (max-height: 760px) {
    .gjci-panel {
        max-height: calc(100vh - 16px);
    }
}
