html,
body {
    margin: 0;
    padding: 0;
    background: #f8fafc;
}

.mp-customer-chat-page {
    height: 100vh;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.mp-customer-chat-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mp-chat-header {
    flex-shrink: 0;
    padding: 24px 24px 0;
}

.mp-chat-header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
}

.mp-chat-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
}

.mp-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}

.mp-chat-form {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

.mp-chat-form textarea {
    width: 100%;
    height: 78px;
    resize: none;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    box-sizing: border-box;
}

.mp-chat-form-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.mp-chat-form button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    cursor: pointer;
    font-weight: 600;
}

.mp-customer-chat-sidebar {
    width: 340px;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.mp-chat-message-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.mp-chat-message-row.customer {
    flex-direction: row-reverse;
}

.mp-chat-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mp-chat-avatar.provider {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.mp-chat-avatar img,
.mp-chat-provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-chat-bubble {
    max-width: 500px;
}

.mp-chat-bubble-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.mp-chat-bubble-text {
    padding: 14px 18px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 14px;
}

.mp-chat-message-row.customer .mp-chat-bubble-text {
    background: #dbeafe;
    color: #1e3a8a;
}

.mp-chat-message-row.provider .mp-chat-bubble-text {
    background: #f1f5f9;
    color: #0f172a;
}

.mp-sidebar-title {
    margin: 0 0 20px;
    font-size: 26px;
    color: #0f172a;
}

.mp-sidebar-section {
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
}

.mp-sidebar-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.mp-order-summary,
.mp-chat-provider {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mp-order-icon,
.mp-chat-provider-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mp-order-date,
.mp-chat-expiry {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.mp-sidebar-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mp-product-name {
    font-weight: 600;
}

.mp-product-price,
.mp-provider-link {
    color: #2563eb;
    font-size: 13px;
    margin-top: 4px;
}

.mp-status-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.mp-chat-secure-box {
    margin-top: 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

.mp-chat-secure-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-chat-secure-header i {
    color: #15803d;
}

.mp-chat-secure-box strong {
    font-size: 15px;
    font-weight: 600;
}

.mp-chat-secure-box span {
    display: block;
    color: #15803d;
    font-size: 13px;
    margin-top: 4px;
}

.mp-chat-messages {
    opacity: 0;
}

.mp-chat-messages.mp-chat-ready {
    opacity: 1;
}

.mp-chat-error {
    margin: 16px 24px 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}