#globalServiceContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.service-toggle-btn {
    width: 58px;
    height: 58px;
    background-color: #BE930B;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(190, 147, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
}

.service-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(190, 147, 11, 0.5);
}

.service-toggle-btn svg {
    width: 30px;
    height: 30px;
}

.service-toggle-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.service-chat-modal {
    position: fixed;
    bottom: 104px;
    right: 24px;
    width: 100%;
    max-width: 380px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.service-chat-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.service-chat-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #1C1C1C;
}

.service-chat-header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-chat-title {
    font-size: 16px;
    font-weight: 700;
    font-family: Proxima Nova, sans-serif;
    color: white;
}

.service-close-btn {
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.service-close-btn svg {
    width: 16px;
    height: 16px;
}

.service-chat-body {
    flex: 1;
    max-height: 400px;
    min-height: 400px;
    overflow-y: auto;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-chat-body::-webkit-scrollbar {
    width: 4px;
}

.service-chat-body::-webkit-scrollbar-track {
    background: #E0E0E0;
    border-radius: 4px;
}

.service-chat-body::-webkit-scrollbar-thumb {
    background: #1C1C1C;
    border-radius: 4px;
}

.service-chat-body::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

.service-chat-message {
    display: flex;
    gap: 8px;
    max-width: 100%;
}

.service-chat-message-bot {
    justify-content: flex-start;
}

.service-chat-message-user {
    justify-content: flex-end;
}

.service-chat-message-system {
    background-color: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.service-chat-message-system p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.service-chat-link {
    color: #BE930B;
    text-decoration: underline;
}

.service-chat-link:hover {
    color: #a8820a;
}

.service-chat-message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
}

.service-chat-message-bot .service-chat-message-avatar {
    background-color: #F4F4F4;
    color: #BE930B;
}

.service-chat-message-user .service-chat-message-avatar {
    background-color: #F4F4F4;
    color: #BE930B;
}

.service-chat-message-content {
    max-width: 75%;
}

.service-chat-message-bot .service-chat-message-content {
    background-color: #f3f4f6;
    padding: 10px;
    border-radius: 0 12px 12px 12px;
}

.service-chat-message-user .service-chat-message-content {
    background-color: #BE930B;
    padding: 10px;
    border-radius: 12px 0 12px 12px;
}

.service-chat-message-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.service-chat-message-bot .service-chat-message-content p {
    color: #1C1C1C;
}

.service-chat-message-user .service-chat-message-content p {
    color: white;
}

.service-chat-footer {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-chat-input-container {
    position: relative;
    width: 100%;
}

.service-chat-input {
    width: 100%;
    padding: 10px 14px;
    padding-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    max-height: 120px;
}

.service-chat-input:focus {
    border-color: #BE930B;
    box-shadow: 0 0 0 2px rgba(190, 147, 11, 0.2);
}

.service-chat-input::placeholder {
    color: #9ca3af;
}

.service-chat-input-stats {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
}

.service-chat-footer-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-chat-footer-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-chat-footer-btn svg {
    width: 18px;
    height: 18px;
}

.service-chat-footer-btn-left {
    background-color: #1C1C1C;
    color: white;
}

.service-chat-footer-btn-left:hover {
    background-color: #333333;
    transform: scale(1.05);
}

.service-chat-footer-btn-right {
    background-color: #BE930B;
    color: white;
}

.service-chat-footer-btn-right:hover {
    background-color: #a8820a;
    transform: scale(1.05);
}

.service-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-rating-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1010;
}

.service-rating-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-rating-content {
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    width: 90%;
    max-width: 320px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-rating-close-btn {
    width: 100%;
    height: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: end;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.service-rating-close-btn:hover {
    color: #1C1C1C;
}

.service-rating-title {
    font-size: 14px;
    font-weight: 700;
    font-family: Proxima Nova, sans-serif;
    color: #1C1C1C;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.4;
}

.service-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.service-rating-star {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

.service-rating-star:hover {
    transform: scale(1.1);
}

.service-rating-star svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.service-rating-star.filled svg {
    fill: #D4A835;
    stroke: #D4A835;
}

.service-rating-star.filled svg path {
    fill: #D4A835;
    stroke: #D4A835;
}

.service-rating-text {
    font-size: 14px;
    font-weight: 400;
    font-family: Proxima Nova, sans-serif;
    color: #1C1C1C;
    text-align: center;
    margin-bottom: 8px;
}

.service-rating-input-container {
    position: relative;
    width: 100%;
}

.service-rating-input {
    width: 100%;
    padding: 12px;
    padding-bottom: 28px;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    font-size: 12px;
    font-family: Proxima Nova, sans-serif;
    color: rgba(28, 28, 28, 0.30);
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    min-height: 80px;
    box-sizing: border-box;
}

.service-rating-input:focus {
    border-color: #BE930B;
    box-shadow: 0 0 0 2px rgba(190, 147, 11, 0.2);
}

.service-rating-input::placeholder {
    color: #9CA3AF;
}

.service-rating-stats {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: #9CA3AF;
    pointer-events: none;
}

.service-rating-submit {
    padding: 10px;
    background-color: #1C1C1C;
    color: white;
    border: none;
    border-radius: 4.5px;
    font-size: 14px;
    font-weight: 400;
    font-family: Proxima Nova, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.service-rating-submit:hover {
    background-color: #333333;
}

.service-rating-submit:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .service-chat-modal {
        right: 12px;
        left: 12px;
        max-width: none;
        bottom: 12px;
    }

    .service-toggle-btn {
        right: 12px;
        bottom: 12px;
    }

    .service-chat-body {
        max-height: 350px;
    }

    .service-rating-content {
        width: 95%;
    }
}