.genie-shop-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: all 0.3s ease;
}

.genie-shop-header {
    padding: 15px;
    background: #4a90e2;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.genie-shop-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genie-shop-icon {
    width: 24px;
    height: 24px;
}

.genie-shop-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.genie-shop-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.genie-shop-minimize:hover {
    transform: scale(1.1);
}

.genie-shop-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.genie-shop-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scroll-behavior: smooth;
}

.genie-shop-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.genie-shop-message-content {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.genie-shop-bot .genie-shop-message-content {
    background: #f0f2f5;
    align-self: flex-start;
    color: #1c1e21;
}

.genie-shop-user .genie-shop-message-content {
    background: #4a90e2;
    color: white;
    align-self: flex-end;
}

.genie-shop-products {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
}

.genie-shop-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.genie-shop-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.genie-shop-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.genie-shop-product-info {
    flex: 1;
}

.genie-shop-product-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1c1e21;
}

.genie-shop-product-price {
    color: #4a90e2;
    font-weight: 600;
}

.genie-shop-add-to-cart {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.genie-shop-add-to-cart:hover {
    background: #357abd;
}

.genie-shop-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.genie-shop-input-container {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
}

.genie-shop-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
    transition: border-color 0.2s ease;
}

.genie-shop-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.genie-shop-send {
    background: #4a90e2;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.genie-shop-send:hover {
    background: #357abd;
    transform: scale(1.05);
}

.genie-shop-send svg {
    width: 20px;
    height: 20px;
}

.genie-shop-minimized {
    height: 60px;
}

.genie-shop-minimized .genie-shop-chat-container {
    display: none;
}

/* Loading animation */
.genie-shop-loading {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
}

.genie-shop-loading div {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4a90e2;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.genie-shop-loading div:nth-child(1) {
    left: 2px;
    animation: genie-shop-loading1 0.6s infinite;
}

.genie-shop-loading div:nth-child(2) {
    left: 2px;
    animation: genie-shop-loading2 0.6s infinite;
}

.genie-shop-loading div:nth-child(3) {
    left: 8px;
    animation: genie-shop-loading2 0.6s infinite;
}

.genie-shop-loading div:nth-child(4) {
    left: 14px;
    animation: genie-shop-loading3 0.6s infinite;
}

@keyframes genie-shop-loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes genie-shop-loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(6px, 0); }
}

@keyframes genie-shop-loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
} 