#cute-cow-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

#cow-toggle-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

#cow-toggle-btn:hover {
    transform: scale(1.06);
}

.cow-avatar-svg {
    width: 100%;
    height: 100%;
    display: block;
}

#cow-chat-window {
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 420px;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#cow-chat-window.hidden {
    display: none;
}

.cow-chat-header {
    background: #1e73be;
    color: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cow-chat-mode-switch {
    display: flex;
    gap: 8px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid #e7edf5;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

#cute-cow-chatbot .cow-mode-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #c7dff7 !important;
    border-radius: 999px;
    background: #f4f9ff !important;
    color: #1e73be !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 7px 10px !important;
    cursor: pointer !important;
    flex: 1;
    text-align: center;
    line-height: 1.1;
    transition: all 0.18s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

#cute-cow-chatbot .cow-mode-btn:hover {
    background: #eaf4ff !important;
}

#cute-cow-chatbot .cow-mode-btn.active {
    background: #1e73be !important;
    border-color: #1e73be !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.32);
}

#cow-close-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#cow-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f6f8fb;
}

.cow-message {
    max-width: 82%;
    margin: 8px 0;
    padding: 10px;
    border-radius: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.cow-message.user {
    margin-left: auto;
    background: #d9ecff;
}

.cow-message.bot {
    margin-right: auto;
    background: #ffffff;
    border: 1px solid #ececec;
}

.cow-message__actions,
.cow-message__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cow-message__suggestions {
    flex-direction: column;
    align-items: flex-start;
}

.cow-quick-link-btn,
.cow-suggestion-btn {
    border: 1px solid #c7dff7;
    border-radius: 999px;
    background: #f4f9ff;
    color: #1e73be;
    font-size: 12px;
    padding: 5px 10px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.cow-suggestion-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-color: #c7cfda;
    background: #ffffff;
    color: #1b2b43;
}

.cow-suggestion-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dfe3e8;
    display: inline-block;
    flex-shrink: 0;
}

.cow-quick-link-btn:hover,
.cow-suggestion-btn:hover {
    background: #e8f3ff;
    border-color: #9ec8f0;
}

#cow-chat-form {
    display: flex;
    border-top: 1px solid #ececec;
    background: #ffffff;
}

#cow-user-input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

#cow-chat-form button[type="submit"] {
    border: none;
    background: #1e73be;
    color: #ffffff;
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin: 4px;
    line-height: 1;
    height: 34px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    #cow-toggle-btn {
        width: 50px;
        height: 50px;
    }

    #cow-chat-form button[type="submit"] {
        width: 30px;
        min-width: 30px;
        font-size: 12px;
        margin: 3px;
        height: 30px;
    }

    #cute-cow-chatbot .cow-mode-btn {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

.cow-front-admin-inbox {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99998;
    width: min(920px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    font-family: Arial, sans-serif;
}

.cow-front-admin-inbox__toggle {
    border: none;
    background: #1e73be;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cow-front-admin-inbox__panel {
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    border: 1px solid #d5dde6;
    overflow: hidden;
}

.cow-front-admin-inbox.is-collapsed .cow-front-admin-inbox__panel {
    display: none;
}

.cow-front-admin-inbox__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f2;
    background: #f8fbff;
}

.cow-front-admin-inbox__headActions {
    display: inline-flex;
    gap: 8px;
}

.cow-front-admin-login {
    padding: 14px 12px;
    border-bottom: 1px solid #eef0f2;
    background: #ffffff;
}

.cow-front-admin-login__title {
    margin: 0;
    font-weight: 700;
}

.cow-front-admin-login__desc {
    margin: 6px 0 10px;
    font-size: 13px;
    color: #50575e;
}

.cow-front-admin-login__form {
    display: flex;
    gap: 8px;
}

.cow-front-admin-login__form input[type="password"] {
    flex: 1;
}

.cow-front-admin-login__status {
    margin-top: 8px;
    min-height: 18px;
    font-size: 12px;
    color: #2f6b2f;
}

.cow-front-admin-login__status.is-error {
    color: #c62828;
}

#cow-front-live-admin.cow-admin-chat {
    max-width: none;
    padding: 10px;
}

#cow-front-live-admin .cow-admin-chat__main {
    min-height: 460px;
}

@media (max-width: 1024px) {
    .cow-front-admin-inbox {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: calc(100vh - 24px);
    }
}
