/* =========================================================
   AIRAA — AI Stylist Floating Widget
   Rent An Attire
   ========================================================= */

.airaa-widget {
    position: fixed;
    right: 90px;
    bottom: 24px;
    z-index: 99990;
    font-family: Arial, Helvetica, sans-serif;
}

.airaa-launcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    border: 1px solid rgba(190, 145, 110, 0.35);
    border-radius: 50px;
    background: #fffaf7;
    box-shadow: 0 8px 28px rgba(55, 35, 25, 0.16);
    cursor: pointer;
    transition: all 0.25s ease;
}

.airaa-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(55, 35, 25, 0.20);
}

.airaa-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #ead0bd;
}

.airaa-launcher-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.airaa-launcher-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #4a3027;
    font-weight: 600;
}

.airaa-launcher-subtitle {
    margin-top: 3px;
    font-size: 11px;
    color: #8b7064;
    letter-spacing: 0.2px;
}

.airaa-sparkle {
    color: #b98b68;
    margin-left: 2px;
}

/* Mobile */
@media (max-width: 767px) {
    .airaa-widget {
        right: 14px;
        bottom: 14px;
    }

    .airaa-launcher {
        padding: 5px;
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 50%;
    }

    .airaa-avatar {
        width: 48px;
        height: 48px;
        border: 1.5px solid #ead0bd;
    }

    .airaa-launcher-text {
        display: none;
    }
}

/* =========================================================
   AIRAA CHAT PANEL
   ========================================================= */

.airaa-chat {
    position: fixed;
    right: 24px;
    bottom: 94px;
    width: 380px;
    max-width: calc(100vw - 28px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: #fffdfb;
    border: 1px solid #eaded7;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(55, 35, 25, 0.22);
    overflow: hidden;
    z-index: 99991;
    display: none;
    flex-direction: column;
}

.airaa-chat.is-open {
    display: flex;
    animation: airaaChatIn 0.25s ease;
}

@keyframes airaaChatIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.airaa-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: linear-gradient(135deg, #fff7f2, #f8eee8);
    border-bottom: 1px solid #eaded7;
}

.airaa-chat-header .airaa-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.airaa-chat-header-info {
    flex: 1;
    min-width: 0;
}

.airaa-chat-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 600;
    color: #4a3027;
}

.airaa-chat-status {
    margin-top: 3px;
    font-size: 11px;
    color: #8b7064;
}

.airaa-chat-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #7da56b;
}

.airaa-chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    color: #70584d;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.airaa-chat-close:hover {
    background: #fff;
}

.airaa-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    background: #fffdfb;
}

.airaa-message {
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
}

.airaa-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 32px;
}

.airaa-message-content {
    max-width: 88%;
}

.airaa-message-bubble {
    padding: 12px 14px;
    background: #f8eee8;
    border-radius: 4px 17px 17px 17px;
    color: #4b3b35;
    font-size: 13px;
    line-height: 1.55;
}

.airaa-message-intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #4a3027;
    margin-bottom: 6px;
}

.airaa-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.airaa-quick-option {
    border: 1px solid #dfc8b9;
    background: #fff;
    color: #644a3d;
    border-radius: 20px;
    padding: 9px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.airaa-quick-option:hover {
    background: #f8eee8;
    border-color: #c9a48d;
}

.airaa-chat-footer {
    padding: 12px;
    border-top: 1px solid #eaded7;
    background: #fff;
}

.airaa-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfd2ca;
    border-radius: 24px;
    padding: 4px 5px 4px 14px;
    background: #fffdfb;
}

.airaa-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #4b3b35;
    font-size: 13px;
}

.airaa-input::placeholder {
    color: #a18d83;
}

.airaa-send {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #5a4035;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.airaa-send:hover {
    background: #432f27;
}

.airaa-powered {
    text-align: center;
    margin-top: 7px;
    font-size: 9px;
    color: #ad9d95;
    letter-spacing: 0.2px;
}

@media (max-width: 767px) {
    .airaa-chat {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        height: min(620px, calc(100vh - 105px));
        max-height: none;
        border-radius: 20px;
    }
}

/* =========================================================
   AIRAA - COMPACT PRODUCT RECOMMENDATIONS
   ========================================================= */

.airaa-product-recommendations {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 10px 0 4px;
    overflow-x: auto;
    padding: 2px 1px 6px;
    scrollbar-width: thin;
}

.airaa-product-card {
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: 0;
    background: #fffaf7;
    border: 1px solid #eadbd3;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.airaa-product-image {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
    margin: 0;
}

.airaa-product-details {
    padding: 7px 7px 8px;
}

.airaa-product-name {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    color: #4d3b34;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airaa-product-style {
    font-size: 9px;
    line-height: 1.2;
    color: #8b7770;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airaa-product-price {
    font-size: 9px;
    line-height: 1.2;
    color: #5f463b;
    margin-top: 4px;
    white-space: nowrap;
}

.airaa-product-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 5px 3px;
    border-radius: 6px;
    background: #5f463b;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 9px;
    line-height: 1.1;
}

.airaa-product-button:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Keep recommendations compact on smaller screens too */
@media (max-width: 480px) {
    .airaa-product-recommendations {
        gap: 6px;
    }

    .airaa-product-card {
        flex-basis: calc((100% - 12px) / 3);
    }

    .airaa-product-image {
        height: 78px;
    }

    .airaa-product-details {
        padding: 6px 5px 7px;
    }

    .airaa-product-name {
        font-size: 10px;
    }

    .airaa-product-price,
    .airaa-product-style {
        font-size: 8px;
    }

    .airaa-product-button {
        font-size: 8px;
        padding: 5px 2px;
    }
}

