/* HBChatBox/assets/css/style.css */

.hbc-chatbox-wrapper {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
}

.hbc-chatbox-position-right {
    right: 20px;
}

.hbc-chatbox-position-left {
    left: 20px;
}

#hbc-chatbox-icon-container {
    width: 60px;
    height: 60px;
    cursor: pointer;
    /* background: #0073aa; <-- این خط حذف شد */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); <-- این خط حذف شد */
    transition: transform 0.3s ease;
}

#hbc-chatbox-icon-container:hover {
    transform: scale(1.1);
}

#hbc-chatbox-icon {
    width: 40px;
    height: 40px;
}

#hbc-chatbox-container {
    width: 320px;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    font-family: Arial, sans-serif;
    display: none;
    position: absolute;
    bottom: 80px; /* فاصله از پایین برای آیکون */
    right: 0; /* در موقعیت راست */
}

/* در صورتی که موقعیت چت باکس در سمت چپ باشد */
.hbc-chatbox-position-left #hbc-chatbox-container {
    left: 0;
    right: auto;
}

.hbc-chatbox-header {
    background-color: #0073aa;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    direction: rtl;
    gap: 10px;
}

.hbc-chatbox-header h5 {
    margin: 0;
    font-size: 1em;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hbc-header-logo {
    max-height: 40px;
    max-width: 100px;
    flex-shrink: 0;
}

.hbc-chatbox-close-btn {
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.hbc-chatbox-body {
    padding: 20px;
    direction: rtl;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.hbc-chatbox-body p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.hbc-form-group {
    margin-bottom: 15px;
}

.hbc-form-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #333;
}

.hbc-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.hbc-form-group input:focus {
    border-color: #0073aa;
    outline: none;
}

.hbc-chatbox-body button {
    width: 100%;
    background-color: #0073aa;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.hbc-chatbox-body button:hover {
    background-color: #005177;
}

#hbc-form-message {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

/* بهبودهای ریسپانسیو */
@media (max-width: 480px) {
    .hbc-chatbox-wrapper {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    #hbc-chatbox-container {
        width: calc(100% - 20px);
        bottom: 70px;
    }

    .hbc-chatbox-position-left #hbc-chatbox-container {
        left: 0;
        right: auto;
    }

    .hbc-chatbox-header h5 {
        font-size: 1em;
    }
}

/* استایل‌دهی به بخش تأیید مجدد */
.hbc-confirmation-message {
    text-align: center;
    margin-top: 15px;
}

.hbc-confirmation-message p {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 10px;
}

.hbc-confirmation-message button {
    background-color: #4CAF50 !important; /* رنگ سبز برای دکمه تأیید */
    color: white !important;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.hbc-confirmation-message button:hover {
    background-color: #45a049 !important;
}