/* ======================= Icon step tracker ======================= */
.wmpt-tracker {
    display: flex;
    align-items: flex-start;
    max-width: 560px;
    margin: 16px 0 28px;
}
.wmpt-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 84px;
    text-align: center;
}
.wmpt-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d8dee5;
    color: #9aa5b1;
    background: #fff;
    transition: all 0.2s ease;
}
.wmpt-step-done .wmpt-step-icon {
    background: #1e73d8;
    border-color: #1e73d8;
    color: #fff;
}
.wmpt-step-active .wmpt-step-icon {
    border-color: #1e73d8;
    color: #1e73d8;
    box-shadow: 0 0 0 4px rgba(30, 115, 216, 0.15);
}
.wmpt-step-label {
    font-size: 12px;
    margin-top: 6px;
    color: #555;
}
.wmpt-step-done .wmpt-step-label,
.wmpt-step-active .wmpt-step-label {
    color: #1e2a38;
    font-weight: 600;
}
.wmpt-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #d8dee5;
    margin-top: 19px;
}
.wmpt-line-done {
    background: #1e73d8;
}

/* ======================= Chat widget ======================= */
.wmpt-chat {
    max-width: 560px;
    margin-top: 24px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
}
.wmpt-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e73d8;
    color: #fff;
    padding: 10px 14px;
}
.wmpt-chat-title {
    font-weight: 600;
}
.wmpt-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.95;
}
.wmpt-presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa5b1;
    display: inline-block;
}
.wmpt-presence-online {
    background: #34c759;
}
.wmpt-presence-offline {
    background: #c9c9c9;
}
.wmpt-chat-messages {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: #f7f9fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wmpt-chat-empty {
    color: #888;
    font-size: 13px;
    text-align: center;
    margin: 20px 0;
}
.wmpt-msg {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}
.wmpt-msg-mine {
    align-self: flex-end;
    background: #1e73d8;
    color: #fff;
    border-bottom-right-radius: 3px;
}
.wmpt-msg-theirs {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-bottom-left-radius: 3px;
}
.wmpt-msg-time {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}
.wmpt-msg-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    font-size: 13px;
}
.wmpt-msg-mine .wmpt-msg-attachment {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.wmpt-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e2e2;
    background: #fff;
}
.wmpt-attach-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #555;
    cursor: pointer;
}
.wmpt-attach-btn:hover {
    background: #e2e6ea;
}
.wmpt-chat-filename {
    font-size: 11px;
    color: #1e73d8;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wmpt-chat-input {
    flex: 1 1 auto;
    resize: none;
    border: 1px solid #d8dee5;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 14px;
    max-height: 100px;
    font-family: inherit;
}
.wmpt-chat-input:focus {
    outline: none;
    border-color: #1e73d8;
}
.wmpt-chat-send {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #1e73d8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.wmpt-chat-send:hover {
    background: #14528f;
}

@media (max-width: 600px) {
    .wmpt-tracker { max-width: 100%; }
    .wmpt-step { width: 60px; }
    .wmpt-step-label { font-size: 10px; }
    .wmpt-chat { max-width: 100%; }
}

/* ======================= Chat: sender label (multi-agent) ======================= */
.wmpt-msg-sender {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 2px;
    opacity: 0.85;
}
.wmpt-msg-text { display: block; }
.wmpt-chat-error { color: #d63638; }

/* ======================= My Account: nav + layout ======================= */
.wmpt-account-wrap { max-width: 980px; }
.wmpt-page-title { margin-bottom: 4px; }
.wmpt-page-sub { color: #666; margin-top: 0; margin-bottom: 20px; }

.wmpt-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 28px;
}
.wmpt-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 150px;
    flex: 1 1 150px;
}
.wmpt-card-alert { border-color: #d63638; background: #fef7f7; }
.wmpt-card-number { font-size: 26px; font-weight: 700; color: #1e73d8; }
.wmpt-card-alert .wmpt-card-number { color: #d63638; }
.wmpt-card-label { font-size: 13px; color: #555; margin-top: 4px; }
.wmpt-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 28px; }
.wmpt-quick-links a.button { display: inline-flex; align-items: center; gap: 6px; }

.wmpt-project-block {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    background: #fff;
}
.wmpt-project-block h3 { margin-top: 0; }
.wmpt-project-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 14px 0; font-size: 14px; }
.wmpt-project-meta strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #888; font-weight: 600; margin-bottom: 2px; }
.wmpt-hosting-summary { background: #f7f9fb; border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-top: 10px; }
.wmpt-hosting-summary code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* Messages inbox (customer + admin share this layout) */
.wmpt-inbox { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.wmpt-inbox-list { flex: 0 0 280px; border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden; background: #fff; }
.wmpt-inbox-item { display: block; padding: 12px 14px; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; position: relative; }
.wmpt-inbox-item:last-child { border-bottom: none; }
.wmpt-inbox-item:hover { background: #f7f9fb; }
.wmpt-inbox-item.is-active { background: #eaf2fc; border-left: 3px solid #1e73d8; }
.wmpt-inbox-item-title { font-weight: 600; font-size: 13px; }
.wmpt-inbox-item-sub { font-size: 12px; color: #777; margin-top: 2px; }
.wmpt-inbox-badge { position: absolute; top: 12px; right: 14px; background: #d63638; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.wmpt-inbox-thread { flex: 1 1 380px; min-width: 300px; }
.wmpt-inbox-empty { padding: 40px 20px; text-align: center; color: #888; border: 1px dashed #ccc; border-radius: 10px; }
.wmpt-agent-assign { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.wmpt-agent-assign select { max-width: 220px; }

/* Business Profile form */
.wmpt-biz-form .form-row { margin-bottom: 16px; }
.wmpt-biz-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.wmpt-biz-form input[type=text],
.wmpt-biz-form input[type=url],
.wmpt-biz-form input[type=email],
.wmpt-biz-form input[type=tel],
.wmpt-biz-form select,
.wmpt-biz-form textarea { width: 100%; max-width: 520px; padding: 8px 10px; border: 1px solid #d8dee5; border-radius: 6px; }
.wmpt-biz-form textarea { min-height: 90px; }
.wmpt-biz-form .description { color: #777; font-size: 12px; margin-top: 4px; }
.wmpt-biz-logo-preview { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; border: 1px solid #e2e2e2; display: block; margin-bottom: 8px; background: #f7f9fb; }
.wmpt-biz-toggle { display: flex; align-items: flex-start; gap: 8px; background: #f7f9fb; padding: 12px 14px; border-radius: 8px; }
.wmpt-biz-toggle input { margin-top: 3px; }
.wmpt-biz-preview-link { margin-top: 6px; }

/* Public business profile / directory */
.wmpt-biz-public { max-width: 820px; margin: 30px auto; background: #fff; }
.wmpt-biz-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.wmpt-biz-hero img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; border: 1px solid #e2e2e2; }
.wmpt-biz-hero h1 { margin: 0 0 4px; }
.wmpt-biz-tagline { color: #666; font-size: 15px; }
.wmpt-biz-emirate-badge { display: inline-block; background: #eaf2fc; color: #1e73d8; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-top: 6px; }
.wmpt-biz-section { margin-bottom: 24px; }
.wmpt-biz-section h2 { font-size: 17px; margin-bottom: 8px; }
.wmpt-biz-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.wmpt-biz-contact-grid a { color: #1e73d8; text-decoration: none; }
.wmpt-biz-social { display: flex; gap: 10px; margin-top: 6px; }
.wmpt-biz-social a { padding: 6px 12px; background: #f0f2f5; border-radius: 6px; font-size: 13px; text-decoration: none; color: #333; }

.wmpt-directory-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.wmpt-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.wmpt-directory-card { border: 1px solid #e2e2e2; border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s ease; }
.wmpt-directory-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.wmpt-directory-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; margin-bottom: 10px; }
.wmpt-directory-card h3 { margin: 0 0 4px; font-size: 15px; }
.wmpt-directory-card p { margin: 0; font-size: 13px; color: #666; }

/* SEO Score */
.wmpt-seo-widget { border: 1px solid #e2e2e2; border-radius: 10px; padding: 20px; background: #fff; margin-bottom: 20px; }
.wmpt-seo-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wmpt-seo-gauge { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 700; font-size: 24px; color: #fff; background: conic-gradient(var(--wmpt-score-color,#1e73d8) calc(var(--wmpt-score,0)*1%), #e2e6ea 0); position: relative; }
.wmpt-seo-gauge::before { content: ''; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.wmpt-seo-gauge span { position: relative; z-index: 1; color: #1e2a38; }
.wmpt-seo-gauge span small { display: block; font-size: 11px; font-weight: 500; color: #888; }
.wmpt-seo-checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px 16px; }
.wmpt-seo-checklist li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.wmpt-seo-pass { color: #1e9e5a; }
.wmpt-seo-fail { color: #d63638; }
.wmpt-seo-icon { flex: 0 0 auto; margin-top: 1px; }
.wmpt-seo-empty { color: #777; font-size: 13px; }
.wmpt-seo-url { font-size: 12px; color: #777; margin: 2px 0 14px; word-break: break-all; }

@media (max-width: 600px) {
    .wmpt-tracker { max-width: 100%; }
    .wmpt-step { width: 60px; }
    .wmpt-step-label { font-size: 10px; }
    .wmpt-chat { max-width: 100%; }
    .wmpt-inbox { flex-direction: column; }
    .wmpt-inbox-list { flex: 1 1 auto; width: 100%; }
}
