.adc-wrapper,
.adc-wrapper * {
    box-sizing: border-box;
}


.adc-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: grid;
    grid-auto-rows: auto;
    gap: 10px;
    width: auto;
}

.adc-widget-button {
    position: relative;
    display: grid;
    grid-template-columns: 34px max-content;
    align-items: center;
    justify-items: start;
    column-gap: 12px;
    padding: 10px 10px;
    padding-left: 24px;
    min-width: 190px;
    border-radius: 16px;
    border: 1px solid rgba(13, 32, 57, 0.10);
    background: #F2F7FF;
    color: #0D2039;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(13, 32, 57, 0.16);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        background-color 0.2s ease,
        min-width 0.3s ease;
}

.adc-widget-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(13, 32, 57, 0.20);
}

.adc-widget-button:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 5px rgba(13, 32, 57, 0.15);
}

.adc-widget-button-open {
    background: #ffffff;
    border-color: #ddd;
    min-width: 140px;
}

.adc-widget-button-open:hover {
    background: #fdfdfd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.adc-btn-arrow {
    width: 8px;
    height: 8px;
    position: absolute;
    left: 9px;
    top: 9px;
    object-fit: contain;
}

.adc-btn-robot {
    width: 34px;
    height: 34px;
    display: block;
    margin: 0;
    align-self: center;
    justify-self: start;
    background: transparent !important;
    border-radius: 0 !important;
}

.adc-btn-robot-wrap {
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
}

.adc-btn-text {
    align-self: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
}

.adc-widget-button-open {
    background: #F2F7FF;
}

.adc-widget-button-open .adc-btn-arrow {
    display: none;
}

.adc-widget-panel {
    position: fixed;
    right: 20px;
    bottom: 78px;
    width: min(360px, calc(100vw - 40px));
    height: min(560px, calc(100vh - 140px));
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 56px 1fr;
    box-shadow: 0 18px 50px rgba(13, 32, 57, 0.20);
    border: 1px solid rgba(13, 32, 57, 0.12);
}

.adc-panel-header {
    background: #0D2039;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.adc-header-brand {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
}

.adc-header-logo {
    width: 28px;
    height: 28px;
}

.adc-header-title {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.adc-panel-body {
    background: #EAF3FF;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 12px;
    overflow-y: auto;
    min-height: 0;
    gap: 10px;
}

.adc-deco {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-top: 4px;
}

.adc-deco-robot {
    width: 92px;
    height: auto;
}

.adc-deco-badges {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    align-items: center;
    justify-items: center;
}

.adc-badge {
    background: #4D63FF;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
}

.adc-today {
    width: 100%;
    color: rgba(13, 32, 57, 0.40);
    font-size: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.adc-today:before,
.adc-today:after {
    content: '';
    height: 1px;
    background: rgba(13, 32, 57, 0.18);
}

.adc-content-top {
    display: grid;
    justify-items: start;
}

.adc-back-btn {
    background: transparent;
    border: 0;
    padding: 6px 6px;
    color: rgba(13, 32, 57, 0.70);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.adc-messages {
    display: grid;
    grid-auto-rows: min-content;
    gap: 10px;
    align-content: start;
}

.adc-msg-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: end;
}

.adc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(13, 32, 57, 0.08);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.adc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adc-avatar-spacer {
    background: transparent;
}

.adc-bubble {
    max-width: 90%;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.25;
    display: grid;
}

.adc-bubble-bot {
    background: #DCEBFF;
    color: #0D2039;
}

.adc-bubble-question {
    background: #4D63FF;
    color: #FFFFFF;
    font-weight: 700;
}

.adc-bubble-typing {
    background: #DCEBFF;
    color: #0D2039;
    width: fit-content;
    padding: 12px 14px;
    display: grid;
    grid-auto-flow: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.adc-bubble-typing span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(13, 32, 57, 0.55);
    animation: adc-bounce 0.8s infinite ease-in-out;
    color: transparent;
}

.adc-bubble-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.adc-bubble-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes adc-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.adc-options {
    display: grid;
    justify-items: end;
    gap: 10px;
    padding-top: 6px;
}

.adc-option-btn {
    width: 70%;
    min-width: 160px;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(13, 32, 57, 0.12);
    background: rgba(255, 255, 255, 0.70);
    color: #0D2039;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: grid;
    justify-items: start;
    opacity: 0;
    animation: adc-fade-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.adc-option-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 32, 57, 0.1);
}

.adc-option-btn:active {
    transform: scale(0.96);
}

.adc-panel-closing {
    animation: adc-slide-down 0.4s ease-in forwards !important;
}

@keyframes adc-slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes adc-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 420px) {
    .adc-wrapper {
        right: 14px;
        bottom: 14px;
    }

    .adc-widget-panel {
        right: 14px;
        bottom: 72px;
        width: calc(100vw - 28px);
    }

    .adc-widget-button {
        min-width: 170px;
    }

    .adc-option-btn {
        width: 78%;
    }
}