.wtmg-provider-account {
    --wtmg-account-blue: #1f4f99;
    --wtmg-account-blue-dark: #123a78;
    --wtmg-account-green: #168a35;
    --wtmg-account-green-dark: #0f6d28;
    --wtmg-account-text: #10233f;
    --wtmg-account-muted: #64748b;
    --wtmg-account-soft: #f8fafc;
    --wtmg-account-blue-soft: #eff6ff;
    --wtmg-account-green-soft: #eefaf1;
    --wtmg-account-border: #dfe7f0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 22px;
    color: var(--wtmg-account-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Agency public profile and billing additions */
.wtmg-agency-billing-provider-grid,
.wtmg-agency-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.wtmg-agency-billing-provider-card,
.wtmg-agency-public-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.wtmg-agency-billing-provider-card h3,
.wtmg-agency-public-card h2,
.wtmg-agency-public-profile-hero h1 {
    margin: 0;
    color: #0f2547;
}

.wtmg-agency-billing-provider-card p,
.wtmg-agency-public-card p,
.wtmg-agency-public-profile-hero p {
    margin: 0;
    color: #64748b;
}

.wtmg-agency-billing-provider-card dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
}

.wtmg-agency-billing-provider-card dl div {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.wtmg-agency-billing-provider-card dt {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.wtmg-agency-billing-provider-card dd {
    margin: 0;
    color: #0f2547;
    font-weight: 800;
}

.wtmg-agency-public-page {
    padding: 36px 20px 60px;
    background: #f8fafc;
}

.wtmg-agency-public-hero,
.wtmg-agency-public-profile-hero,
.wtmg-agency-public-layout,
.wtmg-agency-public-grid {
    width: min(1180px, calc(100vw - 40px));
    margin-right: auto;
    margin-left: auto;
}

.wtmg-agency-public-hero,
.wtmg-agency-public-profile-hero {
    margin-bottom: 28px;
    padding: 34px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.wtmg-agency-public-hero h1 {
    max-width: 680px;
    margin: 8px 0 10px;
    color: #0f2547;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.02;
}

.wtmg-agency-public-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.wtmg-agency-public-profile-hero {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 24px;
    align-items: center;
}

.wtmg-agency-public-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #eff6ff;
    color: #1f4f99;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0;
}

.wtmg-agency-public-avatar-large {
    width: 116px;
    height: 116px;
    border-radius: 28px;
    font-size: 36px;
}

.wtmg-agency-public-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d !important;
    font-size: 12px;
    font-weight: 900;
}

.wtmg-agency-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 24px;
}

.wtmg-agency-public-main,
.wtmg-agency-public-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.wtmg-agency-public-provider-list,
.wtmg-agency-public-team {
    display: grid;
    gap: 12px;
}

.wtmg-agency-public-provider-list a,
.wtmg-agency-public-team article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    text-decoration: none;
}

.wtmg-agency-public-provider-list a strong,
.wtmg-agency-public-team strong {
    color: #0f2547;
}

.wtmg-agency-public-provider-list a span,
.wtmg-agency-public-team p {
    margin: 0;
    color: #1f4f99;
    font-size: 13px;
    font-weight: 800;
}

.wtmg-agency-public-team article {
    justify-content: flex-start;
}

.wtmg-agency-public-team img,
.wtmg-agency-public-team article > span {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
}

.wtmg-agency-public-team img {
    object-fit: cover;
}

.wtmg-agency-public-team article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1f4f99;
    font-weight: 900;
}

.wtmg-provider-single-v3-agency-link a {
    color: #1f4f99;
    font-weight: 900;
    text-decoration: none;
}

.wtmg-provider-single-v3-agency-link a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .wtmg-agency-public-profile-hero,
    .wtmg-agency-public-layout {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-billing-provider-card dl {
        grid-template-columns: 1fr;
    }
}

/* Agency public profile settings fields */
.wtmg-agency-settings-form h3 {
    margin: 28px 0 14px;
    color: #0f2547;
    font-size: 18px;
}

.wtmg-agency-logo-field > span {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 800;
}

.wtmg-agency-logo-control {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #f8fafc;
}

.wtmg-agency-logo-control img,
img.wtmg-agency-public-avatar {
    object-fit: cover;
}

.wtmg-agency-logo-control img {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #fff;
}

.wtmg-agency-logo-control label {
    display: grid;
    gap: 8px;
    flex: 1;
}

.wtmg-agency-logo-control strong {
    color: #0f2547;
}

.wtmg-agency-logo-control input[type="file"] {
    width: 100%;
}

@media (max-width: 640px) {
    .wtmg-agency-logo-control {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Agency Team Settings layout correction */
.wtmg-agency-team-settings .wtmg-team-settings-section,
.wtmg-agency-team-settings .wtmg-team-add-card {
    padding: 24px !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-card {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    padding: 22px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15, 39, 72, 0.06) !important;
    box-sizing: border-box !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-avatar {
    width: 90px !important;
    min-width: 90px !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-avatar .wtmg-team-photo-image {
    width: 90px !important;
    height: 90px !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    display: block !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form,
.wtmg-agency-team-settings .wtmg-agency-team-add-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 18px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form label,
.wtmg-agency-team-settings .wtmg-agency-team-add-form label {
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form label > span,
.wtmg-agency-team-settings .wtmg-agency-team-add-form label > span {
    line-height: 1.25 !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form input[type="text"],
.wtmg-agency-team-settings .wtmg-agency-member-settings-form input[type="email"],
.wtmg-agency-team-settings .wtmg-agency-member-settings-form input[type="password"],
.wtmg-agency-team-settings .wtmg-agency-member-settings-form input[type="file"],
.wtmg-agency-team-settings .wtmg-agency-team-add-form input[type="text"],
.wtmg-agency-team-settings .wtmg-agency-team-add-form input[type="email"],
.wtmg-agency-team-settings .wtmg-agency-team-add-form input[type="password"],
.wtmg-agency-team-settings .wtmg-agency-team-add-form input[type="file"] {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0f2748 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form input[type="file"],
.wtmg-agency-team-settings .wtmg-agency-team-add-form input[type="file"] {
    padding: 8px 10px !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form small,
.wtmg-agency-team-settings .wtmg-agency-team-add-form small {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.wtmg-agency-team-settings .wtmg-agency-access-toggle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 0 !important;
}

.wtmg-agency-team-settings .wtmg-agency-access-toggle input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px !important;
    accent-color: #1f4f99;
}

.wtmg-agency-team-settings .wtmg-agency-access-toggle span {
    margin: 0 !important;
    line-height: 1.25 !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-role-note {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    align-items: center !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-role-note span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 2px !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-remove-form {
    display: inline-flex !important;
    grid-column: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: auto !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-provider-account-button,
.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-team-action,
.wtmg-agency-team-settings .wtmg-agency-team-add-form > button {
    width: auto !important;
    min-width: 128px !important;
    min-height: 42px !important;
    justify-content: center !important;
    margin: 0 !important;
}

.wtmg-agency-team-settings .wtmg-team-action-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 1px solid #dc2626 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.wtmg-agency-team-settings .wtmg-team-action-remove:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.wtmg-agency-team-settings .wtmg-team-owner-lock {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 36px !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

.wtmg-agency-team-settings .wtmg-team-add-card .wtmg-provider-account-card-head {
    margin-bottom: 18px !important;
}

.wtmg-agency-team-settings .wtmg-agency-team-add-form > button {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
}

@media (max-width: 899px) {
    .wtmg-agency-team-settings .wtmg-agency-member-settings-card {
        grid-template-columns: 1fr !important;
    }

    .wtmg-agency-team-settings .wtmg-agency-member-settings-avatar {
        width: 90px !important;
    }

    .wtmg-agency-team-settings .wtmg-agency-member-settings-form,
    .wtmg-agency-team-settings .wtmg-agency-team-add-form {
        grid-template-columns: 1fr !important;
    }
}

.wtmg-provider-account * {
    box-sizing: border-box;
}

.wtmg-provider-account a {
    color: var(--wtmg-account-blue) !important;
    text-decoration: none;
}

.wtmg-provider-account a:hover,
.wtmg-provider-account a:focus {
    color: var(--wtmg-account-blue-dark);
    text-decoration: underline;
}

.wtmg-provider-account svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wtmg-provider-account-card {
    border: 1px solid var(--wtmg-account-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 35, 68, 0.055);
	padding: 20px;
}

.wtmg-user-dashboard-shell {
    align-items: stretch;
}

.wtmg-user-dashboard-page .wtmg-provider-account {
    max-width: 1180px;
}

.wtmg-user-account-main {
    min-width: 0;
}

.wtmg-user-account-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    margin-bottom: 22px;
}

.wtmg-user-account-welcome h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.wtmg-user-account-welcome p {
    max-width: 640px;
    margin: 0;
    color: var(--wtmg-account-muted);
}

.wtmg-user-account-identity {
    display: grid;
    gap: 4px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow-wrap: anywhere;
}

.wtmg-user-account-identity span {
    color: #fff;
    font-weight: 800;
}

.wtmg-user-account-identity strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
}

.wtmg-user-account-sidebar .wtmg-provider-account-nav a {
    justify-content: space-between;
}

.wtmg-user-account-sidebar .wtmg-provider-account-nav a span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wtmg-user-account-sidebar .wtmg-provider-account-nav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.wtmg-user-account-sidebar .wtmg-provider-account-nav strong {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #0b63ce;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.wtmg-user-account-list {
    display: grid;
    gap: 14px;
}

.wtmg-user-account-list article,
.wtmg-user-account-list > a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow-wrap: anywhere;
}

.wtmg-user-account-list article strong {
    color: var(--wtmg-account-text, #101828);
}

.wtmg-user-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wtmg-user-account-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wtmg-user-account-section-head h1,
.wtmg-user-account-section-head h2 {
    margin: 0 0 6px;
}

.wtmg-user-account-section-head p {
    margin: 0;
    color: var(--wtmg-account-muted);
}

.wtmg-user-account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wtmg-user-account-empty {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    background: #f8fbff;
}

.wtmg-user-account-empty strong {
    color: var(--wtmg-account-text);
    font-size: 18px;
}

.wtmg-user-account-empty p {
    margin: 0;
    color: var(--wtmg-account-muted);
}

.wtmg-user-account-badge {
    display: inline-flex;
  align-items: center;
  margin-left: 0px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.wtmg-user-account-badge.is-verified {
    background: #dcfce7;
    color: #166534;
}

.wtmg-user-account-badge.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.wtmg-provider-single-v3-save-provider-form {
    margin: 0;
}

.wtmg-user-account-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 22px 0px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue-dark);
    font-size: 12px;
    font-weight: 800;
}

.wtmg-user-account-rfq-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wtmg-user-account-rfq-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    color: var(--wtmg-account-muted);
    font-size: 14px;
}

.wtmg-user-account-provider-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
}

.wtmg-user-account-provider-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue-dark);
    font-weight: 900;
}

.wtmg-user-account-provider-card p {
    margin: 8px 0;
    color: var(--wtmg-account-text);
}

.wtmg-user-account-provider-card small,
.wtmg-user-account-provider-card time,
.wtmg-user-account-provider-card span {
    color: var(--wtmg-account-muted);
}

.wtmg-user-account-email-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    background: #f8fbff;
}

.wtmg-user-account-success {
	display: inline-flex;
  border-radius: 8px;
  padding: 6px 12px;
  background: #dcfce7;
  color: #166534;
  font-weight: 500;
  font-size: 14px;
  margin-top: 8px;
}

.wtmg-user-account-label {
    color: var(--wtmg-account-muted);
    font-weight: 500;
  font-size: 14px;
}

.wtmg-user-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.wtmg-provider-account-notice.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.wtmg-messaging-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: start;
}

.wtmg-messaging-card {
    border: 1px solid var(--wtmg-account-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 35, 68, 0.055);
}

.wtmg-messaging-inbox,
.wtmg-messaging-conversation {
    padding: 18px;
}

.wtmg-messaging-thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    color: inherit;
}

.wtmg-messaging-thread:hover {
    background: #f8fbff;
    text-decoration: none;
}

.wtmg-messaging-thread h3,
.wtmg-messaging-thread p {
    margin: 0;
}

.wtmg-messaging-thread span,
.wtmg-messaging-thread-meta {
    color: var(--wtmg-account-muted);
    font-size: 13px;
}

.wtmg-messaging-thread-meta strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--wtmg-account-blue);
    color: #fff;
}

.wtmg-messaging-conversation-head {
    border-bottom: 1px solid var(--wtmg-account-border);
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.wtmg-messaging-messages {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.wtmg-messaging-bubble {
    width: min(78%, 560px);
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1f5f9;
}

.wtmg-messaging-bubble.is-mine {
    justify-self: end;
    background: var(--wtmg-account-blue);
    color: #fff;
}

.wtmg-messaging-bubble p {
    margin: 6px 0;
}

.wtmg-messaging-bubble time,
.wtmg-messaging-bubble span {
    font-size: 12px;
    opacity: 0.78;
}

.wtmg-messaging-composer {
    display: grid;
    gap: 12px;
}

@media (max-width: 900px) {
    .wtmg-user-account-dashboard-grid,
    .wtmg-messaging-layout {
        grid-template-columns: 1fr;
    }

    .wtmg-user-account-welcome,
    .wtmg-user-account-section-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    .wtmg-user-account-form-grid,
    .wtmg-user-account-rfq-meta {
        grid-template-columns: 1fr;
    }

    .wtmg-user-account-provider-card {
        grid-template-columns: 1fr;
    }

    .wtmg-messaging-bubble {
        width: 100%;
    }
}

.wtmg-provider-account-kicker {
    margin: 0 0 10px;
    color: var(--wtmg-account-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wtmg-provider-account-button,
.wtmg-provider-account .login-submit input {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.wtmg-provider-account-button-primary,
.wtmg-provider-account .login-submit input {
    background: var(--wtmg-account-blue);
    color: #ffffff;
}

.wtmg-provider-account-button-primary:hover,
.wtmg-provider-account-button-primary:focus,
.wtmg-provider-account .login-submit input:hover,
.wtmg-provider-account .login-submit input:focus {
    background: var(--wtmg-account-blue-dark);
    color: #ffffff;
    text-decoration: none;
}

.wtmg-provider-account-button-secondary {
    border: 1px solid rgba(22, 138, 53, 0.26);
    background: var(--wtmg-account-green-soft);
    color: var(--wtmg-account-green-dark);
}

.wtmg-provider-account-button-secondary:hover,
.wtmg-provider-account-button-secondary:focus {
    background: #dcf4e2;
    color: var(--wtmg-account-green-dark);
    text-decoration: none;
}

.wtmg-provider-account-icon,
.wtmg-provider-account-logo,
.wtmg-provider-account-stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
}

.wtmg-provider-account-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

.wtmg-provider-account-icon svg,
.wtmg-provider-account-status svg,
.wtmg-provider-account-stats span svg,
.wtmg-provider-account-tags svg {
    width: 20px;
    height: 20px;
}

.wtmg-provider-account-login-page {
    max-width: none;
    min-height: 720px;
    padding-top: 72px;
    padding-bottom: 72px;
    background:
        radial-gradient(circle at 22% 18%, rgba(31, 79, 153, 0.08), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(22, 138, 53, 0.1), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.wtmg-provider-account-login-shell {
    display: flex;
    justify-content: center;
}

.wtmg-provider-account-login-card {
    width: min(100%, 480px);
    padding: 42px;
    text-align: center;
}

.wtmg-provider-account-brand {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 0;
}

.wtmg-provider-account-brand img {
    display: block;
    width: auto;
    max-width: 178px;
    max-height: 54px;
}

.wtmg-provider-account-login-card h1 {
    margin: 0 0 10px;
    color: var(--wtmg-account-text);
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
}

.wtmg-provider-account-login-subtitle,
.wtmg-provider-account-login-card p {
    margin: 0 0 28px;
    color: #405673;
    font-size: 16px;
    line-height: 1.6;
}

.wtmg-provider-account .loginform,
.wtmg-provider-account #loginform {
    text-align: left;
}

.wtmg-provider-account .login-username,
.wtmg-provider-account .login-password,
.wtmg-provider-account .login-remember {
    margin: 0 0 16px;
}

.wtmg-provider-account .login-username label,
.wtmg-provider-account .login-password label,
.wtmg-provider-account-editor label {
    display: block;
    margin-bottom: 0px;
    color: #405673;
    font-size: 13px;
    font-weight: 800;
}

.wtmg-provider-account input[type="text"],
.wtmg-provider-account input[type="password"],
.wtmg-provider-account input[type="email"],
.wtmg-provider-account input[type="url"],
.wtmg-provider-account textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--wtmg-account-border);
    border-radius: 11px;
    padding: 11px 14px;
    background: #ffffff;
    color: var(--wtmg-account-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wtmg-provider-account input:focus,
.wtmg-provider-account textarea:focus {
    border-color: rgba(31, 79, 153, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 79, 153, 0.08);
}

.wtmg-provider-account input[readonly],
.wtmg-provider-account textarea[readonly] {
    background: #f8fafc;
    color: #405673;
}

.wtmg-provider-account .login-submit {
    margin: 20px 0 0;
}

.wtmg-provider-account .login-submit input {
    width: 100%;
}

.wtmg-provider-account-forgot {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 800;
}

.wtmg-provider-account-login-bottom {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    border-top: 1px solid var(--wtmg-account-border);
    padding-top: 24px;
    color: var(--wtmg-account-muted);
    font-size: 14px;
}

.wtmg-provider-account-login-bottom a {
    color: var(--wtmg-account-blue);
    font-weight: 800;
}

.wtmg-provider-account-signed-in {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.wtmg-provider-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.wtmg-provider-account-auth,
.wtmg-provider-account-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 44px;
    text-align: center;
}

.wtmg-provider-account-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.wtmg-provider-account-sidebar {
    position: sticky;
    top: 24px;
    border: 1px solid rgba(22, 138, 53, 0.18);
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(180deg, #f3fbf5 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(15, 35, 68, 0.045);
}

.wtmg-provider-account-sidebar h2 {
    margin: 0 0 18px;
    color: var(--wtmg-account-text);
    font-size: 20px;
    line-height: 1.2;
}

.wtmg-provider-account-sidebar nav {
    display: grid;
    gap: 8px;
}

.wtmg-provider-account-sidebar nav a {
    display: block;
    border-radius: 11px;
    padding: 12px 13px;
// color: #405673;
    font-weight: 600;
	color:black !important;
:}

.wtmg-provider-account-sidebar nav a:first-child,
.wtmg-provider-account-sidebar nav a:hover,
.wtmg-provider-account-sidebar nav a:focus {
    background: rgba(22, 138, 53, 0.1);
    color: var(--wtmg-account-green-dark);
    text-decoration: none;
}

.wtmg-provider-account-main {
    display: grid;
    gap: 24px;
}

.wtmg-provider-account-welcome {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 34px 36px;
    background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
}

.wtmg-provider-account-welcome h1,
.wtmg-provider-account-editor-head h1 {
    margin: 0 0 10px;
    color: var(--wtmg-account-text);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

.wtmg-provider-account-welcome p,
.wtmg-provider-account-editor-head p,
.wtmg-provider-account-card p {
    margin: 0px;
    color: #405673;
    font-size: 15.5px;
    line-height: 1.65;
}

.wtmg-provider-account-summary {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 28px;
}

.wtmg-provider-account-summary h2,
.wtmg-provider-account-card h2 {
    margin: 0 0 10px;
    color: var(--wtmg-account-text);
    font-size: 22px;
    line-height: 1.25;
}

.wtmg-provider-account-logo {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 18px;
    font-size: 30px;
    font-weight: 900;
}

.wtmg-provider-account-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wtmg-provider-account-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 1px solid rgba(22, 138, 53, 0.2);
    border-radius: 999px;
    padding: 8px 11px;
    background: var(--wtmg-account-green-soft);
    color: var(--wtmg-account-green-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wtmg-provider-account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wtmg-provider-account-stats article {
    padding: 24px;
}

.wtmg-provider-account-stats span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.wtmg-provider-account-stats h3 {
    margin: 16px 0 8px;
    color: #405673;
    font-size: 14px;
    font-weight: 800;
}

.wtmg-provider-account-stats strong {
    display: block;
    color: var(--wtmg-account-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.wtmg-provider-account-editor-head {
    margin-bottom: 0px;
    border: 1px solid var(--wtmg-account-border);
    border-radius: 22px;
    padding: 38px;
    background: linear-gradient(135deg, #f8fbff 0%, #edf7f0 100%);
}

.wtmg-provider-account-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.wtmg-provider-account-editor .wtmg-provider-account-card {
    padding: 30px;
}

.wtmg-provider-account-editor .wtmg-provider-account-card > p {
    margin: -2px 0 18px;
    color: var(--wtmg-account-muted);
    font-size: 14.5px;
}

.wtmg-provider-account-editor label {
    margin-top: 0px;
}

.wtmg-provider-account-editor label input,
.wtmg-provider-account-editor label textarea {
    margin-top: 8px;
    font-weight: 500;
}

.wtmg-provider-account-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.wtmg-provider-account-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
    font-size: 13px;
    font-weight: 800;
}

.wtmg-provider-account-preview {
    background: linear-gradient(135deg, #eefaf1 0%, #ffffff 100%);
}

@media (max-width: 960px) {
    .wtmg-provider-account-shell,
    .wtmg-provider-account-editor {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-sidebar {
        position: static;
    }

    .wtmg-provider-account-stats {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-welcome {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .wtmg-provider-account {
        padding: 34px 16px;
    }

    .wtmg-provider-account-login-card,
    .wtmg-provider-account-welcome,
    .wtmg-provider-account-editor-head,
    .wtmg-provider-account-editor .wtmg-provider-account-card,
    .wtmg-provider-account-auth,
    .wtmg-provider-account-empty {
        padding: 24px;
    }

    .wtmg-provider-account-summary {
        grid-template-columns: 1fr;
    }
}

/* WTMG account app page chrome and V2 refinement */
body.wtmg-account-page-body .site-content,
body.wtmg-account-page-body #content,
body.wtmg-account-page-body .container.grid-container {
    max-width: none;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

body.wtmg-account-page-body .content-area,
body.wtmg-account-page-body .site-main,
body.wtmg-account-page-body article,
body.wtmg-account-page-body .inside-article,
body.wtmg-account-page-body .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.wtmg-account-page-body .widget-area,
body.wtmg-account-page-body .sidebar,
body.wtmg-account-page-body #right-sidebar,
body.wtmg-account-page-body #left-sidebar,
body.wtmg-account-page-body .site-footer,
body.wtmg-account-page-body footer.site-info,
body.wtmg-account-page-body .site-info,
body.wtmg-account-page-body .entry-header,
body.wtmg-account-page-body .entry-title {
    display: none !important;
}

body.wtmg-account-page-body {
    background: #f8fafc;
}

.wtmg-account-page.wtmg-provider-account {
    max-width: none;
    min-height: 720px;
    padding: 15px 22px;
    background:
        radial-gradient(circle at 12% 10%, rgba(31, 79, 153, 0.06), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(22, 138, 53, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.wtmg-account-page > .wtmg-provider-account-login-shell,
.wtmg-account-page > .wtmg-provider-account-shell,
.wtmg-account-page > .wtmg-provider-account-editor-head,
.wtmg-account-page > .wtmg-provider-account-profile-notice,
.wtmg-account-page > .wtmg-provider-account-editor {
    width: min(1180px, calc(100vw - 44px));
    margin-right: auto;
    margin-left: auto;
	margin-top:15px;
}

.wtmg-provider-account-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wtmg-provider-account-login-card {
    width: min(100%, 520px);
    padding: 48px 46px;
    border-radius: 20px;
}

.wtmg-provider-account-login-card .wtmg-provider-account-kicker {
    color: var(--wtmg-account-blue);
}

.wtmg-provider-account-login-divider {
    width: 100%;
    height: 1px;
    margin: 28px 0 22px;
    background: var(--wtmg-account-border);
}

.wtmg-provider-account-login-bottom {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.wtmg-provider-account-shell {
    grid-template-columns: 285px minmax(0, 1fr);
}

.wtmg-provider-account-welcome {
    border-color: rgba(31, 79, 153, 0.14);
    box-shadow: 0 14px 34px rgba(15, 35, 68, 0.045);
}

.wtmg-provider-account-summary a {
    display: inline-flex;
    margin-top: 8px;
    font-weight: 800;
}

.wtmg-provider-account-activity {
    padding: 28px;
}

.wtmg-provider-account-activity h2 {
    margin-bottom: 8px;
}

.wtmg-provider-account-profile-notice {
    margin-bottom: 22px;
    text-align: left;
}

.wtmg-provider-account-profile-notice .wtmg-provider-account-button {
    margin-top: 20px;
}

.wtmg-provider-account-editor {
    align-items: stretch;
}

.wtmg-provider-account-editor .wtmg-provider-account-card {
    min-height: 270px;
}

.wtmg-provider-account-muted-action {
    display: inline-flex;
    margin-top: 16px;
    color: var(--wtmg-account-muted);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 960px) {
    .wtmg-account-page > .wtmg-provider-account-login-shell,
    .wtmg-account-page > .wtmg-provider-account-shell,
    .wtmg-account-page > .wtmg-provider-account-editor-head,
    .wtmg-account-page > .wtmg-provider-account-profile-notice,
    .wtmg-account-page > .wtmg-provider-account-editor {
        width: min(100%, calc(100vw - 32px));
    }
}

/* Account sidebar active state standardization */
.wtmg-provider-account-sidebar nav a:first-child:not(.is-active) {
    background: transparent;
    color: #405673;
}

.wtmg-provider-account-sidebar nav a.is-active,
.wtmg-provider-account-sidebar nav a.is-active:hover,
.wtmg-provider-account-sidebar nav a.is-active:focus {
    background: rgba(22, 138, 53, 0.1);
    color: var(--wtmg-account-green-dark);
    text-decoration: none;
}

/* Provider profile editor UI */
.wtmg-provider-account-profile-editor {
    grid-template-columns: 1fr;
}

.wtmg-provider-account-profile-editor .wtmg-provider-account-card {
    min-height: 0;
}

.wtmg-provider-account-profile-card {
    padding: 30px;
}

.wtmg-provider-account-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.wtmg-provider-account-card-head h2 {
    margin-bottom: 7px;
}

.wtmg-provider-account-card-head p {
    max-width: 720px;
}

.wtmg-provider-account-logo-editor {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px dashed rgba(31, 79, 153, 0.24);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.wtmg-provider-account-logo-upload {
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(31, 79, 153, 0.16);
    border-radius: 18px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
    text-align: center;
}

.wtmg-provider-account-logo-upload img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wtmg-provider-account-logo-upload svg {
    width: 34px;
    height: 34px;
    margin-bottom: 7px;
}

.wtmg-provider-account-logo-upload strong {
    display: block;
    padding: 0 10px;
    color: var(--wtmg-account-blue);
    font-size: 13px;
    font-weight: 900;
}

.wtmg-provider-account-logo-editor h3 {
    margin: 0 0 7px;
    color: var(--wtmg-account-text);
    font-size: 18px;
    line-height: 1.25;
}

.wtmg-provider-account-field-grid,
.wtmg-provider-account-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wtmg-provider-account-profile-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 78px;
    border: 1px solid rgba(223, 231, 240, 0.9);
    border-radius: 15px;
    padding: 15px;
    background: #ffffff;
}

.wtmg-provider-account-profile-field-wide {
    grid-column: 1 / -1;
}

.wtmg-provider-account-profile-field-icon {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
}

.wtmg-provider-account-profile-field-icon svg {
    width: 24px;
    height: 24px;
}

.wtmg-provider-account-profile-field span:not(.wtmg-provider-account-profile-field-icon) {
    display: block;
    margin-bottom: 3px;
    color: var(--wtmg-account-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.wtmg-provider-account-profile-field strong {
    display: block;
    color: var(--wtmg-account-text);
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wtmg-provider-account-contact-list {
    display: grid;
    gap: 12px;
}

.wtmg-provider-account-contact-list .wtmg-provider-account-profile-field {
    min-height: 68px;
}

.wtmg-provider-account-status-badge {
    border: 1px solid rgba(22, 138, 53, 0.2);
    border-radius: 15px;
    padding: 16px;
    background: var(--wtmg-account-green-soft);
}

.wtmg-provider-account-status-badge span {
    display: block;
    margin-bottom: 7px;
    color: var(--wtmg-account-green-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wtmg-provider-account-status-badge strong {
    display: inline-flex;
    border-radius: 10px;
    padding: 8px 11px;
    background: #ffffff;
    color: var(--wtmg-account-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.wtmg-provider-account-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wtmg-provider-account-preview .wtmg-provider-account-card-head {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .wtmg-provider-account-logo-editor,
    .wtmg-provider-account-field-grid,
    .wtmg-provider-account-status-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-logo-upload {
        width: 120px;
        height: 120px;
    }

    .wtmg-provider-account-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Provider profile editor polish */
.wtmg-provider-account-profile-banner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(1180px, calc(100vw - 44px));
    margin: 0 auto 18px;
    padding: 16px 18px;
    border-color: rgba(31, 79, 153, 0.16);
    background: #ffffff;
    text-align: left;
}

.wtmg-provider-account-profile-banner-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
}

.wtmg-provider-account-profile-banner-icon svg {
    width: 20px;
    height: 20px;
}

.wtmg-provider-account-profile-banner h2 {
    margin: 0 0 3px;
    font-size: 17px;
    line-height: 1.25;
}

.wtmg-provider-account-profile-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.wtmg-provider-account-profile-banner .wtmg-provider-account-button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
}

.wtmg-provider-account-logo-editor {
    grid-template-columns: 176px minmax(0, 1fr);
    padding: 22px;
    border-style: solid;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 58%, #f2fbf4 100%);
}

.wtmg-provider-account-logo-upload {
    width: 176px;
    height: 176px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.wtmg-provider-account-logo-upload svg {
    width: 44px;
    height: 44px;
}

.wtmg-provider-account-contact-list {
    gap: 10px;
}

.wtmg-provider-account-contact-row {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(223, 231, 240, 0.9);
    border-radius: 15px;
    padding: 14px;
    background: #ffffff;
}

.wtmg-provider-account-contact-label {
    display: block;
    color: var(--wtmg-account-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.wtmg-provider-account-contact-value {
    display: flex;
    align-items: center;
    gap: 11px;
}

.wtmg-provider-account-contact-value strong {
    color: var(--wtmg-account-blue);
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wtmg-provider-account-contact-value .wtmg-provider-account-profile-field-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.wtmg-provider-account-contact-value .wtmg-provider-account-profile-field-icon svg {
    width: 24px;
    height: 24px;
}

.wtmg-provider-account-profile-card .wtmg-provider-account-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wtmg-provider-account-status-badge {
    background: #f8fafc;
    border-color: rgba(223, 231, 240, 0.95);
}

.wtmg-provider-account-status-badge.is-verified {
    border-color: rgba(22, 138, 53, 0.22);
    background: var(--wtmg-account-green-soft);
}

.wtmg-provider-account-status-badge.is-pending {
    border-color: rgba(181, 119, 20, 0.24);
    background: #fff8e8;
}

.wtmg-provider-account-status-badge.is-neutral {
    border-color: rgba(100, 116, 139, 0.2);
    background: #f8fafc;
}

.wtmg-provider-account-status-badge.is-verified span,
.wtmg-provider-account-status-badge.is-verified strong {
    color: var(--wtmg-account-green-dark);
}

.wtmg-provider-account-status-badge.is-pending span,
.wtmg-provider-account-status-badge.is-pending strong {
    color: #9a6412;
}

.wtmg-provider-account-status-badge.is-neutral span,
.wtmg-provider-account-status-badge.is-neutral strong {
    color: #475569;
}

.wtmg-provider-account-status-badge strong {
    background: rgba(255, 255, 255, 0.82);
}

.wtmg-provider-account-chip-layout {
    display: grid;
    gap: 18px;
}

.wtmg-provider-account-chip-group h3 {
    margin: 0 0 10px;
    color: var(--wtmg-account-text);
    font-size: 14px;
    font-weight: 900;
}

.wtmg-provider-account-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wtmg-provider-account-chip-list span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid rgba(31, 79, 153, 0.13);
    border-radius: 10px;
    padding: 7px 12px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
    font-size: 13px;
    font-weight: 850;
}

.wtmg-provider-account-chip-list span svg {
    width: 15px;
    height: 15px;
}

.wtmg-provider-account-chip-list .is-empty {
    border-color: rgba(100, 116, 139, 0.16);
    background: #f8fafc;
    color: var(--wtmg-account-muted);
}

.wtmg-provider-account-preview {
    position: relative;
    overflow: hidden;
    border-color: rgba(22, 138, 53, 0.2);
    background:
        radial-gradient(circle at 86% 28%, rgba(22, 138, 53, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #effaf2 100%);
}

.wtmg-provider-account-preview::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(22, 138, 53, 0.08);
    pointer-events: none;
}

.wtmg-provider-account-preview .wtmg-provider-account-button {
    position: relative;
    z-index: 1;
}

.wtmg-provider-account-notice {
    width: min(1180px, calc(100vw - 44px));
    margin: 0 auto 18px;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 850;
}

.wtmg-provider-account-notice.is-success {
    border: 1px solid rgba(22, 138, 53, 0.22);
    background: var(--wtmg-account-green-soft);
    color: var(--wtmg-account-green-dark);
}

.wtmg-provider-account-notice.is-error {
    border: 1px solid rgba(185, 28, 28, 0.2);
    background: #fef2f2;
    color: #991b1b;
}

.wtmg-provider-account-edit-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 78px;
    margin: 0;
    border: 1px solid rgba(223, 231, 240, 0.9);
    border-radius: 15px;
    padding: 15px;
    background: #ffffff;
}

.wtmg-provider-account-edit-field-wide {
    grid-column: 1 / -1;
}

.wtmg-provider-account-edit-field-content {
    display: block;
    width: 100%;
    min-width: 0;
}

.wtmg-provider-account-edit-label {
    display: block;
    margin: 9px 0 0px;
    color: var(--wtmg-account-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.wtmg-provider-account-edit-field input[type="text"],
.wtmg-provider-account-edit-field input[type="email"],
.wtmg-provider-account-edit-field input[type="url"],
.wtmg-provider-account-edit-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(223, 231, 240, 0.95);
    border-radius: 10px;
    padding: 9px 11px;
    background: #f8fafc;
    color: var(--wtmg-account-text);
    font-size: 14px;
    font-weight: 700;
}

.wtmg-provider-account-edit-field textarea {
    min-height: 128px;
    resize: vertical;
}

.wtmg-provider-account-check-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    color: var(--wtmg-account-text);
    font-size: 12px;
    font-weight: 600;
}

.wtmg-provider-account-check-control input {
    width: 18px;
    height: 18px;
    accent-color: var(--wtmg-account-green);
}

.wtmg-provider-account-save-bar {
    display: flex;
    justify-content: flex-end;
    border: 1px solid rgba(31, 79, 153, 0.14);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 35, 68, 0.045);
}

.wtmg-provider-account-save-bar .wtmg-provider-account-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .wtmg-provider-account-profile-banner {
        grid-template-columns: 42px minmax(0, 1fr);
        width: min(100%, calc(100vw - 32px));
    }

    .wtmg-provider-account-profile-banner .wtmg-provider-account-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .wtmg-provider-account-logo-editor,
    .wtmg-provider-account-profile-card .wtmg-provider-account-field-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-logo-upload {
        width: 150px;
        height: 150px;
    }

    .wtmg-provider-account-notice {
        width: min(100%, calc(100vw - 32px));
    }

    .wtmg-provider-account-save-bar {
        justify-content: stretch;
    }

    .wtmg-provider-account-save-bar .wtmg-provider-account-button {
        width: 100%;
    }
}

/* Provider services management */
.wtmg-provider-account-services-card {
    padding: 30px;
}

.wtmg-provider-account-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wtmg-provider-account-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wtmg-provider-account-service-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    position: relative;
    min-height: 172px;
    border: 1px solid rgba(223, 231, 240, 0.95);
    border-radius: 17px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 68, 0.04);
}

.wtmg-provider-account-location-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 142px;
    border: 1px solid rgba(223, 231, 240, 0.95);
    border-radius: 17px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 35, 68, 0.04);
}

.wtmg-provider-account-location-card h3 {
    margin: 0 0 6px;
    color: var(--wtmg-account-text);
    font-size: 17px;
    line-height: 1.25;
}

.wtmg-provider-account-location-card p {
    color: var(--wtmg-account-muted);
    font-size: 14px;
    line-height: 1.45;
}

.wtmg-provider-account-service-icon {
    display: inline-flex;
	width: 45px;
    height: 45px;
    border-radius: 10px;
    margin-left: 10px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
}

.wtmg-provider-account-service-icon svg {
    width: 21px;
    height: 21px;
}

.wtmg-provider-account-service-card h3 {
    margin: 10px 0px 4px;
    color: var(--wtmg-account-text);
    font-size: 17px;
    line-height: 1.25;
}

.wtmg-provider-account-service-card p {
    color: var(--wtmg-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.wtmg-provider-account-service-action {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 6px;
}

.wtmg-provider-account-service-action button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 10px;
    padding: 0 14px;
    background: #fff5f5;
    color: #991b1b;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.wtmg-provider-account-service-action button:hover,
.wtmg-provider-account-service-action button:focus {
    background: #fee2e2;
}

.wtmg-provider-account-service-action button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wtmg-provider-account-services-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px dashed rgba(31, 79, 153, 0.22);
    border-radius: 18px;
    padding: 34px 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    text-align: center;
}

.wtmg-provider-account-services-empty h3 {
    margin: 6px 0 0;
    color: var(--wtmg-account-text);
    font-size: 19px;
}

.wtmg-provider-account-add-service {
    background: linear-gradient(135deg, #ffffff 0%, #effaf2 100%);
}

.wtmg-provider-account-add-service-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.wtmg-provider-account-add-location-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.wtmg-provider-account-add-service-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.wtmg-provider-account-add-service-form label span {
    color: var(--wtmg-account-muted);
    font-size: 13px;
    font-weight: 900;
}

.wtmg-provider-account-add-service-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--wtmg-account-border);
    border-radius: 11px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--wtmg-account-text);
    font-size: 14px;
    font-weight: 750;
}

.wtmg-provider-account-add-service-form select:disabled,
.wtmg-provider-account-add-service-form button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .wtmg-provider-account-service-grid,
    .wtmg-provider-account-location-grid,
    .wtmg-provider-account-add-service-form {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-add-service-form .wtmg-provider-account-button {
        width: 100%;
    }
}

/* Provider claim flow */
.wtmg-provider-claim-page {
    display: grid;
    justify-items: center;
}

.wtmg-provider-claim-card {
    width: min(820px, 100%);
}

.wtmg-provider-claim-provider {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(31, 79, 153, 0.14);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.wtmg-provider-claim-provider > span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue);
}

.wtmg-provider-claim-provider svg {
    width: 20px;
    height: 20px;
}

.wtmg-provider-claim-provider strong {
    display: block;
    color: var(--wtmg-account-text);
    font-size: 17px;
    line-height: 1.3;
}

.wtmg-provider-claim-form {
    display: grid;
    gap: 14px;
}

/* Provider leads foundation */
.wtmg-provider-account-leads-card {
    padding: 28px;
}

.wtmg-provider-account-leads-table-wrap {
    overflow-x: auto;
}

.wtmg-provider-account-leads-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.wtmg-provider-account-leads-table th,
.wtmg-provider-account-leads-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--wtmg-account-border);
    text-align: left;
    vertical-align: top;
}

.wtmg-provider-account-leads-table th {
    color: var(--wtmg-account-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wtmg-provider-account-leads-table td {
    color: var(--wtmg-account-text);
    font-size: 14px;
    font-weight: 700;
}

.wtmg-provider-account-leads-table td span {
    display: block;
    margin-top: 4px;
    color: var(--wtmg-account-muted);
    font-size: 13px;
    font-weight: 600;
}

.wtmg-provider-account-lead-status {
    display: inline-flex !important;
    width: auto;
    margin: 0 !important;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* Provider leads management UI */
.wtmg-provider-account-back-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--wtmg-account-blue);
    font-size: 14px;
    font-weight: 800;
}

.wtmg-provider-account-lead-card-list {
    display: grid;
    gap: 16px;
}

.wtmg-provider-account-lead-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(280px, 1.4fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--wtmg-account-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 35, 68, 0.045);
}

.wtmg-provider-account-lead-card-main {
    display: flex;
    gap: 14px;
    align-items: center;
}

.wtmg-provider-account-lead-avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--wtmg-account-green-soft);
    color: var(--wtmg-account-green);
}

.wtmg-provider-account-lead-avatar svg {
    width: 22px;
    height: 22px;
}

.wtmg-provider-account-lead-label,
.wtmg-provider-account-lead-card-meta span,
.wtmg-provider-account-lead-info-grid span,
.wtmg-provider-account-lead-message span {
    display: block;
    color: var(--wtmg-account-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wtmg-provider-account-lead-card h3 {
    margin: 3px 0 4px;
    color: var(--wtmg-account-text);
    font-size: 18px;
    line-height: 1.25;
}

.wtmg-provider-account-lead-card p {
    margin: 0;
    color: var(--wtmg-account-muted);
    font-size: 14px;
    font-weight: 700;
}

.wtmg-provider-account-lead-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wtmg-provider-account-lead-card-meta strong,
.wtmg-provider-account-lead-info-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--wtmg-account-text);
    font-size: 14px;
    line-height: 1.4;
}

.wtmg-provider-account-lead-card-side {
    display: grid;
    gap: 0;
    justify-items: end;
}

.wtmg-provider-account-lead-status {
    display: inline-flex !important;
    width: auto;
    margin: 0 !important;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--wtmg-account-blue-soft);
    color: var(--wtmg-account-blue) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1;
}

.wtmg-provider-account-lead-detail-grid {
    display: grid;
    gap: 18px;
}

.wtmg-provider-account-lead-detail-card,
.wtmg-provider-account-lead-actions-card {
    padding: 28px;
}

.wtmg-provider-account-lead-detail-card h2,
.wtmg-provider-account-lead-actions-card h2 {
    margin: 0 0 14px;
    color: var(--wtmg-account-text);
    font-size: 22px;
}

.wtmg-provider-account-lead-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
	padding: 15px;
}

.wtmg-provider-account-lead-info-grid div,
.wtmg-provider-account-lead-message {
    padding: 16px;
    border: 1px solid var(--wtmg-account-border);
    border-radius: 14px;
    background: var(--wtmg-account-soft);
}

.wtmg-provider-account-lead-message {
    margin-top: 16px;
}

.wtmg-provider-account-lead-message p {
    margin: 8px 0 0;
    color: var(--wtmg-account-text);
    font-size: 15px;
    line-height: 1.7;
}

.wtmg-provider-account-lead-actions-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--wtmg-account-green-soft) 100%);
}

.wtmg-provider-account-lead-actions-card p {
    margin: 0 0 18px;
    color: var(--wtmg-account-muted);
}

.wtmg-provider-account-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 980px) {
    .wtmg-provider-account-lead-card {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-account-lead-card-side {
        justify-items: start;
    }

    .wtmg-provider-account-lead-card-meta,
    .wtmg-provider-account-lead-info-grid {
        grid-template-columns: 1fr;
    }
}

/* WTMG Provider Dashboard Premium UI Override */

.wtmg-provider-account-main {
    gap: 15px !important;
}

.wtmg-provider-account-welcome {
    position: relative;
    min-height: 220px;
    padding: 42px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #f7fbff 0%, #eef8f2 100%);
    border: 1px solid #e5edf5;
    overflow: hidden;
}

.wtmg-provider-account-welcome:after {
    content: "";
    position: absolute;
    right: 40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
}

.wtmg-provider-account-welcome h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}

.wtmg-provider-account-kicker {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px !important;
}

.wtmg-provider-account-summary {
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #e5edf5;
    background: #fff;
}

.wtmg-provider-account-summary h2 {
    font-size: 26px;
    font-weight: 800;
}

.wtmg-provider-account-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
}

.wtmg-provider-account-stats {
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.wtmg-provider-account-stats article {
    min-height: 150px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #e5edf5;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wtmg-provider-account-stats article:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

.wtmg-provider-account-stats h3 {
    font-size: 15px;
    color: #334155;
}

.wtmg-provider-account-stats strong {
    color: #64748b;
    font-size: 14px;
}

.wtmg-provider-account-activity {
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #e5edf5;
    background: #fff;
}


/* Dashboard V2 Layout Fix */

.wtmg-provider-account-welcome {
    display: grid;
    grid-template-columns: minmax(0,1fr) 280px;
    align-items: center;
    gap: 40px;
}

.wtmg-provider-account-welcome .wtmg-provider-account-status {
    position: absolute;
    right: 40px;
    top: 40px;
}


.wtmg-profile-progress {
    background: rgba(255,255,255,.75);
    border:1px solid #e5edf5;
    border-radius:20px;
    padding:20px;
}

.wtmg-profile-progress strong {
    font-size:28px;
    color:#16345d;
}

.wtmg-profile-progress span {
    display:block;
    font-size:14px;
    color:#64748b;
    margin-bottom:12px;
}

.wtmg-progress-bar {
    height:8px;
    background:#e5edf5;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:15px;
}

.wtmg-progress-bar i {
    display:block;
    height:100%;
    background:#2563eb;
}

.wtmg-profile-progress ul {
    list-style:none;
    padding:0;
    margin:0;
    font-size:13px;
    line-height:1.8;
}


.wtmg-provider-account-button {
	display: inline-flex;
    margin-top: 12px;
    margin-bottom: 12px;
    margin-right: 12px;
    border-radius: 12px;
    font-weight: 500;
    padding: 12px 22px;
    text-decoration: none;
}


.wtmg-provider-account-button-primary {
    background:#2457a6;
    color:#fff;
}


.wtmg-provider-account-stats {
    grid-template-columns:repeat(4,minmax(0,1fr));
}


.wtmg-provider-account-stats article strong {
    font-size:19px;
    color:#16345d;
}


.wtmg-provider-account-dashboard-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}


.wtmg-provider-account-dashboard-grid .wtmg-provider-account-card {
    padding:28px;
    border-radius:22px;
    border:1px solid #e5edf5;
    background:#fff;
}


.wtmg-provider-account-dashboard-grid h2,
.wtmg-provider-account-card h2 {
    font-size:20px;
    margin-bottom:0;
}


.wtmg-provider-account-summary {
    border:none;
    padding:0;
}


.wtmg-provider-account-summary .wtmg-provider-account-logo {
    width:90px;
    height:90px;
}


@media(max-width:900px){

    .wtmg-provider-account-welcome {
        grid-template-columns:1fr;
    }

    .wtmg-provider-account-stats {
        grid-template-columns:1fr 1fr;
    }

    .wtmg-provider-account-dashboard-grid {
        grid-template-columns:1fr;
    }

}


/* Dashboard polish */

.wtmg-provider-account-button-primary {
    background:#2457a6 !important;
    color:#ffffff !important;
    border:none !important;
}

.wtmg-provider-account-button-primary:hover {
    background:#16447f !important;
    color:#ffffff !important;
}


.wtmg-provider-account-dashboard-grid > .wtmg-provider-account-card {
    min-height:220px;
}


.wtmg-provider-account-dashboard-grid a {
    display:inline-flex;
    margin-top:18px;
    padding:10px 18px;
    border-radius:10px;
    background:#2457a6;
    color:white;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}


.wtmg-provider-account-dashboard-grid a:hover {
    color:white;
}


.wtmg-provider-account-dashboard-grid p {
    margin-bottom:10px;
}


.wtmg-provider-account-card:last-child {
    padding:20px;
}



/* Provider Profile Editor V2 */

.wtmg-provider-account-editor-head {
    border-radius:10px;
    padding:24px;
    background:linear-gradient(135deg,#f7fbff 0%,#eef8f2 100%);
    border:1px solid #e5edf5;
}


.wtmg-provider-account-editor-head h1 {
    font-size:42px;
    font-weight:800;
}


.wtmg-provider-account-profile-editor {
    display:grid;
    gap:12px;
}


.wtmg-provider-account-profile-card {
    border-radius:24px;
    border:1px solid #e5edf5;
    background:#fff;
    padding:32px;
}


.wtmg-provider-account-card-head {
    margin-bottom:0;
	padding: 15px;
}


.wtmg-provider-account-card-head h2 {
    font-size:24px;
    font-weight:800;
}


.wtmg-provider-account-card-head p {
    color:#64748b;
}


.wtmg-provider-account-logo-editor {
    display:flex;
    align-items:center;
    gap:24px;
    padding:20px;
    border-radius:20px;
    background:#f8fafc;
    border:1px solid #e5edf5;
    margin-bottom:24px;
}


.wtmg-provider-account-logo-upload {
    width:100px;
    height:100px;
    border-radius:24px;
    overflow:hidden;
    background:#eef4ff;
}


.wtmg-provider-account-logo-upload img {
    width:100%;
    height:100%;
    object-fit:contain;
}


.wtmg-provider-account-field-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}


.wtmg-provider-account-contact-list {
    display:grid;
    gap:18px;
}


.wtmg-provider-account-field,
.wtmg-provider-account-form-field {
    border:1px solid #e5edf5;
    border-radius:16px;
    padding:16px;
    background:#fff;
}


.wtmg-provider-account-status-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}


.wtmg-provider-account-status-grid > * {
    border-radius:18px;
    padding:20px;
    background:#f8fafc;
    border:1px solid #e5edf5;
}


.wtmg-provider-account-chip-layout {
    display:grid;
    gap:20px;
}


.wtmg-provider-account-preview {
    background:linear-gradient(135deg,#f7fbff,#eef8f2);
}


.wtmg-provider-account-save-bar {
    position:sticky;
    bottom:20px;
    display:flex;
    justify-content:flex-end;
    padding:20px;
    background:rgba(255,255,255,.9);
    border-radius:20px;
    backdrop-filter:blur(10px);
}


@media(max-width:900px){

.wtmg-provider-account-field-grid,
.wtmg-provider-account-status-grid {
    grid-template-columns:1fr;
}

.wtmg-provider-account-logo-editor {
    flex-direction:column;
    align-items:flex-start;
}

}


/* Profile editor width fix */

.wtmg-provider-account-editor-head,
.wtmg-provider-account-profile-editor,
.wtmg-provider-account-profile-editor ~ * {
    max-width: none;
}


.wtmg-provider-account-main {
    width:100%;
}


.wtmg-provider-account-profile-editor {
    width:100%;
}


.wtmg-provider-account-profile-card {
    width:100%;
}


.wtmg-provider-account-field-grid {
    grid-template-columns:repeat(2,minmax(300px,1fr));
}


.wtmg-provider-account-field-grid .wtmg-provider-account-field,
.wtmg-provider-account-field-grid .wtmg-provider-account-form-field {
    min-height:90px;
}


.wtmg-provider-account-form-field input,
.wtmg-provider-account-form-field textarea {
    font-size:15px;
    padding:12px 14px;
}


.wtmg-provider-account-save-bar {
    bottom:0;
}


@media(max-width:1100px){

.wtmg-provider-account-field-grid {
    grid-template-columns:1fr;
}

}


/* Provider profile editor width expansion */

.wtmg-account-page > .wtmg-provider-account-editor-head,
.wtmg-account-page > .wtmg-provider-account-editor {
    width: min(1400px, calc(100vw - 60px));
}


.wtmg-provider-account-editor {
    grid-template-columns:1fr;
}


.wtmg-provider-account-editor .wtmg-provider-account-card {
    width:100%;
}


.wtmg-provider-account-editor-head {
    width:100%;
}


.wtmg-provider-account-editor .wtmg-provider-account-card label {
    font-size:14px;
	background: #f0f6ff;
}


.wtmg-provider-account-editor .wtmg-provider-account-card input,
.wtmg-provider-account-editor .wtmg-provider-account-card textarea {
    width:60%;
}



/* Profile editor compact layout */

.wtmg-provider-account-editor .wtmg-provider-account-card {
    padding:26px;
}


.wtmg-provider-account-editor label {
    min-height:0;
}


.wtmg-provider-account-editor label input,
.wtmg-provider-account-editor label textarea {
    min-height:17px;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(2) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(2) > * {
    width:100%;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(3) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(3) h2,
.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(3) p {
    grid-column:1/-1;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(4) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}


.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(4) h2,
.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(4) p {
    grid-column:1/-1;
}


.wtmg-provider-account-save-bar {
    position:relative;
    margin-top:20px;
}


@media(max-width:900px){

.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(2),
.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(3),
.wtmg-provider-account-editor > .wtmg-provider-account-card:nth-child(4){
    grid-template-columns:1fr;
}

}


/* Provider Services V2 refinement */

.wtmg-provider-account-services-card {
    border-radius:24px;
    border:1px solid #e5edf5;
    background:#fff;
}


.wtmg-provider-account-service-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}


.wtmg-provider-account-service-card {
    min-height:190px;
    border-radius:10px;
    padding:24px;
    transition:all .2s ease;
}


.wtmg-provider-account-service-card:hover {
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(15,23,42,.08);
}


.wtmg-provider-account-service-card h3 {
    font-size:18px;
}


.wtmg-provider-account-service-card p {
    font-size:14px;
}


.wtmg-provider-account-add-service {
    border-radius:24px;
    border:1px solid #dbeafe;
}


.wtmg-provider-account-add-service-form select {
    min-height:46px;
    border-radius:12px;
}


.wtmg-provider-account-add-service-form button {
    min-height:46px;
}


@media(max-width:1100px){

.wtmg-provider-account-service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
}

}


@media(max-width:700px){

.wtmg-provider-account-service-grid {
    grid-template-columns:1fr;
}

}


.wtmg-provider-account-service-card {
    min-height:150px;
}

.wtmg-provider-account-service-action {
    margin:15px;
}


.wtmg-provider-account-add-service-form .wtmg-provider-account-button-secondary {
    background:#2457a6;
    color:#fff;
    border-color:#2457a6;
}

.wtmg-provider-account-add-service-form .wtmg-provider-account-button-secondary:hover {
    background:#16447f;
    color:#fff;
}


/* Provider Locations V2 refinement */

.wtmg-provider-account-location-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}


.wtmg-provider-account-location-card {
    min-height:150px;
    border-radius:22px;
    padding:24px;
    transition:all .2s ease;
}


.wtmg-provider-account-location-card:hover {
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(15,23,42,.08);
}


.wtmg-provider-account-location-card h3 {
    font-size:18px;
    font-weight:800;
	padding: 16px 0px 0px 7px;
}


.wtmg-provider-account-location-card p {
    font-size:14px;
	padding: 0px 0px 0px 7px;
}


.wtmg-provider-account-location-card .wtmg-provider-account-service-icon {
    width:54px;
    height:54px;
    border-radius:16px;
}


@media(max-width:900px){

.wtmg-provider-account-location-grid {
    grid-template-columns:1fr;
}

}


/* Provider Leads V2 refinement */

.wtmg-provider-account-lead-card {
    padding: 22px;
    border-radius: 15px;
    gap: 24px;
}


.wtmg-provider-account-lead-card-main {
    min-width: 220px;
	padding-left: 12px;
}


.wtmg-provider-account-lead-card-meta {
    gap: 22px;
}

.wtmg-provider-account-lead-status {
    background: var(--wtmg-account-blue-soft);
}


.wtmg-provider-account-lead-card .wtmg-provider-account-button {
    white-space: nowrap;
}


@media(max-width:980px){

.wtmg-provider-account-lead-card-meta {
    grid-template-columns: repeat(3,1fr);
}

}


/* Provider Leads final spacing refinement */

.wtmg-provider-account-lead-card {
    grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.3fr) auto;
}

.wtmg-provider-account-lead-card-meta strong {
    max-width: 150px;
}

.wtmg-provider-account-lead-card-side {
    position: relative;
    padding-top: 18px;
}

.wtmg-provider-account-lead-card-side .wtmg-provider-account-lead-status {
    position: absolute;
    top: -8px;
    right: 0;
}

.wtmg-provider-account-lead-card-main h3 {
    font-size: 17px;
}

@media(max-width:980px){

.wtmg-provider-account-lead-card-side {
    padding-top:0;
}

.wtmg-provider-account-lead-card-side .wtmg-provider-account-lead-status {
    position:static;
}

}


/* Provider Leads final polish */

.wtmg-provider-account-lead-card {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr) auto;
    padding: 20px;
}

.wtmg-provider-account-lead-card-meta {
    gap: 20px;
}

.wtmg-provider-account-lead-card-meta strong {
    max-width: 180px;
    word-break: normal;
	font-weight: 300;
}

.wtmg-provider-account-lead-card-side {
    min-width: 130px;
}

@media(max-width:980px){
    .wtmg-provider-account-lead-card {
        grid-template-columns:1fr;
    }

    .wtmg-provider-account-lead-card-side {
        min-width:0;
    }
}


/* Provider Subscription UI */

.wtmg-provider-subscription-current {
    padding: 28px;
    margin-bottom: 0px;
    background: linear-gradient(135deg, #ffffff 0%, #effaf2 100%);
}

.wtmg-provider-subscription-current h2 {
    margin: 0 0 12px;
    color: var(--wtmg-account-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wtmg-provider-subscription-current h3 {
    margin: 0 0 8px;
    color: var(--wtmg-account-text);
    font-size: 28px;
}

.wtmg-provider-subscription-current strong {
    color: var(--wtmg-account-blue);
    font-size: 18px;
}


.wtmg-provider-subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


.wtmg-provider-subscription-grid .wtmg-provider-account-card {
    padding: 26px;
    min-height: 260px;
}


.wtmg-provider-subscription-grid h2 {
    margin: 0 0 14px;
    color: var(--wtmg-account-text);
    font-size: 22px;
}


.wtmg-provider-subscription-grid h3 {
    margin: 0 0 20px;
    color: var(--wtmg-account-blue);
    font-size: 26px;
}


.wtmg-provider-subscription-grid ul {
    margin: 0;
    padding-left: 20px;
    color: var(--wtmg-account-muted);
    line-height: 1.8;
}


.wtmg-provider-subscription-grid .is-current {
    border-color: rgba(22,138,53,.35);
    box-shadow: 0 14px 32px rgba(22,138,53,.12);
}


@media(max-width:980px){

    .wtmg-provider-subscription-grid {
        grid-template-columns:1fr;
    }

}


.wtmg-provider-account-recent-lead {
    padding: 12px 0;
    border-bottom: 1px solid var(--wtmg-account-border);
}

.wtmg-provider-account-recent-lead:last-child {
    border-bottom: 0;
}

.wtmg-provider-account-recent-lead strong {
    display: block;
    color: var(--wtmg-account-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.wtmg-provider-account-recent-lead span {
    display: block;
    color: var(--wtmg-account-muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wtmg-provider-account-recent-lead small {
    color: var(--wtmg-account-blue);
    font-size: 12px;
    font-weight: 800;
}

/* Dashboard layout rebuild - reference alignment */

.wtmg-account-page.wtmg-provider-account {
    padding: 24px 32px;
}

.wtmg-account-page > .wtmg-provider-account-shell {
    width: min(1360px, calc(100vw - 64px));
}

.wtmg-provider-account-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 12px;
}

.wtmg-provider-account-sidebar {
    padding: 28px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    box-shadow: 0 12px 30px rgba(15,35,68,.04);
}

.wtmg-provider-account-sidebar nav {
    gap: 6px;
}

.wtmg-provider-account-sidebar nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
	text-decoration: none;
}

.wtmg-provider-account-sidebar nav a:first-child,
.wtmg-provider-account-sidebar nav a.is-active {
    background: #eaf7ef;
    color: #168a35;
}

.wtmg-provider-account-main {
    gap: 0px;
}

.wtmg-provider-account-welcome {
    min-height: 300px;
    padding: 42px;
    border-radius: 22px;
}

.wtmg-provider-account-welcome h1 {
    font-size: 44px;
    line-height: 1.08;
}

.wtmg-provider-account-stats {
    gap: 20px;
}



/* Dashboard lower cards - reference 3 column layout */

.wtmg-provider-account-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.wtmg-provider-account-dashboard-grid .wtmg-provider-account-card {
    min-height: 290px;
}

@media(max-width:1100px){
    .wtmg-provider-account-dashboard-grid {
        grid-template-columns:1fr;
    }
}


/* Recent leads reference layout */

.wtmg-provider-account-recent-lead {
    position:relative;
    padding:18px 0;
    min-height:90px;
}

.wtmg-provider-account-recent-lead strong {
    font-size:16px;
    margin-bottom:6px;
}

.wtmg-provider-account-recent-lead span {
    font-size:13px;
    margin-bottom:10px;
}

.wtmg-provider-account-recent-lead small {
    display:block;
    font-size:12px;
}

.wtmg-provider-account-recent-lead .wtmg-provider-account-button {
    position:absolute;
    right:0;
    bottom:18px;
    padding:9px 18px;
    font-size:13px;
}


/* Verification badge - dashboard hero */
.wtmg-provider-verification-badge {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0 0 14px;
    padding:8px 14px;
    border-radius:999px;
    background:#fff7df;
    color:#b7791f;
    border:1px solid #f5d98b;
    font-size:13px;
    font-weight:700;
}

.wtmg-provider-verification-badge svg {
    width:16px;
    height:16px;
}

.wtmg-provider-account-welcome .wtmg-provider-verification-badge {
    order:2;
}



.wtmg-provider-account-sidebar nav a {
    display:flex;
    align-items:center;
    gap:12px;
}

.wtmg-sidebar-icon {
    display:inline-flex;
    width:20px;
    height:20px;
}

.wtmg-sidebar-icon svg {
    width:18px;
    height:18px;
}

.wtmg-sidebar-help {
    margin-top:28px;
    padding:18px;
    border:1px solid #dfe8f3;
    border-radius:16px;
    background:#fff;
}

.wtmg-sidebar-help strong {
    display:block;
    margin-bottom:8px;
}

.wtmg-sidebar-help p {
    font-size:13px;
    line-height:1.5;
    color:#64748b;
}

.wtmg-sidebar-help a {
    display:inline-block;
    margin-top:10px;
    padding:8px 16px;
    border:1px solid #2563eb;
    border-radius:10px;
    color:#2563eb;
    font-weight:700;
    font-size:13px;
}



/* reference dashboard sizing */
.wtmg-provider-account-welcome {
    min-height: 285px;
    padding: 42px 46px;
}

.wtmg-profile-progress {
    min-width:260px;
    padding:24px;
}

/* final reference alignment */

.wtmg-provider-account-shell {
    grid-template-columns: 285px minmax(0,1fr);
    gap: 12px;
}

.wtmg-provider-account-sidebar {
    padding: 28px;
}

.wtmg-provider-account-sidebar nav a {
    padding: 13px 14px;
    font-size:15px;
}

.wtmg-provider-account-welcome {
    min-height: 300px;
    padding: 42px 48px;
}

.wtmg-provider-account-welcome h1 {
    font-size:44px;
    line-height:1.05;
    letter-spacing:-1px;
}

.wtmg-provider-verification-badge {
    margin-top:12px;
    margin-bottom:12px;
}

.wtmg-profile-progress {
    width:260px;
    min-width:260px;
    padding:26px;
}

.wtmg-provider-account-stats {
    gap:20px;
}

.wtmg-provider-account-stats .wtmg-provider-account-card {
    min-height:140px;
    padding:26px;
	background: #eaf7ef;
	border-radius: 20px;
}

.wtmg-provider-account-dashboard-grid {
    gap:20px;
}

.wtmg-provider-account-dashboard-grid .wtmg-provider-account-card {
    min-height:260px;
    padding:32px;
}

.wtmg-provider-account-recent-lead a,
.wtmg-provider-account-recent-lead .wtmg-provider-account-button {
    padding: 10px 10px 10px;
    border-radius:10px;
    font-size:13px;
}



/* Dashboard card icons */
.wtmg-provider-account-dashboard-grid h2,
.wtmg-provider-account-card h2 {
    display: flex;
  align-items: start;
  gap: 10px;
  padding: 13px;
    padding-left: 13px;
  padding-left: 0;
	font-size: 20px;
}

.wtmg-provider-account-dashboard-grid h2 svg,
.wtmg-provider-account-card h2 svg {
    width:20px;
    height:20px;
    color:#2563eb;
}


/* Verification Center */
.wtmg-verification-status-list {
    list-style:none;
    padding:0;
    margin:20px 0;
}

.wtmg-verification-status-list li {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    font-size:14px;
}

.wtmg-verification-status-list span {
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wtmg-verification-status-list em {
    margin-left:auto;
    font-style:normal;
    font-size:13px;
    font-weight:700;
}

.wtmg-verification-status-list .verified span,
.wtmg-verification-status-list .verified em {
    color:#16a34a;
}

.wtmg-verification-status-list .pending span,
.wtmg-verification-status-list .pending em {
    color:#d97706;
}

.wtmg-verification-status-list .not-started span,
.wtmg-verification-status-list .not-started em {
    color:#64748b;
}

/* Subscription banner */
.wtmg-subscription-banner {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.wtmg-subscription-features {
    display:flex;
    align-items:center;
    gap:30px;
    font-size:13px;
}

.wtmg-subscription-features span {
    color:#475569;
}


/* stat cards */
.wtmg-provider-account-stats article {
    position:relative;
}
.wtmg-card-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    color:#2563eb;
}

.wtmg-card-icon svg {
    width:20px;
    height:20px;
}

.wtmg-provider-account-stats h3 {
display: flex;
  align-items: center;
  gap: 0px;
  margin-top: 0px;
}



/* Verification Center Page */

.wtmg-verification-center-list {
    display:grid;
    gap:16px;
    margin:30px 0;
}


.wtmg-verification-item {
    display:flex;
    align-items:center;
    gap:16px;
    padding:18px 20px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#fff;
}


.wtmg-verification-item > span {
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:800;
}


.wtmg-verification-item strong {
    display:block;
    font-size:15px;
}


.wtmg-verification-item small {
    display:block;
    margin-top:3px;
    font-size:13px;
}

/* Verification Center Layout */

.wtmg-verification-page {
    max-width:none !important;
}


.wtmg-verification-page .wtmg-provider-account-card {
    max-width:1180px;
    margin:40px auto;
}


.wtmg-verification-center-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}


.wtmg-verification-item {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    border:1px solid #e2e8f0;
    border-radius:14px;
}


.wtmg-verification-item > span {
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:800;
}


.wtmg-verification-item div {
    flex:1;
    margin-left:14px;
}


.wtmg-verification-item small {
    float:right;
    font-weight:700;
}


.wtmg-verification-item.verified > span {
    background:#dcfce7;
    color:#16a34a;
}


.wtmg-verification-item.verified small {
    color:#16a34a;
}


.wtmg-verification-item.pending > span {
    background:#fef3c7;
    color:#d97706;
}


.wtmg-verification-item.pending small {
    color:#d97706;
}


.wtmg-verification-item.not-started > span {
    background:#f1f5f9;
    color:#64748b;
}


.wtmg-verification-item.not-started small {
    color:#64748b;
}


@media(max-width:800px){

}


/* Verification Center refinements */

.wtmg-verification-page .wtmg-provider-account-card {
    width:100%;
    max-width:none;
    margin:0;
}

.wtmg-verification-center-list {
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.wtmg-verification-item {
    min-height:84px;
    box-sizing:border-box;
}

.wtmg-verification-item div {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.wtmg-verification-item small {
    float:none;
    white-space:nowrap;
}

@media(max-width:800px){
    .wtmg-verification-center-list {
        grid-template-columns:1fr;
    }

    .wtmg-verification-item div {
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
    }
}


.wtmg-provider-account-card-title-icon {
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eff6ff;
    color:#2563eb;
    border-radius:12px;
    margin-bottom:18px;
}

.wtmg-provider-account-card-title-icon svg {
    width:22px;
    height:22px;
}


.wtmg-verification-row {
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
}

.wtmg-verification-row span {
    font-weight:800;
}

.wtmg-verification-row small {
    margin-left:auto;
    font-weight:700;
}

.wtmg-verification-row.verified span,
.wtmg-verification-row.verified small {
    color:#16a34a;
}

.wtmg-verification-row.pending span,
.wtmg-verification-row.pending small {
    color:#d97706;
}

.wtmg-verification-row.not-started span,
.wtmg-verification-row.not-started small {
    color:#64748b;
}


.wtmg-profile-score-low {
    color:#dc2626;
}

.wtmg-profile-score-medium {
    color:#d97706;
}

.wtmg-profile-score-high {
    color:#16a34a;
}


/* Verification Document Upload */

.wtmg-verification-document-box {
    margin:28px 0 22px;
    padding:20px 24px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#ffffff;
}

.wtmg-verification-document-box strong {
    display:block;
    font-size:16px;
    color:#14213d;
    margin-bottom:8px;
}

.wtmg-verification-document-box p {
    margin:0 0 8px;
    color:#64748b;
}

.wtmg-verification-document-box a {
    display:inline-block;
    margin-right:12px;
    color:#2563eb;
    font-weight:600;
}

.wtmg-verification-document-box small {
    color:#64748b;
    font-weight:600;
}


.wtmg-verification-upload-form {
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:20px;
}


.wtmg-verification-upload-form input[type="file"] {
    padding:10px;
    border:1px solid #dbe3ef;
    border-radius:10px;
    background:#fff;
    max-width:320px;
}


@media(max-width:700px){

    .wtmg-verification-upload-form {
        flex-direction:column;
        align-items:flex-start;
    }

}


.wtmg-file-upload-button {
    position:relative;
    overflow:hidden;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 20px;
    background:#2563eb;
    color:#fff;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.wtmg-file-upload-button input[type="file"] {
    position:absolute;
    left:-9999px;
    opacity:0;
}

.wtmg-selected-file {
    margin-left:12px;
    color:#64748b;
    font-weight:600;
}


.wtmg-verification-document-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
}

.wtmg-verification-document-row:last-child {
    border-bottom:none;
}

.wtmg-verification-document-row > div {
    display:flex;
    flex-direction:column;
    gap:4px;
}

.wtmg-verification-document-row strong {
    font-size:15px;
    color:#14213d;
    font-weight:600;
}

.wtmg-verification-document-row small {
    color:#64748b;
    font-size:13px;
}

.wtmg-verification-document-row a {
    display:flex;
    align-items:center;
    gap:6px;
    color:#2563eb;
    font-weight:600;
    text-decoration:none;
}

.wtmg-verification-document-row a:before {
    content:"🔍";
    font-size:14px;
}


@media(max-width:700px){

    .wtmg-verification-document-row {
        flex-direction:column;
        align-items:flex-start;
    }

}


.wtmg-selected-file {
    color:#64748b;
    font-weight:600;
    max-width:260px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.wtmg-file-upload-button input[type="file"] {
    display:none;
}

.wtmg-file-upload-button {
    cursor:pointer;
}


.wtmg-verification-view-icon {
    display:inline-block;
    width:16px;
    height:16px;
    margin-left:8px;
    position:relative;
    vertical-align:middle;
}

.wtmg-verification-view-icon:before {
    content:"";
    position:absolute;
    width:9px;
    height:9px;
    border:2px solid #64748b;
    border-radius:50%;
    top:0;
    left:0;
}

.wtmg-verification-view-icon:after {
    content:"";
    position:absolute;
    width:7px;
    height:2px;
    background:#64748b;
    transform:rotate(45deg);
    top:10px;
    left:10px;
}


.wtmg-verification-view-icon:before,
.wtmg-verification-view-icon:after {
    display:none;
}


.wtmg-verification-document-link {
    color:#2563eb;
    font-weight:600;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.wtmg-verification-document-link:before {
    content:"🔍";
    font-size:14px;
}


.wtmg-verification-view-link {
    display:inline-flex;
    width:18px;
    height:18px;
    margin-left:8px;
    vertical-align:middle;
    text-decoration:none;
}

.wtmg-verification-item.pending_review > span {
    font-size:24px;
    line-height:1;
}


.wtmg-verification-rejected-box {
    margin-top:20px;
    padding:16px;
    border:1px solid #f59e0b;
    border-radius:10px;
    background:#fffbeb;
}

.wtmg-verification-rejected-box strong {
    display:block;
    margin-bottom:8px;
    color:#92400e;
}

.wtmg-verification-rejected-box p {
    margin:0;
    color:#78350f;
}


.wtmg-verification-view-link {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    margin-left:8px;
    font-size:18px !important;
    line-height:1;
    text-decoration:none !important;
    opacity:1 !important;
    visibility:visible !important;
}


.wtmg-verification-item.rejected > span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:50%;
    background:#fee2e2;
    color:#dc2626;
    font-size:22px;
    font-weight:700;
}

.wtmg-verification-item.rejected small {
    color:#dc2626;
}

.wtmg-verification-item.rejected small a {
    color:#dc2626;
}


.wtmg-verification-item.pending_review > span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:50%;
    background:#fef3c7;
    color:#d97706;
    font-size:22px;
    font-weight:700;
}

.wtmg-verification-item.pending_review small {
    color:#d97706;
}

.wtmg-verification-item.pending_review small a {
    color:#d97706;
}


/* Provider Profile - Contact Information 2x2 Grid */

.wtmg-profile-contact-info {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:32px;
}

.wtmg-profile-contact-info .wtmg-profile-contact-item {
    width:100%;
}

@media (max-width: 768px) {

    .wtmg-profile-contact-info {
        grid-template-columns:1fr;
    }

}


.wtmg-provider-account-contact-list {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
}

@media (max-width:768px) {
    .wtmg-provider-account-contact-list {
        grid-template-columns:1fr;
    }
}


/* Profile Information Layout */

.wtmg-provider-account-profile-info .wtmg-provider-account-logo-editor {
    display:flex;
    width:100%;
    align-items:center;
    gap:32px;
    margin-bottom:24px;
}

.wtmg-provider-account-profile-info .wtmg-provider-account-logo-editor {
    width:50%;
    display:inline-flex;
}

.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid {
    width:50%;
    display:inline-grid;
    vertical-align:top;
    grid-template-columns:1fr;
}

/* Put logo and business name side by side */
.wtmg-provider-account-profile-info > .wtmg-provider-account-logo-editor,
.wtmg-provider-account-profile-info > .wtmg-provider-account-field-grid {
    float:left;
}

.wtmg-provider-account-profile-info > .wtmg-provider-account-field-grid {
    margin-left:24px;
}

/* Trading and Legal full width below */
.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid {
    clear:none;
}

@media(max-width:768px){

    .wtmg-provider-account-profile-info .wtmg-provider-account-logo-editor,
    .wtmg-provider-account-profile-info .wtmg-provider-account-field-grid {
        width:100%;
        margin-left:0;
        float:none;
    }

}


.wtmg-profile-top-layout {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-bottom:0px;
}

.wtmg-profile-bottom-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

@media(max-width:768px){

}


/* Profile top row alignment */

.wtmg-profile-top-layout {
    align-items:stretch;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor,
.wtmg-profile-top-layout > .wtmg-provider-account-edit-field,
.wtmg-profile-top-layout .wtmg-provider-account-profile-field {
    min-height:180px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    margin:0;
    padding:32px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-upload {
    flex-shrink:0;
}

/* keep bottom fields aligned */
.wtmg-profile-bottom-grid {
    margin-top:24px;
}


/* Fix provider logo top card */

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:15px;
    padding:32px;
    min-height:180px;
    box-sizing:border-box;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-upload {
    flex:0 0 150px;
    width:150px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:last-child {
    flex:1;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor p {
    margin:0;
    line-height:1.6;
}


/* Final logo card alignment */

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:40px;
    padding:32px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:first-child {
    flex:0 0 160px;
    width:160px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:last-child {
    flex:1;
    min-width:220px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor h3 {
    font-size:24px;
    line-height:1.3;
    margin-bottom:12px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor p {
    max-width:260px;
    font-size:18px;
    line-height:1.6;
}


/* Profile Information - Selected Layout */

.wtmg-profile-top-layout {
    display:grid;
    grid-template-columns: 320px 1fr;
    gap:32px;
    align-items:stretch;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding:32px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-upload {
    margin:0 auto 0px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor h3 {
    margin:0 0 12px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor p {
    margin:0;
    max-width:240px;
}

.wtmg-profile-top-layout > label {
    height:100%;
}

.wtmg-profile-bottom-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
    margin-top:24px;
}

.wtmg-profile-description {
    grid-column:1 / -1;
}

@media(max-width:768px){

    .wtmg-profile-top-layout,
    .wtmg-profile-bottom-grid {
        grid-template-columns:1fr;
    }

}


/* Profile Information final sizing */

.wtmg-profile-top-layout {
    grid-template-columns: 320px 1fr;
    align-items:start;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    min-height:220px;
    height:100%;
    justify-content:flex-start;
    padding:32px;
}

.wtmg-profile-top-layout > label {
    min-height:120px;
    height:auto;
}

.wtmg-profile-top-layout > label input {
    height:48px;
}

/* remove excessive empty height from business card */
.wtmg-profile-top-layout .wtmg-provider-account-edit-field {
    align-self:start;
	display: flex;
    width: 675px;
}


/* Profile Information layout fix */

.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:24px;
    margin-top:24px;
}

/* Keep description full width */
.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid 
.wtmg-provider-account-edit-field-wide {
    grid-column:1 / -1;
}

/* Business name should stay top right */
.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid > .wtmg-provider-account-edit-field:first-child {
    grid-column:2;
}

/* Move trading/legal below logo area */
.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid > .wtmg-provider-account-edit-field:nth-child(2),
.wtmg-provider-account-profile-info .wtmg-provider-account-field-grid > .wtmg-provider-account-edit-field:nth-child(3) {
    grid-row:auto;
}


@media(max-width:900px){
    .wtmg-provider-account-profile-info .wtmg-provider-account-field-grid {
        grid-template-columns:1fr;
    }

    .wtmg-provider-account-profile-info .wtmg-provider-account-field-grid > .wtmg-provider-account-edit-field:first-child {
        grid-column:auto;
    }
}


/* Profile top final alignment */

.wtmg-profile-top-layout {
    align-items:start;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    min-height:210px;
    height:210px;
    padding:28px;
    justify-content:center;
}

.wtmg-profile-top-layout > .wtmg-provider-account-edit-field {
    min-height:210px;
    height:210px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:first-child {
    width:140px;
    flex:0 0 140px;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:last-child h3 {
    font-size:22px;
	text-align: center;
}

.wtmg-profile-top-layout .wtmg-provider-account-logo-editor > div:last-child p {
    font-size:16px;
    line-height:1.5;
	text-align: center;
}


/* FINAL PROFILE INFORMATION LAYOUT */

.wtmg-provider-account-profile-info .wtmg-profile-top-layout {
    display:grid;
    grid-template-columns:320px 1fr;
    gap:12px;
    align-items:start;
}

.wtmg-provider-account-profile-info .wtmg-profile-top-layout .wtmg-provider-account-logo-editor {
    grid-row:1 / span 3;
    height:95%;
    min-height:420px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
	width: fit-content;
}

.wtmg-provider-account-profile-info .wtmg-profile-top-layout > label {
    width:100%;
}

.wtmg-profile-bottom-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:24px;
}

.wtmg-profile-bottom-grid .wtmg-profile-description {
    grid-column:1 / -1;
}

@media(max-width:900px){
    .wtmg-provider-account-profile-info .wtmg-profile-top-layout,
    .wtmg-profile-bottom-grid {
        grid-template-columns:1fr;
    }
}


/* Profile right stacked fields */

.wtmg-profile-right-stack {
    display:flex;
    flex-direction:column;
    gap:10px;
}

.wtmg-profile-description {
    margin-top:0px;
}


/* Profile right stacked fields */

.wtmg-profile-right-stack {
    display:flex;
    flex-direction:column;
    gap:24px;
}

.wtmg-provider-logo-upload-control {
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.wtmg-provider-logo-upload-button {
    width:max-content;
    padding:10px 22px;
    border-radius:8px;
    background:#2458a6;
    color:#fff;
    border:0;
    cursor:pointer;
	align-self: center;
}


/* Dashboard Pricing Widget */

.wtmg-dashboard-pricing-widget {
    padding:32px !important;
}


.wtmg-dashboard-pricing-widget > p {
    color:#64748b;
    margin-bottom:24px;
}


.wtmg-pricing-feature-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin:25px 0;
}


.wtmg-pricing-feature-grid > div {
    background:#f8fafc;
    border:1px solid #e5edf5;
    border-radius:16px;
    padding:18px;
}


.wtmg-pricing-feature-grid strong {
    display:block;
    font-size:15px;
    margin-bottom:8px;
    color:#1e293b;
}


.wtmg-pricing-feature-grid span {
    display:block;
    font-size:13px;
    color:#64748b;
    line-height:1.5;
}


.wtmg-growth-options {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    margin:25px 0;
}


.wtmg-growth-options > div {
    background:#f8fafc;
    border-radius:16px;
    border:1px solid #e5edf5;
    padding:20px;
}


.wtmg-growth-options h3 {
    font-size:17px;
    margin-bottom:10px;
}


.wtmg-growth-options p {
    color:#475569;
    margin-bottom:8px;
}


.wtmg-growth-options small {
    color:#64748b;
}


.wtmg-dashboard-pricing-widget .wtmg-provider-account-button-primary {
    display:inline-flex;
    margin-top:10px;
    padding:12px 24px;
    border-radius:12px;
    text-decoration:none;
}


@media(max-width:900px){

}


/* Pricing Dashboard V2 */

.wtmg-dashboard-pricing-widget {
    padding: 36px !important;
}

.wtmg-dashboard-pricing-widget h2 {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:28px;
    color:#12294f;
}


.wtmg-dashboard-pricing-widget > p {
    font-size:18px;
    color:#64748b;
    margin-bottom:32px;
}


/* Top benefit cards */

.wtmg-pricing-feature-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    margin-bottom:32px;
}


.wtmg-pricing-feature-grid > div {

    background:#ffffff;
    border:1px solid #dbe7f5;
    border-radius:22px;
    padding:28px;

    min-height:140px;

}


.wtmg-pricing-feature-grid strong {

    display:block;
    font-size:20px;
    color:#142c52;
    margin-bottom:12px;

}


.wtmg-pricing-feature-grid span {

    color:#60738f;
    font-size:16px;
    line-height:1.5;

}


/* Growth cards */

.wtmg-growth-options {

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:28px;
    margin-top:20px;

}


.wtmg-growth-options > div {

    border-radius:24px;
    padding:32px;

    background:#fbfdff;
    border:1px solid #dce8f5;

    min-height:200px;

}


.wtmg-growth-options h3 {

    font-size:24px;
    color:#1d355d;
    margin-bottom:14px;

}


.wtmg-growth-options p {

    font-size:17px;
    color:#526783;

}


.wtmg-growth-options small {

    display:block;
    margin-top:20px;
    color:#72849c;

}


/* CTA */

.wtmg-dashboard-pricing-widget 
.wtmg-provider-account-button-primary {

    margin-top:32px;

    padding:15px 34px;

    border-radius:14px;

    font-size:17px;
    font-weight:600;

    background:#2457a6 !important;

}


/* Mobile */

@media(max-width:900px){

    .wtmg-pricing-feature-grid,
    .wtmg-growth-options {

        grid-template-columns:1fr;

    }

}



/* ==================================================
   Provider Dashboard Pricing Widget - Premium Layout
   ================================================== */


.wtmg-dashboard-pricing-widget {
    padding:32px !important;
    background:#ffffff;
}


/* Header */

.wtmg-dashboard-pricing-widget h2 {

    font-size:22px !important;
    font-weight:700;
    color:#142c52;

    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:8px;

}


.wtmg-dashboard-pricing-widget h2 .wtmg-card-icon {

    color:#2457a6;

}


.wtmg-dashboard-pricing-widget > p {

    font-size:15px;
    color:#64748b;
    margin-bottom:25px;

}



/* Top Feature Row */

.wtmg-pricing-feature-grid {

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;

    margin-bottom:25px;

}


.wtmg-pricing-feature-grid > div {

    background:#ffffff;

    border:1px solid #dbe5f2;

    border-radius:18px;

    padding:20px;

    min-height:125px;

}


.wtmg-pricing-feature-grid strong {

    font-size:18px;
    color:#142c52;

    margin-bottom:10px;

}


.wtmg-pricing-feature-grid span {

    font-size:14px;

    color:#60738f;

    line-height:1.45;

}



/* Bottom Purchase Cards */

.wtmg-growth-options {

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:22px;

}


.wtmg-growth-options > div {


    background:#ffffff;

    border:1px solid #dbe5f2;

    border-radius:20px;

    padding:26px;


    min-height:170px;

}



.wtmg-growth-options h3 {

    font-size:20px;

    color:#142c52;

    margin-bottom:12px;

}


.wtmg-growth-options p {

    font-size:15px;

    color:#536987;

    margin-bottom:15px;

}


.wtmg-growth-options small {

    color:#71849f;

}



/* CTA area */

.wtmg-dashboard-pricing-widget
.wtmg-provider-account-button-primary {

    margin-top:28px;

    padding:14px 32px;

    border-radius:10px;

    background:#2457a6 !important;

    font-size:15px;

    font-weight:700;

}



/* Remove oversized empty feeling */

.wtmg-provider-account-dashboard-grid >
.wtmg-dashboard-pricing-widget {

    min-height:auto !important;

}



/* Mobile */

@media(max-width:900px){

    .wtmg-pricing-feature-grid {

        grid-template-columns:1fr;

    }


    .wtmg-growth-options {

        grid-template-columns:1fr;

    }

}




/* Pricing Widget V3 */


.wtmg-pricing-header {

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:30px;

    margin-bottom:30px;

}


.wtmg-pricing-title {

    display:flex;
    gap:18px;
    align-items:flex-start;

}


.wtmg-pricing-crown {

    width:64px;
    height:64px;

    border-radius:50%;

    background:#fff7df;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#d99a00;

}


.wtmg-pricing-title h2 {

    margin:0 !important;
    font-size:22px !important;

}


.wtmg-pricing-title p {

    margin:8px 0;
    color:#1d355d;
    font-weight:600;

}


.wtmg-pricing-title span {

    color:#64748b;
    font-size:14px;

}



.wtmg-pricing-actions {

    display:flex;
    flex-direction:column;
    gap:10px;
	margin-top: 10px;
    align-items:center;

}


.wtmg-pricing-actions a {

    text-decoration:none;

}


.wtmg-pricing-actions .wtmg-provider-account-button-primary {

    margin:0 !important;

}



.wtmg-pricing-feature-grid {

    grid-template-columns:repeat(4,1fr);

}



.wtmg-pricing-feature-grid > div {

    min-height:110px;

}

/* Sponsored / Lead cards */


.wtmg-growth-options > div {

    position:relative;

}


.wtmg-growth-options strong {

    display:block;

    margin-top:18px;

    color:#2457a6;

}



.wtmg-growth-options a {

    display:inline-flex;

    margin-top:20px;

    padding:10px 20px;

    border-radius:10px;

    border:1px solid #2457a6;

    color:#2457a6;

    text-decoration:none;

    font-weight:600;

}



/* Trust footer */




.wtmg-pricing-trust div {

    display:flex;

    flex-direction:column;

    gap:5px;

}


.wtmg-pricing-trust strong {

    color:#1d355d;

    font-size:14px;

}


.wtmg-pricing-trust span {

    color:#64748b;

    font-size:12px;

}



@media(max-width:1000px){

    .wtmg-pricing-header {

        flex-direction:column;
        align-items:flex-start;

    }


    .wtmg-pricing-actions {

        align-items:flex-start;

    }


    .wtmg-pricing-feature-grid,
    .wtmg-pricing-trust {

        grid-template-columns:1fr 1fr;

    }

}


@media(max-width:600px){

    .wtmg-pricing-feature-grid,
    .wtmg-pricing-trust,
    .wtmg-growth-options {

        grid-template-columns:1fr;

    }

}

/* Header */

.wtmg-pricing-header {

    align-items:flex-start;

}


.wtmg-pricing-title {

    gap:14px;

}


.wtmg-pricing-crown {

    width:58px;
    height:58px;

}


.wtmg-pricing-title h2 {

    font-size:20px !important;

}


.wtmg-pricing-title p {

    margin:5px 0;
    font-size:14px;

}


.wtmg-pricing-title span {

    font-size:13px;

}



/* CTA */

.wtmg-pricing-actions .wtmg-provider-account-button-primary {

    padding:12px 28px;

}



/* Feature row */

.wtmg-pricing-feature-grid {

    grid-template-columns:repeat(4,1fr);

    gap:14px;

    margin-top:20px;

}


.wtmg-pricing-feature-grid > div {

    padding:16px;

    min-height:90px;

    border-radius:14px;

}


.wtmg-pricing-feature-grid strong {

    font-size:15px;

}


.wtmg-pricing-feature-grid span {

    font-size:12px;

}



/* Bottom 3 column layout */


.wtmg-growth-options {

    display:grid;

    grid-template-columns:2fr 2fr 1fr;

    gap:18px;

    margin-top:22px;

}


.wtmg-growth-options > div {

    padding:22px;

    min-height:260px;

    border-radius:18px;

}



/* sponsored */

.wtmg-sponsored-card {

    background:#fcf8ff !important;

}


.wtmg-credit-card {

    background:#f7fffb !important;

}


.wtmg-upgrade-card {

    background:#f8fbff !important;

}


.wtmg-growth-options h3 {

    font-size:18px;

}


.wtmg-growth-options p {

    font-size:14px;

}


.wtmg-growth-options strong {

    font-size:14px;

}


/* Upgrade list */

.wtmg-upgrade-card ul {

    padding-left:18px;

    margin-top:18px;

}


.wtmg-upgrade-card li {

    margin-bottom:10px;

    font-size:13px;

    color:#526987;

}



.wtmg-upgrade-card a {

    width:100%;

    justify-content:center;

}







.wtmg-pricing-trust strong {

    font-size:13px;

}



@media(max-width:1100px){

    .wtmg-growth-options {

        grid-template-columns:1fr;

    }


    .wtmg-pricing-feature-grid {

        grid-template-columns:repeat(2,1fr);

    }

}




/* Provider Dashboard Pricing Widget Real DOM Fix */


.wtmg-dashboard-pricing-widget {
    min-height:0 !important;
    padding:28px !important;
}


.wtmg-dashboard-pricing-widget h2 {
    font-size:22px !important;
    margin-bottom:8px !important;
}


.wtmg-dashboard-pricing-widget > p {
    margin-bottom:25px !important;
}


/* Feature cards */

.wtmg-pricing-feature-grid {
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:16px !important;
}


.wtmg-pricing-feature-grid > div {

    min-height:90px !important;
    height:auto !important;

    padding:20px !important;

    border:1px solid #dbe6f5;
    border-radius:18px;

}


.wtmg-pricing-feature-grid strong {

    font-size:17px !important;
    color:#18345d;

}


.wtmg-pricing-feature-grid span {

    font-size:14px;

}



/* Bottom cards */

.wtmg-growth-options {

    display:grid !important;

    grid-template-columns:1.25fr 1.25fr .7fr !important;

    gap:20px !important;

}


.wtmg-growth-options > div {

    min-height:0 !important;
    height:auto !important;

    padding:24px !important;

}


.wtmg-growth-options h3 {

    margin-top:0 !important;

}


.wtmg-growth-options p {

    min-height:0 !important;

}


.wtmg-upgrade-card li {

    font-size:13px !important;

    margin-bottom:8px !important;

}



/* remove old dashboard card height */

.wtmg-provider-account-dashboard-grid > .wtmg-dashboard-pricing-widget {

    min-height:0 !important;

}





/* ===== Pricing Widget Final Polish ===== */


.wtmg-dashboard-pricing-widget {
    padding:28px !important;
}


/* Header */

.wtmg-dashboard-pricing-widget > h2 {
    font-size:22px !important;
    margin-bottom:6px !important;
}


.wtmg-dashboard-pricing-widget > p {
    font-size:15px;
    margin-bottom:22px !important;
}


/* Feature cards */

.wtmg-pricing-feature-grid {
    margin-top:20px !important;
    gap:14px !important;
}


.wtmg-pricing-feature-grid > div {

    padding:18px !important;

    min-height:78px !important;

    border-radius:16px !important;

}


.wtmg-pricing-feature-grid strong {

    font-size:16px !important;

    margin-bottom:8px !important;

}


.wtmg-pricing-feature-grid span {

    font-size:13px !important;

}



/* Main commercial cards */


.wtmg-growth-options {

    margin-top:24px !important;

    grid-template-columns:1.35fr 1.35fr .75fr !important;

    gap:18px !important;

}


.wtmg-growth-options > div {

    padding:22px !important;

    min-height:0 !important;

    height:auto !important;

    border-radius:18px !important;

}



.wtmg-growth-options h3 {

    font-size:19px !important;

    margin-bottom:14px !important;

}



.wtmg-growth-options p {

    font-size:14px !important;

    line-height:1.55 !important;

}



.wtmg-growth-options strong {

    margin-top:18px !important;

    font-size:14px !important;

}


/* buttons */

.wtmg-growth-options a {

    margin-top:20px !important;

    padding:10px 18px !important;

    font-size:14px !important;

}



/* Why Upgrade */

.wtmg-upgrade-card ul {

    margin:12px 0 20px !important;

    padding-left:16px !important;

}


.wtmg-upgrade-card li {

    font-size:12px !important;

    margin-bottom:10px !important;

    line-height:1.35 !important;

}


.wtmg-upgrade-card a {

    padding:10px !important;

}



/* Trust */




.wtmg-pricing-trust div {

    padding-left:14px !important;

}


.wtmg-pricing-trust strong {

    font-size:13px !important;

}


.wtmg-pricing-trust span {

    font-size:12px !important;

}



/* remove old height rules */

.wtmg-provider-account-dashboard-grid > .wtmg-provider-account-card {

    min-height:0 !important;

}



@media(max-width:1100px){

.wtmg-growth-options {

    grid-template-columns:1fr !important;

}

.wtmg-pricing-feature-grid {

    grid-template-columns:1fr 1fr !important;

}


}




/* =================================================
   Pricing Widget Reference Layout
================================================= */


.wtmg-dashboard-pricing-widget {
    padding:30px !important;
    border-radius:22px !important;
}


/* TOP AREA */

.wtmg-pricing-top {
    display:flex;
    align-items:flex-start;
    gap:25px;
    margin-bottom:28px;
}


.wtmg-pricing-brand {
    display:flex;
    gap:15px;
    flex:1;
}


.wtmg-pricing-icon {
    width:120px;
    height:50px;
    border-radius:50%;
    background:#fff5db;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#d99a00;
}


.wtmg-pricing-brand h2 {
    margin:0 0 1px !important;
    font-size:19px !important;
}


.wtmg-pricing-brand strong {
    display:block;
    color:#1b3760;
}


.wtmg-pricing-brand p {
    color:#647795;
    margin-top:3px;
}



/* SUMMARY STRIP */

.wtmg-pricing-summary {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    flex:2;
}


.wtmg-pricing-summary div {
    padding:10px 14px;
    border-left:1px solid #e5edf7;
}


.wtmg-pricing-summary strong {
    font-size:14px;
    color:#1b3760;
	display:flex;
    align-items: center;
    gap:10px;
}


.wtmg-pricing-summary span {
    font-size:12px;
    color:#647795;
}



/* ACTION */


.wtmg-pricing-actions a:first-child {
    background:#2457a6;
    color:white;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
	padding:7px 17px;
    font-size:13px;
}


.wtmg-pricing-actions a:last-child {
    color:#2457a6;
    font-weight:600;
	font-size:12px;
}



/* PRODUCTS */


.wtmg-pricing-products {

    display:grid;
    grid-template-columns:1.3fr 1.6fr .8fr;
    gap:12px;

}


.wtmg-product {

    padding:12px;
    border:1px solid #dce7f5;
    border-radius:18px;

}


.wtmg-product h3 {

    margin-top:0;
	margin-bottom: 0px;
    font-size:16px;
	font-weight: 500;

}


.wtmg-product p {

    color:#647795;
    font-size:14px;

}



/* price boxes */


.wtmg-price-boxes {

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:6px;
    margin:22px 0;

}


.credits .wtmg-price-boxes {

    grid-template-columns:repeat(4,1fr);

}


.wtmg-price-boxes div {

    padding:15px 10px;
    border:1px solid #e1eaf5;
    border-radius:12px;
    text-align:center;

}


.wtmg-price-boxes strong {

    display:block;
    font-size:13px;

}


.wtmg-price-boxes span {

    display:block;
    font-size:20px;
    font-weight:700;
    margin-top:8px;

}



.wtmg-product a {

    display:inline-flex;
    justify-content:center;
    padding:11px 22px;
    border:1px solid #2457a6;
    border-radius:10px;
    color:#2457a6;
    text-decoration:none;
    font-weight:600;

}



/* WHY UPGRADE */

.wtmg-product.upgrade ul {

    padding-left:18px;

}


.wtmg-product.upgrade li {

    margin-bottom:0px;
    font-size:13px;
    color:#526987;

}



/* TRUST */

.wtmg-pricing-trust {

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0px;
    padding-top:20px;
    border-top:1px solid #e5edf5;

}


.wtmg-pricing-trust strong {

    display:block;
    font-size:13px;

}


.wtmg-pricing-trust span {

    font-size:12px;
    color:#647795;

}



@media(max-width:1200px){

.wtmg-pricing-top {
    flex-direction:column;
}

.wtmg-pricing-products {
    grid-template-columns:1fr;
}

.wtmg-pricing-summary {
    width:100%;
}

}





/* Pricing layout adjustment */


.wtmg-pricing-summary {

    grid-template-columns:repeat(3,1fr);

}


/* Smaller upgrade button */






/* Main products become two columns */

.wtmg-pricing-products {

    grid-template-columns:1fr 1fr;

}



/* Why upgrade moves below */

.wtmg-product.upgrade {

    grid-column:1 / -1;

}


.wtmg-product.upgrade ul {

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:0px;

    list-style:none;

    padding:0;

}


.wtmg-product.upgrade li {

    padding-left:22px;

    position:relative;

}


.wtmg-product.upgrade li:before {

    content:"✓";

    position:absolute;

    left:0;

    color:#2457a6;

    font-weight:bold;

}



/* Smaller product buttons */


.wtmg-product a {

    padding:9px 16px;

    font-size:13px;

}



/* Smaller sponsored pricing */

.wtmg-price-boxes div {

    padding:12px 8px;

}


.wtmg-price-boxes span {

    font-size:18px;

}



@media(max-width:900px){

.wtmg-pricing-products {

    grid-template-columns:1fr;

}


.wtmg-product.upgrade ul {

    grid-template-columns:1fr;

}


}




/* Pricing reference styling */


.wtmg-product.sponsored h3 {
    color:#5b21b6;
}


.wtmg-product.credits h3 {
    color:#059669;
}


.wtmg-product.upgrade h3 {
    color:#2563eb;
}



/* colored cards */

.wtmg-product.sponsored {
    background:#fcf8ff;
}


.wtmg-product.credits {
    background:#f7fffb;
}


.wtmg-product.upgrade {
    background:#f8fbff;
}



/* price boxes */

.wtmg-price-boxes div {

    background:white;
    border-radius:12px;

}


.sponsored .wtmg-price-boxes strong {

    color:#5b21b6;

}


.credits .wtmg-price-boxes strong {

    color:#059669;

}


.wtmg-price-boxes span {

    color:#172554;

}


.wtmg-price-boxes small {

    display:block;
    margin-top:5px;
    color:#64748b;
}



/* notes */

.wtmg-product-note {

    font-size:13px !important;
    margin-top:20px;
    color:#64748b !important;

}


.wtmg-product-note-list {

    display:flex;
    flex-direction:column;
    gap:8px;
    margin:20px 0;

}


.wtmg-product-note-list span {

    font-size:13px;
    color:#64748b;

}



/* buttons */


.sponsored a {

    background:#6d28d9;
    color:white !important;
    border:none;

}


.credits a {

    background:#059669;
    color:white !important;
    border:none;

}


.upgrade a {

    background:white;

}



/* why upgrade horizontal */

.wtmg-product.upgrade ul {

    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;

}


.wtmg-product.upgrade li {

    list-style:none;

}





/* Pricing final alignment */


.wtmg-dashboard-pricing-widget .wtmg-card-icon {

    width:64px;
    height:64px;
    border-radius:50%;
    background:#fff7df;
    display:flex;
    align-items:center;
    justify-content:center;

}


/* top features icons */

.wtmg-pricing-feature-grid strong {

    display:flex;
    align-items:center;
    gap:10px;

}


.wtmg-feature-icon {

    color:#2563eb;
    font-size:18px;

}



/* product titles */


.wtmg-growth-options h3 {

    display:flex;
    align-items:center;
    gap:12px;

}


.wtmg-product-icon {

    width:38px;
    height:38px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#f1e8ff;

}


/* price cards */

.wtmg-price-options {

    display:flex;
    gap:16px;
    margin-top:25px;

}


.wtmg-price-options > div {

    flex:1;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:20px;
    text-align:center;

}


.wtmg-price-options strong {

    display:block;
    color:#5b21b6;

}


.wtmg-price-options span {

    display:block;
    margin:8px 0;
    color:#475569;

}


.wtmg-price-options b {

    font-size:22px;
    color:#172554;

}


.wtmg-price-options small {

    font-size:14px;

}



/* buttons */


.wtmg-growth-options a {

    margin-top:24px;

}


.wtmg-growth-options > div:first-child a {

    display:block;
    width:max-content;
    margin-left:auto;
    margin-right:auto;

}


/* why upgrade */

.wtmg-pricing-upgrade {

    position:relative;

}


.wtmg-pricing-upgrade a {

    position:absolute;
    right:35px;
    bottom:35px;

}


/* remove old text spacing */

.wtmg-product-note {

    margin-top:15px;

}




/* FINAL PRICING ALIGNMENT */


.wtmg-dashboard-pricing-widget h2 {
    font-size:18px;
}


.wtmg-dashboard-pricing-widget > p {
    font-size:15px;
}



.subscription-icon {

    width:52px!important;
    height:52px!important;
    border-radius:50%!important;
    background:#fff5d8!important;

}




.wtmg-pricing-feature-grid strong {

    display:flex;
    align-items:center;
    gap:8px;

}


.wtmg-feature-icon {

    display:inline-flex;
    width:24px;
    height:24px;
    border-radius:50%;
    align-items:center;
    justify-content:center;
    background:#eef5ff;
    font-size:13px;

}



/* product cards */

.wtmg-growth-options h3 {

    font-size:22px;
    display:flex;
    align-items:center;
    gap:12px;

}


.wtmg-product-icon {

    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;

}



.wtmg-price-options span {

    font-size:14px;
    margin-top:8px;

}


.wtmg-price-options b small {

    font-size:14px;

}



/* buttons */

.wtmg-growth-options a {

    padding:10px 20px!important;
    font-size:14px!important;

}


.wtmg-growth-options > div:first-child a {

    margin:28px auto 0 auto;

}



/* why upgrade */

.wtmg-pricing-trust,
.wtmg-pricing-upgrade {

    position:relative;

}


.wtmg-pricing-upgrade a {

    position:absolute;
    right:30px;
    top:45px;

}



.wtmg-pricing-upgrade ul {

    display:flex;
    justify-content:space-between;

}



.wtmg-pricing-upgrade li {

    list-style:none;

}



.wtmg-pricing-upgrade li:before {

    content:"✓";
    color:#2563eb;
    font-weight:bold;
    margin-right:10px;

}



/* bottom trust icons */

.wtmg-pricing-trust > div {

    display:flex;
    align-items:center;
    gap:12px;

}


.wtmg-pricing-trust > div:before {

    content:"✓";
    width:26px;
    height:26px;
    border-radius:50%;
    background:#eef5ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;

}




/* ================================
   PRICING REFERENCE MATCH OVERRIDE
================================ */


/* TOP FEATURE ITEMS */

.wtmg-pricing-feature-grid > div {

    display:flex;
    flex-direction:column;
    position:relative;
    padding-left:34px;

}


.wtmg-feature-icon {

    position:absolute;
    left:0;
    top:3px;
    background:none;
    width:auto;
    height:auto;
    font-size:18px;

}



/* remove emoji look */
.wtmg-feature-icon {

    font-size:0;

}


.wtmg-feature-icon:before {

    font-size:18px;
    color:#2563eb;

}



.wtmg-pricing-feature-grid > div:nth-child(1) .wtmg-feature-icon:before {
    content:"◉";
}

.wtmg-pricing-feature-grid > div:nth-child(2) .wtmg-feature-icon:before {
    content:"▣";
}

.wtmg-pricing-feature-grid > div:nth-child(3) .wtmg-feature-icon:before {
    content:"◷";
}




/* PRODUCT HEADERS */

.wtmg-growth-options h3 {

    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;

}


.wtmg-product-icon {

    flex:none;

}



/* PRICE BOX TEXT */

.wtmg-price-options span {

    display:block!important;

}


.wtmg-price-options b {

    display:block;

}



.wtmg-price-options b small {

    font-weight:400;

}



/* BUTTON ALIGN */

.wtmg-growth-options > div:first-child a {

    margin:30px auto 0!important;

}



.wtmg-growth-options a {

    width:max-content;

}



/* WHY UPGRADE FINAL */

.wtmg-pricing-upgrade {

    display:flex;
    align-items:center;

}



.wtmg-pricing-upgrade ul {

    display:flex!important;
    flex:1;
    margin:0;
    padding:0;
    gap:25px;

}


.wtmg-pricing-upgrade a {

    position:static!important;
    margin-left:auto;

}



/* TRUST ROW */

.wtmg-pricing-trust > div {

    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;

}


.wtmg-pricing-trust > div:before {

    flex:none;

}




/* Pricing reference alignment */

.wtmg-product h3 {
    display:flex;
    align-items:center;
    gap:14px;
}

.wtmg-product-icon,
.wtmg-feature-icon {
    width:42px;
    height:42px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eef3ff;
    color:#2457a6;
    font-size:18px;
    flex-shrink:0;
}


.wtmg-price-boxes small {
    display:block;
    margin-top:8px;
    color:#60759b;
    font-size:14px;
}


.wtmg-price-boxes em {
    font-style:normal;
    font-size:14px;
    font-weight:500;
}


.wtmg-pricing-products a {
    margin-top:24px;
}



.wtmg-feature-icon {
    margin-right:0px;
}




/* FINAL PRICING ALIGNMENT */


/* top header */

.wtmg-pricing-brand h2,
.wtmg-pricing-brand strong {
    font-size:17px;
}

.wtmg-pricing-brand p {
    font-size:13px;
}

.wtmg-feature-description{
    border: none;
    font-size: 12px;
    text-align: right;	
}

.wtmg-pricing-icon {
    border-radius:50%;
}


/* feature icons */

.wtmg-feature-icon {
    width:34px;
    height:34px;
    display:inline-flex;
    vertical-align:middle;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    margin-right:10px;
    background:#edf3ff;
    position:relative;
}


.wtmg-eye-icon:before {
    content:"";
    width:14px;
    height:10px;
    border:2px solid #2457a6;
    border-radius:12px;
}


.wtmg-chat-icon:before {
    content:"";
    width:13px;
    height:11px;
    border:2px solid #20a05a;
    border-radius:4px;
}


.wtmg-clock-icon:before {
    content:"";
    width:12px;
    height:12px;
    border:2px solid #df5265;
    border-radius:50%;
}


/* product header icons */

.wtmg-product-icon {
    width:42px;
    height:42px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#f1eaff;
}


.wtmg-megaphone:before {
    content:"";
    width:16px;
    height:10px;
    background:#6b2ed9;
    clip-path:polygon(0 20%,100% 0,100% 100%,0 80%);
}


.wtmg-user:before {
    content:"";
    width:14px;
    height:14px;
    border-radius:50%;
    background:#16895b;
}


/* product boxes */

.wtmg-price-boxes small {
    margin-top:8px;
    display:block;
}


.wtmg-price-boxes span {
    margin-top:8px;
}


.wtmg-price-boxes em {
    font-size:14px;
}


/* product buttons */

.wtmg-product > a {
    display:inline-flex;
    margin-top:22px;
    padding:10px 22px;
    font-size:15px;
}


/* why upgrade */

.wtmg-product.upgrade {
    width:100%;
}


.wtmg-product.upgrade .wtmg-product-note-list {
    display:flex;
    justify-content:space-between;
    gap:20px;
}


.wtmg-product.upgrade a {
    margin-left:auto;
}


/* trust icons */

.wtmg-pricing-trust > div:before {
    content:"✓";
    width:32px;
    height:32px;
    border-radius:50%;
    background:#edf3ff;
    color:#2457a6;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 12px;
}




/* Why Upgrade final row */

.wtmg-pricing-upgrade {

    display:flex;
    align-items:center;
    gap:6px;

}


.wtmg-pricing-upgrade ul {

    flex:1;
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin:0;
    padding:0;

}

.wtmg-free-plan-text{

	color: green !important;
}
.wtmg-pricing-upgrade li {

    list-style:none;
    display:flex;
    align-items:center;
    gap:8px;

}


.wtmg-pricing-upgrade li:before {

    content:"✓";
    color:#2563eb;
    font-weight:700;

}


.wtmg-pricing-upgrade a {

    flex:none;
    margin:0 !important;
	font-size: 13px;
    padding: 9px 12px;

}




/* Pricing final alignment overrides */


.wtmg-feature-title {
    display:inline-block;
    vertical-align:middle;
    line-height:1.25;
    max-width:140px;
}


.wtmg-category-pricing-button,
.wtmg-lead-credit-button {

    display:flex !important;
    width:max-content;
    margin:13px auto 0 !important;
    justify-content:center;
    align-items:center;

}



/* Provider Subscription - Upgrade CTA */

.wtmg-provider-subscription-upgrade{
    margin-top:28px;
}

.wtmg-provider-subscription-upgrade-inner{
    width:100%;
    padding:34px 28px;
    text-align:center;
    background:linear-gradient(135deg,#f7faff 0%,#f1faf5 100%);
    border:1px solid #dfe8f3;
    border-radius:20px;
    box-shadow:0 10px 28px rgba(15,35,68,.04);
}

.wtmg-provider-subscription-upgrade-inner h2{
    margin:0 0 8px;
    color:#10233f;
    font-size:24px;
    line-height:1.25;
    font-weight:700;
}

.wtmg-provider-subscription-upgrade-inner p{
    max-width:680px;
    margin:0 auto 22px;
    color:#64748b;
    font-size:15px;
    line-height:1.6;
}

.wtmg-provider-subscription-upgrade-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:230px;
    min-height:46px;
    padding:12px 24px;
    background:#2457a6;
    color:#fff !important;
    border-radius:9px;
    font-size:14px;
    font-weight:700;
    line-height:1;
    text-decoration:none !important;
    box-shadow:0 8px 18px rgba(36,87,166,.16);
}

.wtmg-provider-subscription-upgrade-button:hover,
.wtmg-provider-subscription-upgrade-button:focus{
    background:#1d4c96;
    color:#fff !important;
    text-decoration:none !important;
}

@media(max-width:640px){
    .wtmg-provider-subscription-upgrade{
        margin-top:20px;
    }

    .wtmg-provider-subscription-upgrade-inner{
        padding:28px 20px;
    }

    .wtmg-provider-subscription-upgrade-button{
        width:100%;
        min-width:0;
    }
}



/* ==========================================================
   Provider Subscription - Sponsored + Upgrade Actions
   ========================================================== */

.wtmg-provider-subscription-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:0;
}

.wtmg-provider-subscription-action{
    min-height:250px;
    padding:32px;
    border-radius:20px;
    border:1px solid #dbe5ef;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-shadow:0 10px 28px rgba(15,35,68,.04);
}

.wtmg-provider-subscription-action-sponsored{
    background:linear-gradient(135deg,#f1faf5 0%,#e7f7ee 100%);
    border-color:#cce8d6;
}

.wtmg-provider-subscription-action-upgrade{
    background:linear-gradient(135deg,#f4f8ff 0%,#e9f1ff 100%);
    border-color:#d3e0f4;
}

.wtmg-provider-subscription-action-kicker{
    margin:0 0 10px !important;
    color:#2463d4 !important;
    font-size:12px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.wtmg-provider-subscription-action-sponsored
.wtmg-provider-subscription-action-kicker{
    color:#17813b !important;
}

.wtmg-provider-subscription-action h2{
    margin:0 0 10px;
    color:#10233f;
    font-size:24px;
    line-height:1.25;
    font-weight:700;
}

.wtmg-provider-subscription-action-content > p:last-child{
    margin:0;
    max-width:520px;
    color:#64748b;
    font-size:15px;
    line-height:1.6;
}

.wtmg-provider-subscription-action-button{
    display:inline-flex;
    width:max-content;
    min-height:46px;
    margin-top:26px;
    padding:12px 22px;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    font-size:14px;
    line-height:1;
    font-weight:700;
    text-decoration:none !important;
}

.wtmg-provider-subscription-action-button-sponsored{
    background:#198c43;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(25,140,67,.16);
}

.wtmg-provider-subscription-action-button-sponsored:hover,
.wtmg-provider-subscription-action-button-sponsored:focus{
    background:#147637;
    color:#fff !important;
}

.wtmg-provider-subscription-action-button-upgrade{
    background:#2457a6;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(36,87,166,.16);
}

.wtmg-provider-subscription-action-button-upgrade:hover,
.wtmg-provider-subscription-action-button-upgrade:focus{
    background:#1d4c96;
    color:#fff !important;
}

@media(max-width:760px){

    .wtmg-provider-subscription-actions{
        grid-template-columns:1fr;
        gap:12px;
        margin-top:0px;
    }

    .wtmg-provider-subscription-action{
        min-height:0;
        padding:26px 22px;
    }

    .wtmg-provider-subscription-action-button{
        width:100%;
    }
}


/* Provider Subscription Action Cards - Compact + Centered CTA */

.wtmg-provider-subscription-action{
    min-height:0;
    padding:30px 32px;
}

.wtmg-provider-subscription-action-content{
    text-align:center;
}

.wtmg-provider-subscription-action-content > p:last-child{
    margin-left:auto;
    margin-right:auto;
}

.wtmg-provider-subscription-action-button{
    align-self:center;
    margin-top:24px;
}

@media(max-width:760px){

    .wtmg-provider-subscription-action{
        padding:26px 22px;
    }

    .wtmg-provider-subscription-action-button{
        width:100%;
        max-width:320px;
        align-self:center;
    }
}


/* ==========================================================
   Provider Subscription Actions - Visual Rebuild
   ========================================================== */

.wtmg-provider-subscription-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    margin-top:0;
}

.wtmg-provider-subscription-action{
    position:relative;
    min-height:300px;
    padding:34px 36px 30px 170px;
    overflow:hidden;
    justify-content:flex-start;
}

.wtmg-provider-subscription-action-sponsored{
    background:linear-gradient(135deg,#f4fcf7 0%,#eaf8ef 100%);
    border-color:#cfe8d7;
}

.wtmg-provider-subscription-action-upgrade{
    background:linear-gradient(135deg,#f4f8ff 0%,#eaf2ff 100%);
    border-color:#d3e1f7;
}

/* Icon circles */

.wtmg-provider-subscription-action::before{
    content:"";
    position:absolute;
    left:13px;
    top:21%;
    width:104px;
    height:104px;
    border-radius:50%;
    transform:translateY(-50%);
    background-repeat:no-repeat;
    background-position:center;
    background-size:60px 60px;
}

.wtmg-provider-subscription-action-sponsored::before{
    background-color:#ddf4e4;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23198c43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a2 2 0 0 0 2 2h2l4 4V5L7 9H5a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M11 8c4-2 6-3 9-3v14c-3 0-5-1-9-3'/%3E%3Cpath d='M7 15l1 5h3'/%3E%3C/svg%3E");
}

.wtmg-provider-subscription-action-upgrade::before{
    background-color:#dce8fb;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%232563c7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v5c0 5 3.4 8.8 8 10 4.6-1.2 8-5 8-10V6l-8-3Z'/%3E%3Cpath d='m12 8 1.2 2.4 2.7.4-2 1.9.5 2.7-2.4-1.3-2.4 1.3.5-2.7-2-1.9 2.7-.4L12 8Z'/%3E%3C/svg%3E");
}

.wtmg-provider-subscription-action-content{
    text-align:left;
	    padding-left: 135px;
    padding-top: 30px;
}

.wtmg-provider-subscription-action-kicker{
    margin:0 0 10px !important;
    font-size:13px !important;
    letter-spacing:.13em;
}

.wtmg-provider-subscription-action h2{
    margin:0 0 16px;
    font-size:25px;
    line-height:1.18;
}

.wtmg-provider-subscription-action h2::after{
    content:"";
    display:block;
    width:72px;
    height:3px;
    margin-top:14px;
    border-radius:999px;
}

.wtmg-provider-subscription-action-sponsored h2::after{
    background:#219447;
}

.wtmg-provider-subscription-action-upgrade h2::after{
    background:#2c63bd;
}

.wtmg-provider-subscription-action-content > p:last-child{
    margin:10px;
    max-width:560px;
    font-size:16px;
    line-height:1.55;
}

.wtmg-provider-subscription-action-button{
    align-self:center;
    min-width:300px;
    min-height:50px;
    margin-top:50px;
    padding:14px 28px;
    font-size:16px;
    border-radius:10px;
}

@media(max-width:1100px){

    .wtmg-provider-subscription-action{
        padding-left:130px;
    }

    .wtmg-provider-subscription-action::before{
        left:13px;
        width:82px;
        height:82px;
        background-size:48px 48px;
    }
}

@media(max-width:760px){

    .wtmg-provider-subscription-actions{
        grid-template-columns:1fr;
    }

    .wtmg-provider-subscription-action{
        min-height:0;
        padding:110px 24px 26px;
        text-align:center;
    }

    .wtmg-provider-subscription-action::before{
        left:50%;
        top:24px;
        width:68px;
        height:68px;
        transform:translateX(-50%);
        background-size:40px 40px;
    }

    .wtmg-provider-subscription-action-content{
        text-align:center;
    }

    .wtmg-provider-subscription-action h2::after{
        margin-left:auto;
        margin-right:auto;
    }

    .wtmg-provider-subscription-action-content > p:last-child{
        margin-left:auto;
        margin-right:auto;
    }

    .wtmg-provider-subscription-action-button{
        width:100%;
        min-width:0;
        max-width:320px;
        margin-top:24px;
    }
}
/* Provider Reviews V1 */
.wtmg-provider-reviews-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wtmg-provider-reviews-dashboard-summary div {
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: 16px;
}

.wtmg-provider-reviews-dashboard-summary span,
.wtmg-provider-review-breakdown-row span,
.wtmg-provider-review-breakdown-row strong,
.wtmg-provider-dashboard-review-head span {
    color: #667085;
}

.wtmg-provider-reviews-dashboard-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    color: #161b2a;
}

.wtmg-provider-reviews-distribution,
.wtmg-provider-reviews-list {
    margin-top: 0px;
    padding: 15px;
}

.wtmg-provider-review-breakdown-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 68px;
    gap: 10px;
    align-items: center;
    margin: 9px 0;
}

.wtmg-provider-review-breakdown-row div {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #eef1f6;
}

.wtmg-provider-review-breakdown-row div span {
    display: block;
    height: 100%;
    background: #4057d6;
}

.wtmg-provider-dashboard-review {
    border: 1px solid #e5e8ef;
    border-radius: 8px;
	padding: 25px !important;
}

.wtmg-provider-dashboard-review-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.wtmg-provider-review-stars {
    color: #f5a524;
    letter-spacing: 0;
}

.wtmg-provider-review-response-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.wtmg-provider-review-response-form span {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.wtmg-provider-review-response-form textarea {
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 8px;
    padding: 10px 12px;
}

@media (max-width: 760px) {
    .wtmg-provider-reviews-dashboard-summary {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-dashboard-review-head {
        display: block;
    }
}

/* Provider dashboard Reviews routing/UI polish */
.wtmg-provider-reviews-dashboard-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wtmg-provider-reviews-distribution h2,
.wtmg-provider-reviews-list h2 {
    margin-top: 0;
}

.wtmg-provider-reviews-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #667085;
}

.wtmg-provider-reviews-empty-state strong {
    color: #161b2a;
    font-size: 18px;
}

.wtmg-provider-reviews-empty-state p {
    margin: 0;
}

.wtmg-provider-dashboard-review-response {
    margin-top: 14px;
    padding: 13px;
    border-left: 3px solid #4057d6;
    border-radius: 8px;
    background: #f7f8ff;
}

.wtmg-provider-dashboard-review-response p {
    margin: 6px 0 0;
}

.wtmg-provider-review-response-panel {
    margin-top: 14px;
}

.wtmg-provider-review-response-panel summary {
    width: max-content;
    list-style: none;
    cursor: pointer;
}

.wtmg-provider-review-response-panel summary::-webkit-details-marker {
    display: none;
}

.wtmg-provider-review-response-panel[open] summary {
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .wtmg-provider-reviews-dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .wtmg-provider-reviews-dashboard-summary {
        grid-template-columns: 1fr;
    }
}

/* WTMG provider lead - verified customer indicator */
.wtmg-provider-account-customer-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 9px;
    border: 1px solid #b9dfc7;
    border-radius: 999px;
    background: #eaf7ef;
    color: #237a45;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.wtmg-provider-account-customer-verified > span {
    font-size: 13px;
    font-weight: 800;
}

/* WTMG RFQ Accept / Unlock */
.wtmg-provider-account-lead-accept-card{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    border:1px solid #bfd3ee;
    background:#f6f9fe;
}

.wtmg-provider-account-lead-accept-card h2{
    margin-top:0;
}

.wtmg-provider-account-lead-credit-balance{
    margin-bottom:0;
    font-weight:700;
    color:#233a5e;
}

.wtmg-provider-account-lead-accept-actions{
    min-width:200px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
}

.wtmg-provider-account-lead-accept-actions form{
    margin:0;
}

.wtmg-provider-account-lead-accept-actions .wtmg-provider-account-button{
    width:100%;
    justify-content:center;
    text-align:center;
}

.wtmg-provider-account-locked-action{
    padding:14px 16px;
    border:1px solid #d9e3f0;
    border-radius:10px;
    background:#f8fafc;
}

.wtmg-provider-account-locked-action strong{
    display:block;
    margin-bottom:5px;
    color:#233a5e;
}

.wtmg-provider-account-button:disabled{
    opacity:.48;
    cursor:not-allowed;
    pointer-events:none;
}

@media (max-width:760px){
    .wtmg-provider-account-lead-accept-card{
        flex-direction:column;
        align-items:stretch;
    }

    .wtmg-provider-account-lead-accept-actions{
        min-width:0;
        width:100%;
    }
}

/* WTMG RFQ weekly usage */
.wtmg-rfq-limit-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
    padding:14px 16px;
    border:1px solid #c9daf0;
    border-radius:12px;
    background:#f5f9fe;
}

.wtmg-rfq-limit-summary strong{
    display:block;
    color:#1f4f99;
    font-size:15px;
    line-height:1.3;
}

.wtmg-rfq-limit-summary span{
    display:block;
    margin-top:3px;
    color:#65758b;
    font-size:12px;
}

.wtmg-rfq-limit-count{
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    background:#e7f0fb;
    color:#1f4f99;
    font-size:12px;
    font-weight:700;
}

.wtmg-rfq-limit-summary.is-exhausted{
    border-color:#e5c8c8;
    background:#fff7f7;
}

.wtmg-rfq-limit-summary.is-exhausted strong,
.wtmg-rfq-limit-summary.is-exhausted .wtmg-rfq-limit-count{
    color:#a33a3a;
}

@media (max-width:640px){
    .wtmg-rfq-limit-summary{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* Provider / Agency sidebar notification badge */
.wtmg-provider-account-sidebar nav a .wtmg-sidebar-label{
    flex:1 1 auto;
    min-width:0;
}

.wtmg-sidebar-notification-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-width:22px;
    height:22px;
    padding:0 6px;
    margin-left:auto;
    border-radius:999px;
    background:#2563a9;
    color:#fff;
    font-size:11px;
    font-weight:700;
    line-height:1;
}

.wtmg-provider-account-sidebar nav a.is-active .wtmg-sidebar-notification-badge{
    background:#fff;
    color:#2563a9;
}

/* =========================================================
   WTMG Unified Register Page
   ========================================================= */

.wtmg-register-page {
    width: 100%;
    max-width: none;
    min-height: 720px;
    padding: 38px 22px 72px;
    background:
        radial-gradient(circle at 15% 12%, rgba(31, 79, 153, 0.045), transparent 30%),
        radial-gradient(circle at 88% 86%, rgba(22, 138, 53, 0.045), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.wtmg-register-page > .wtmg-provider-account-login-shell {
    width: min(760px, calc(100vw - 44px));
    margin: 0 auto;
}

.wtmg-register-page .wtmg-register-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 38px 42px 40px;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 35, 68, 0.07);
    text-align: center;
}

.wtmg-register-page .wtmg-provider-account-brand img {
    max-width: 185px;
    max-height: 58px;
}

.wtmg-register-page .wtmg-provider-account-kicker {
    margin: 8px 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.wtmg-register-page .wtmg-register-card h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 50px);
    line-height: 1.05;
    color: #14233d;
}

.wtmg-register-page .wtmg-provider-account-login-subtitle {
    max-width: 560px;
    margin: 0 auto 30px;
    color: #536884;
    font-size: 16px;
    line-height: 1.55;
}

/* Registration form grid */
.wtmg-register-page .wtmg-register-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    width: 100%;
    text-align: left;
}

/* Direct form fields */
.wtmg-register-page .wtmg-register-card form > label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    gap: 8px;
}

.wtmg-register-page .wtmg-register-card form > label > span {
    color: #172844;
    font-size: 15px;
    font-weight: 600;
}

/* Account type */
.wtmg-register-page .wtmg-register-card form > label:nth-of-type(1) {
    grid-column: 1 / -1;
}

/* Email */
.wtmg-register-page .wtmg-register-card form > label:nth-of-type(2) {
    grid-column: 1;
}

/* Password */
.wtmg-register-page .wtmg-register-card form > label:nth-of-type(3) {
    grid-column: 2;
}

/* Confirm password */
.wtmg-register-page .wtmg-register-card form > label:nth-of-type(4) {
    grid-column: 1 / -1;
}

.wtmg-register-page .wtmg-register-card input[type="email"],
.wtmg-register-page .wtmg-register-card input[type="password"],
.wtmg-register-page .wtmg-register-card input[type="text"],
.wtmg-register-page .wtmg-register-card select {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    background: #fff;
    color: #172844;
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    outline: none;
}

.wtmg-register-page .wtmg-register-card input:focus,
.wtmg-register-page .wtmg-register-card select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

/* Legal acceptance block generated by existing legal helper */
.wtmg-register-page .wtmg-register-card form > .wtmg-legal-acceptance,
.wtmg-register-page .wtmg-register-card form > .wtmg-terms-acceptance,
.wtmg-register-page .wtmg-register-card form > .wtmg-provider-account-legal,
.wtmg-register-page .wtmg-register-card form > fieldset {
    grid-column: 1 / -1;
}

/* Catch the existing legal box even if its helper uses another direct div class */
.wtmg-register-page .wtmg-register-card form > div:not(.wtmg-register-guidance):not(.wtmg-provider-account-notice) {
    grid-column: 1 / -1;
}

/* Guidance */
.wtmg-register-page .wtmg-register-guidance {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #cfe0f8;
    border-radius: 10px;
    background: #f5f9ff;
    color: #405673;
    text-align: left;
}

.wtmg-register-page .wtmg-register-guidance p {
    margin: 0;
    color: #405673;
    font-size: 15px;
    line-height: 1.55;
}

.wtmg-register-page .wtmg-register-guidance p + p {
    margin-top: 8px;
}

.wtmg-register-page .wtmg-register-guidance strong {
    color: #1e3a5f;
}

/* Create Account */
.wtmg-register-page .wtmg-register-card form > button[type="submit"] {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin: 2px 0 0;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.wtmg-register-page .wtmg-register-card form > button[type="submit"]:hover {
    background: #1d4ed8;
}

/* Existing error notice */
.wtmg-register-page .wtmg-provider-account-notice {
    margin: 0 0 22px;
    text-align: left;
}

/* Sign in footer */
.wtmg-register-page .wtmg-provider-account-login-bottom {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    color: #52657e;
    font-size: 15px;
}

.wtmg-register-page .wtmg-provider-account-login-bottom a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.wtmg-register-page .wtmg-provider-account-login-bottom a:hover {
    text-decoration: underline;
}

/* Terms box normalization */
.wtmg-register-page input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

/* Mobile */
@media (max-width: 700px) {
    .wtmg-register-page {
        padding: 24px 14px 50px;
    }

.wtmg-register-page .wtmg-register-card {
        padding: 30px 20px 32px;
        border-radius: 14px;
    }

    .wtmg-register-page .wtmg-register-card form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wtmg-register-page .wtmg-register-card form > label:nth-of-type(1),
    .wtmg-register-page .wtmg-register-card form > label:nth-of-type(2),
    .wtmg-register-page .wtmg-register-card form > label:nth-of-type(3),
    .wtmg-register-page .wtmg-register-card form > label:nth-of-type(4) {
        grid-column: 1;
    }

    .wtmg-register-page .wtmg-register-card h1 {
        font-size: 40px;
    }
}


/* =========================================================
   Register page final polish
   ========================================================= */

.wtmg-register-page > .wtmg-provider-account-login-shell {
    width: min(700px, calc(100vw - 44px));
}

.wtmg-register-page .wtmg-register-card {
    max-width: 660px;
    padding: 36px 40px 38px;
}

/* Terms / privacy box */
.wtmg-register-page .wtmg-register-card form .wtmg-legal-acceptance,
.wtmg-register-page .wtmg-register-card form .wtmg-terms-acceptance {
    padding: 15px 16px;
}

.wtmg-register-page .wtmg-register-card form .wtmg-legal-acceptance label,
.wtmg-register-page .wtmg-register-card form .wtmg-terms-acceptance label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    margin: 0;
}

.wtmg-register-page .wtmg-register-card form .wtmg-legal-acceptance input[type="checkbox"],
.wtmg-register-page .wtmg-register-card form .wtmg-terms-acceptance input[type="checkbox"] {
    margin: 2px 0 0;
}

/* Provider / Agency guidance */
.wtmg-register-page .wtmg-register-guidance {
    padding: 15px 18px;
}

.wtmg-register-page .wtmg-register-guidance p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
}

.wtmg-register-page .wtmg-register-guidance p + p {
    margin-top: 6px;
}

.wtmg-register-page .wtmg-register-guidance strong {
    font-weight: 700;
}

/* Space between registration card and normal site footer */
.wtmg-register-page {
    padding-bottom: 54px;
}

@media (max-width: 700px) {
    .wtmg-register-page > .wtmg-provider-account-login-shell {
        width: 100%;
    }

    .wtmg-register-page .wtmg-register-card {
        max-width: none;
        padding: 28px 20px 30px;
    }
}


/* =========================================================
   WTMG Agency Application
   ========================================================= */

.wtmg-agency-apply-page {
    width: 100%;
    max-width: none;
    padding: 38px 22px 56px;
    background:
        radial-gradient(circle at 12% 12%, rgba(31,79,153,.045), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(22,138,53,.04), transparent 30%),
        linear-gradient(180deg,#f8fafc 0%,#fff 100%);
}

.wtmg-agency-apply-shell {
    display: grid;
    grid-template-columns: 290px minmax(0,1fr);
    width: min(1180px, calc(100vw - 44px));
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15,35,68,.06);
    overflow: hidden;
}

.wtmg-agency-apply-intro {
    padding: 38px 30px;
    background: #fbfdff;
    border-right: 1px solid #e5ebf3;
}

.wtmg-agency-apply-intro .wtmg-provider-account-kicker {
    margin: 0 0 14px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.wtmg-agency-apply-intro h1 {
    margin: 0;
    color: #14233d;
    font-size: 38px;
    line-height: 1.08;
}

.wtmg-agency-intro-line {
    display: block;
    width: 42px;
    height: 4px;
    margin: 22px 0 20px;
    border-radius: 999px;
    background: #2563eb;
}

.wtmg-agency-intro-text {
    margin: 0 0 28px;
    color: #52657e;
    font-size: 15px;
    line-height: 1.6;
}

.wtmg-agency-benefits {
    display: grid;
    gap: 22px;
}

.wtmg-agency-benefit {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
}

.wtmg-agency-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf5ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

.wtmg-agency-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-benefit p {
    margin: 0;
    color: #60728b;
    font-size: 13.5px;
    line-height: 1.45;
}

.wtmg-agency-help-card {
    margin-top: 34px;
    padding: 18px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fff;
}

.wtmg-agency-help-card strong {
    display: block;
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-help-card p {
    margin: 6px 0 10px;
    color: #60728b;
    font-size: 13px;
    line-height: 1.45;
}

.wtmg-agency-help-card a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.wtmg-agency-apply-card {
    width: 100%;
    margin: 0;
    padding: 34px 36px 36px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.wtmg-agency-form-head {
    margin-bottom: 24px;
}

.wtmg-agency-form-head h2 {
    margin: 0 0 6px;
    color: #172844;
    font-size: 24px;
}

.wtmg-agency-form-head p {
    margin: 0;
    color: #60728b;
    font-size: 14px;
}

.wtmg-agency-application-form {
    display: grid;
    gap: 22px;
}

.wtmg-agency-form-grid {
    display: grid;
    gap: 18px;
}

.wtmg-agency-form-grid-2 {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.wtmg-agency-form-grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.wtmg-agency-application-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: #172844;
    font-size: 13.5px;
    font-weight: 600;
}

.wtmg-agency-application-form label span em,
.wtmg-agency-field-label em {
    color: #dc2626;
    font-style: normal;
}

.wtmg-agency-application-form input[type="text"],
.wtmg-agency-application-form input[type="email"],
.wtmg-agency-application-form input[type="password"],
.wtmg-agency-application-form input[type="url"],
.wtmg-agency-application-form textarea,
.wtmg-agency-application-form select {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    color: #172844;
    font-size: 14px;
    box-shadow: none;
}

.wtmg-agency-application-form input[type="text"],
.wtmg-agency-application-form input[type="email"],
.wtmg-agency-application-form input[type="password"],
.wtmg-agency-application-form input[type="url"],
.wtmg-agency-application-form select {
    min-height: 46px;
    padding: 0 13px;
}

.wtmg-agency-application-form textarea {
    min-height: 92px;
    padding: 12px 13px;
    resize: vertical;
}

.wtmg-agency-application-form input:focus,
.wtmg-agency-application-form textarea:focus,
.wtmg-agency-application-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.wtmg-agency-document-field {
    display: grid;
    gap: 8px;
}

.wtmg-agency-field-label {
    color: #172844;
    font-size: 13.5px;
    font-weight: 600;
}

.wtmg-agency-upload {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
    min-height: 145px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fbfdff;
    text-align: center;
    cursor: pointer;
}

.wtmg-agency-upload:hover {
    border-color: #2563eb;
    background: #f7fbff;
}

.wtmg-agency-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: #eef5ff;
    color: #2563eb;
    font-size: 22px;
}

.wtmg-agency-upload strong {
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-upload > span:not(.wtmg-agency-upload-icon) {
    color: #60728b;
    font-size: 13px;
    font-weight: 400;
}

.wtmg-agency-upload input[type="file"] {
    width: auto;
    margin-top: 5px;
    color: #52657e;
    font-size: 13px;
}

.wtmg-agency-document-field small {
    color: #728198;
    font-size: 12px;
}

.wtmg-agency-terms {
    padding: 16px 18px;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    background: #fbfdff;
}

.wtmg-agency-terms input[type="checkbox"] {
    width: 17px;
    height: 17px;
}

.wtmg-agency-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 220px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
}

.wtmg-agency-submit span {
    font-size: 18px;
}

@media (max-width: 980px) {
    .wtmg-agency-apply-shell {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-apply-intro {
        border-right: 0;
        border-bottom: 1px solid #e5ebf3;
    }

    .wtmg-agency-benefits {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .wtmg-agency-help-card {
        max-width: 380px;
    }
}

@media (max-width: 760px) {
    .wtmg-agency-apply-page {
        padding: 22px 14px 40px;
    }

    .wtmg-agency-apply-shell {
        width: 100%;
        border-radius: 14px;
    }

    .wtmg-agency-apply-intro,
    .wtmg-agency-apply-card {
        padding: 28px 20px;
    }

    .wtmg-agency-apply-intro h1 {
        font-size: 34px;
    }

    .wtmg-agency-benefits,
    .wtmg-agency-form-grid-2,
    .wtmg-agency-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-submit {
        width: 100%;
    }
}


/* =========================================================
   WTMG Agency Dashboard — Professional UI
   Applies to:
   Overview / Providers / Add Provider / Verification /
   Team / Settings / Provider Management
   ========================================================= */

/* ---------- Main page ---------- */

.wtmg-agency-dashboard-page {
    width: 100%;
    max-width: none;
    min-height: 760px;
    padding: 15px 22px 64px;
    background:
        radial-gradient(circle at 10% 8%, rgba(37,99,235,.045), transparent 26%),
        radial-gradient(circle at 90% 86%, rgba(22,138,53,.035), transparent 28%),
        linear-gradient(180deg,#f8fafc 0%,#fff 100%);
}

.wtmg-agency-dashboard-page .wtmg-provider-account-shell {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    gap: 15px;
    width: min(1240px, calc(100vw - 44px));
    margin: 0 auto;
    align-items: start;
}

/* ---------- Sidebar ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-nav,
.wtmg-agency-dashboard-page .wtmg-agency-nav,
.wtmg-agency-dashboard-page aside:first-child {
    position: sticky;
    top: 24px;
    padding: 20px 16px;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,35,68,.055);
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav > h2,
.wtmg-agency-dashboard-page .wtmg-provider-account-nav > h3,
.wtmg-agency-dashboard-page .wtmg-agency-nav > h2,
.wtmg-agency-dashboard-page .wtmg-agency-nav > h3 {
    margin: 3px 10px 18px;
    color: #172844;
    font-size: 18px;
    font-weight: 700;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav ul,
.wtmg-agency-dashboard-page .wtmg-agency-nav ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav a,
.wtmg-agency-dashboard-page .wtmg-agency-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 10px;
    color: #26374f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav a:hover,
.wtmg-agency-dashboard-page .wtmg-agency-nav a:hover {
    background: #f3f7fc;
    color: #1d4ed8;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav .is-active > a,
.wtmg-agency-dashboard-page .wtmg-provider-account-nav a.is-active,
.wtmg-agency-dashboard-page .wtmg-agency-nav .is-active > a,
.wtmg-agency-dashboard-page .wtmg-agency-nav a.is-active {
    background: #edf7f1;
    color: #173c2a;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-nav svg,
.wtmg-agency-dashboard-page .wtmg-agency-nav svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* ---------- Sidebar help ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-help,
.wtmg-agency-dashboard-page .wtmg-agency-help,
.wtmg-agency-dashboard-page .wtmg-provider-account-nav .wtmg-provider-account-card {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    background: #fbfdff;
    box-shadow: none;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-help h3,
.wtmg-agency-dashboard-page .wtmg-agency-help h3 {
    margin: 0 0 6px;
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-help p,
.wtmg-agency-dashboard-page .wtmg-agency-help p {
    margin: 0 0 12px;
    color: #66778d;
    font-size: 12.5px;
    line-height: 1.5;
}

/* ---------- Main content ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-main {
    min-width: 0;
    width: 100%;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-main > * + * {
    margin-top: 18px;
}

/* ---------- Page header ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-welcome-card,
.wtmg-agency-dashboard-page .wtmg-agency-page-head,
.wtmg-agency-dashboard-page .wtmg-provider-account-main > header {
    padding: 24px 26px;
    border: 1px solid #dce7f2;
    border-radius: 15px;
    background:
        linear-gradient(100deg,rgba(239,246,255,.85),rgba(239,250,245,.75));
    box-shadow: none;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-kicker {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wtmg-agency-dashboard-page h1 {
    margin: 0 0 8px;
    color: #14233d;
    font-size: clamp(30px,3.2vw,42px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.wtmg-agency-dashboard-page h1 + p,
.wtmg-agency-dashboard-page .wtmg-provider-account-welcome-card > p:last-child {
    margin: 0;
    color: #60728b;
    font-size: 15px;
    line-height: 1.55;
}

/* ---------- Main cards ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-card,
.wtmg-agency-dashboard-page .wtmg-agency-card,
.wtmg-agency-dashboard-page section.wtmg-provider-account-card {
    padding: 24px 26px;
    border: 1px solid #e0e7f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,35,68,.035);
}

.wtmg-agency-dashboard-page .wtmg-provider-account-card h2,
.wtmg-agency-dashboard-page .wtmg-agency-card h2 {
    margin: 0 0 6px;
    color: #172844;
    font-size: 19px;
    line-height: 1.3;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-card h3,
.wtmg-agency-dashboard-page .wtmg-agency-card h3 {
    color: #172844;
    font-size: 16px;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-card > p,
.wtmg-agency-dashboard-page .wtmg-agency-card > p {
    color: #687991;
}

/* ---------- Grids ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-grid,
.wtmg-agency-dashboard-page .wtmg-agency-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
}

/* ---------- Summary / KPI cards ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-summary,
.wtmg-agency-dashboard-page .wtmg-agency-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-summary > div,
.wtmg-agency-dashboard-page .wtmg-agency-summary > div {
    padding: 18px;
    border: 1px solid #e1e8f1;
    border-radius: 12px;
    background: #fbfdff;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-summary strong,
.wtmg-agency-dashboard-page .wtmg-agency-summary strong {
    color: #172844;
}

/* ---------- Information / Settings rows ---------- */

.wtmg-agency-dashboard-page dl {
    display: grid;
    grid-template-columns: minmax(170px,220px) minmax(0,1fr);
    gap: 0;
    margin: 0;
}

.wtmg-agency-dashboard-page dt,
.wtmg-agency-dashboard-page dd {
    margin: 0;
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f5;
}

.wtmg-agency-dashboard-page dt {
    color: #53657d;
    font-size: 13px;
    font-weight: 600;
}

.wtmg-agency-dashboard-page dd {
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-dashboard-page dl > *:nth-last-child(-n+2) {
    border-bottom: 0;
}

/* ---------- Tables ---------- */

.wtmg-agency-dashboard-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    background: #fff;
}

.wtmg-agency-dashboard-page thead th {
    padding: 12px 14px;
    border-bottom: 1px solid #dfe7ef;
    background: #f7f9fc;
    color: #45566e;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.wtmg-agency-dashboard-page tbody td {
    padding: 14px;
    border-bottom: 1px solid #edf1f5;
    color: #26374f;
    font-size: 13.5px;
    vertical-align: middle;
}

.wtmg-agency-dashboard-page tbody tr:last-child td {
    border-bottom: 0;
}

.wtmg-agency-dashboard-page tbody tr:hover {
    background: #fbfdff;
}

/* ---------- Forms ---------- */

.wtmg-agency-dashboard-page form:not(.hpv2-footer-form) {
    width: 100%;
}

.wtmg-agency-dashboard-page form:not(.hpv2-footer-form) label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #172844;
    font-size: 13px;
    font-weight: 600;
}

.wtmg-agency-dashboard-page input[type="text"],
.wtmg-agency-dashboard-page input[type="email"],
.wtmg-agency-dashboard-page input[type="url"],
.wtmg-agency-dashboard-page input[type="number"],
.wtmg-agency-dashboard-page input[type="password"],
.wtmg-agency-dashboard-page select,
.wtmg-agency-dashboard-page textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #fff;
    color: #172844;
    font-size: 14px;
    box-shadow: none;
}

.wtmg-agency-dashboard-page textarea {
    min-height: 110px;
    resize: vertical;
}

.wtmg-agency-dashboard-page input:focus,
.wtmg-agency-dashboard-page select:focus,
.wtmg-agency-dashboard-page textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}

/* ---------- Buttons ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-button,
.wtmg-agency-dashboard-page button[type="submit"],
.wtmg-agency-dashboard-page input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 35px;
	height: 35px;
    padding: 0 17px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-button:hover,
.wtmg-agency-dashboard-page button[type="submit"]:hover,
.wtmg-agency-dashboard-page input[type="submit"]:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-button-secondary {
    border-color: #cbd7e6;
    background: #fff;
    color: #2458a6;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-button-secondary:hover {
    background: #f4f8fd;
    border-color: #9eb7db;
    color: #194c99;
}

/* ---------- Statuses ---------- */

.wtmg-agency-dashboard-page .wtmg-status,
.wtmg-agency-dashboard-page .status,
.wtmg-agency-dashboard-page [class*="status-badge"] {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #53657d;
    font-size: 11px;
    font-weight: 700;
}

.wtmg-agency-dashboard-page .is-approved,
.wtmg-agency-dashboard-page .is-verified,
.wtmg-agency-dashboard-page .status-approved,
.wtmg-agency-dashboard-page .status-verified {
    background: #eaf8ef;
    color: #15803d;
}

.wtmg-agency-dashboard-page .is-pending,
.wtmg-agency-dashboard-page .status-pending {
    background: #fff7e6;
    color: #b76a00;
}

.wtmg-agency-dashboard-page .is-rejected,
.wtmg-agency-dashboard-page .status-rejected,
.wtmg-agency-dashboard-page .is-revoked {
    background: #fff0f0;
    color: #c53030;
}

/* ---------- Notices ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-notice {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dce5f0;
    background: #f8fbff;
    color: #405673;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-notice.is-success {
    border-color: #bde5ca;
    background: #effaf3;
    color: #176b37;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-notice.is-error {
    border-color: #f1c6c6;
    background: #fff4f4;
    color: #a52a2a;
}

/* ---------- Provider cards/list ---------- */

.wtmg-agency-dashboard-page .wtmg-agency-provider,
.wtmg-agency-dashboard-page .wtmg-provider-row {
    padding: 18px;
    border: 1px solid #e1e8f1;
    border-radius: 12px;
    background: #fff;
}

.wtmg-agency-dashboard-page .wtmg-agency-provider + .wtmg-agency-provider,
.wtmg-agency-dashboard-page .wtmg-provider-row + .wtmg-provider-row {
    margin-top: 12px;
}

/* ---------- Links ---------- */

.wtmg-agency-dashboard-page .wtmg-provider-account-main a:not(.wtmg-provider-account-button) {
    color: #2563eb;
    text-decoration: none;
}

.wtmg-agency-dashboard-page .wtmg-provider-account-main a:not(.wtmg-provider-account-button):hover {
    text-decoration: underline;
}

/* ---------- Footer spacing ---------- */

.wtmg-agency-dashboard-page {
    margin-bottom: 0;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
    .wtmg-agency-dashboard-page .wtmg-provider-account-shell {
        grid-template-columns: 215px minmax(0,1fr);
        gap: 18px;
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-summary,
    .wtmg-agency-dashboard-page .wtmg-agency-summary {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
    .wtmg-agency-dashboard-page {
        padding: 18px 12px 42px;
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-shell {
        display: block;
        width: 100%;
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-nav,
    .wtmg-agency-dashboard-page .wtmg-agency-nav,
    .wtmg-agency-dashboard-page aside:first-child {
        position: static;
        margin-bottom: 18px;
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-nav ul,
    .wtmg-agency-dashboard-page .wtmg-agency-nav ul {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-grid,
    .wtmg-agency-dashboard-page .wtmg-agency-grid,
    .wtmg-agency-dashboard-page .wtmg-provider-account-summary,
    .wtmg-agency-dashboard-page .wtmg-agency-summary {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-dashboard-page dl {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-dashboard-page dt {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .wtmg-agency-dashboard-page dd {
        padding-top: 3px;
    }

    .wtmg-agency-dashboard-page .wtmg-provider-account-card,
    .wtmg-agency-dashboard-page .wtmg-agency-card {
        padding: 20px 17px;
    }

    .wtmg-agency-dashboard-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .wtmg-agency-dashboard-page .wtmg-provider-account-nav ul,
    .wtmg-agency-dashboard-page .wtmg-agency-nav ul {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Agency Dashboard — Editable Settings
   ========================================================= */

.wtmg-agency-settings-card {
    padding: 28px 30px !important;
}

.wtmg-agency-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e7edf4;
}

.wtmg-agency-settings-head h2 {
    margin: 0 0 6px !important;
    color: #172844;
    font-size: 21px !important;
}

.wtmg-agency-settings-head p {
    margin: 0;
    color: #687991;
    font-size: 14px;
}

.wtmg-agency-settings-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.wtmg-agency-settings-status > span {
    color: #718198;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.wtmg-agency-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #53657d;
    font-size: 12px;
    font-weight: 700;
}

.wtmg-agency-status-pending {
    background: #fff7e6;
    color: #ae6500;
}

.wtmg-agency-status-verified {
    background: #eaf8ef;
    color: #15803d;
}

.wtmg-agency-status-rejected,
.wtmg-agency-status-suspended {
    background: #fff0f0;
    color: #be2d2d;
}

.wtmg-agency-settings-form {
    display: grid;
    gap: 24px;
}

.wtmg-agency-settings-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px 22px;
}

.wtmg-agency-settings-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wtmg-agency-settings-form label > span {
    color: #172844;
    font-size: 13.5px;
    font-weight: 700;
}

.wtmg-agency-settings-form label > span em {
    color: #dc2626;
    font-style: normal;
}

.wtmg-agency-settings-form input[type="text"],
.wtmg-agency-settings-form input[type="url"] {
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #fff;
    color: #172844;
    font-size: 14px;
}

.wtmg-agency-settings-form input:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}

.wtmg-agency-settings-form small {
    color: #7a899d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.wtmg-agency-settings-wide {
    grid-column: 1 / -1;
}

.wtmg-agency-settings-note {
    padding: 16px 18px;
    border: 1px solid #d8e5f5;
    border-radius: 10px;
    background: #f7fbff;
}

.wtmg-agency-settings-note strong {
    display: block;
    margin-bottom: 5px;
    color: #24466f;
    font-size: 13px;
}

.wtmg-agency-settings-note p {
    margin: 0;
    color: #60758e;
    font-size: 13px;
    line-height: 1.5;
}

.wtmg-agency-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.wtmg-agency-settings-actions .wtmg-provider-account-button {
    min-width: 150px;
}

@media (max-width: 700px) {
    .wtmg-agency-settings-card {
        padding: 22px 18px !important;
    }

    .wtmg-agency-settings-head {
        display: block;
    }

    .wtmg-agency-settings-status {
        align-items: flex-start;
        margin-top: 16px;
    }

    .wtmg-agency-settings-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-settings-wide {
        grid-column: 1;
    }

    .wtmg-agency-settings-actions {
        justify-content: stretch;
    }

    .wtmg-agency-settings-actions .wtmg-provider-account-button {
        width: 100%;
    }
}


/* =========================================================
   Agency → Managed Provider context
   ========================================================= */

.wtmg-agency-provider-context {
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #d8e5f5;
    border-radius: 10px;
    background: #f7fbff;
}

.wtmg-agency-provider-context > span {
    display: block;
    margin-bottom: 3px;
    color: #718198;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wtmg-agency-provider-context strong {
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
    color: #172844;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.wtmg-agency-provider-context a {
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.wtmg-agency-provider-context a:hover {
    text-decoration: underline;
}


/* =========================================================
   WTMG User Dashboard — Account Settings
   ========================================================= */

/* Main settings content */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main {
    min-width: 0;
}

/* Account settings page heading */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main > .wtmg-provider-account-kicker {
    margin-bottom: 8px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main > h1 {
    margin: 0 0 10px;
    color: #14233d;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

/* Form becomes a proper card */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form {
    box-sizing: border-box;
    width: 100%;
    margin-top: 28px;
    padding: 30px 32px;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,35,68,.045);
}

/* Section headings */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form h2,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form h3 {
    margin: 0 0 20px;
    color: #172844;
    font-weight: 700;
    line-height: 1.25;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form h2 {
    font-size: 21px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form h3 {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e7edf4;
    font-size: 18px;
}

/* Convert form rows into consistent layout */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form p,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form label {
    box-sizing: border-box;
}

/* Labels */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form label {
    color: #26374f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

/* Inputs */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="text"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="email"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="tel"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    padding: 0 14px;
    border: 1px solid #d5deea;
    border-radius: 9px;
    background: #fff;
    color: #172844;
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}

/* Disabled / readonly fields */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[readonly],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input:disabled {
    border-color: #e1e7ef;
    background: #f7f9fc;
    color: #52657e;
    cursor: not-allowed;
}

/* Settings form layout.
   WordPress markup may contain labels/paragraph wrappers,
   so flex-wrap handles both structures safely. */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    align-items: flex-start;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > h2,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > h3,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > .wtmg-provider-account-notice,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > button,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > input[type="submit"] {
    flex: 0 0 100%;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > label,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > p {
    flex: 1 1 calc(50% - 12px);
    min-width: 280px;
    margin: 0;
}

/* Password inputs visually grouped */
.wtmg-account-page:has(input[type="password"]) .wtmg-provider-account-main form label:has(input[type="password"]),
.wtmg-account-page:has(input[type="password"]) .wtmg-provider-account-main form p:has(input[type="password"]) {
    flex-basis: calc(50% - 12px);
}

/* Save button */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form button[type="submit"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="submit"] {
    width: auto;
    min-width: 155px;
    min-height: 46px;
    margin-top: 8px;
    padding: 0 22px;
    border: 1px solid #2f63ad;
    border-radius: 9px;
    background: #2f63ad;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form button[type="submit"]:hover,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="submit"]:hover {
    border-color: #245395;
    background: #245395;
}

/* Notices */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-notice {
    margin-bottom: 2px;
    padding: 14px 16px;
    border-radius: 9px;
}

/* Sidebar polish on User Dashboard */
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-sidebar {
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,35,68,.045);
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-sidebar nav a {
    border-radius: 10px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-sidebar nav a.is-active {
    background: #eaf6ef;
}

/* Responsive */
@media (max-width: 760px) {

    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form {
        display: block;
        padding: 22px 18px;
    }

    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > label,
    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > p {
        width: 100%;
        min-width: 0;
        margin-bottom: 18px;
    }

    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form button[type="submit"],
    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="submit"] {
        width: 100%;
    }

}


/* =========================================================
   User Account Settings — compact width refinement
   ========================================================= */

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form {
    max-width: 860px;
    margin-left: 0;
    margin-right: auto;
    padding: 28px 30px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > label,
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > p {
    flex: 0 1 calc(50% - 12px);
    min-width: 0;
    max-width: 410px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="text"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="email"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="tel"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form input[type="password"] {
    min-height: 44px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form h3 {
    margin-top: 22px;
    padding-top: 22px;
}

.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > button[type="submit"],
.wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > input[type="submit"] {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 150px;
    max-width: 190px;
    min-height: 44px;
    margin-top: 8px;
    margin-left: auto;
    padding: 0 22px;
}

@media (max-width: 760px) {
    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form {
        max-width: none;
        padding: 22px 18px;
    }

    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > label,
    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > p {
        max-width: none;
    }

    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > button[type="submit"],
    .wtmg-account-page:has(input[name*="password"]) .wtmg-provider-account-main form > input[type="submit"] {
        width: 100% !important;
        max-width: none;
        margin-left: 0;
    }
}


/* =========================================================
   User Dashboard — Saved Providers action buttons
   ========================================================= */

/* Links inside each saved-provider row */
.wtmg-account-page .wtmg-provider-account-list-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #2f63ad;
    border-radius: 9px;
    background: #2f63ad;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.wtmg-account-page .wtmg-provider-account-list-item a:hover,
.wtmg-account-page .wtmg-provider-account-list-item a:focus {
    border-color: #245395;
    background: #245395;
    color: #fff !important;
    text-decoration: none !important;
}

/* Keep action spacing consistent */
.wtmg-account-page .wtmg-provider-account-list-item {
    gap: 12px;
}

.wtmg-account-page .wtmg-provider-account-list-item form {
    margin: 0;
}

/* Existing Remove Saved button — same dimensions */
.wtmg-account-page .wtmg-provider-account-list-item button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .wtmg-account-page .wtmg-provider-account-list-item a,
    .wtmg-account-page .wtmg-provider-account-list-item button[type="submit"] {
        width: 100%;
    }
}


/* =========================================================
   User Messages — match Provider Messages UI
   ========================================================= */

/* Main messages header */
.wtmg-account-page:has(.wtmg-user-account-messages) .wtmg-provider-account-main > .wtmg-provider-account-card:first-child,
.wtmg-account-page:has(.wtmg-user-message-layout) .wtmg-provider-account-main > .wtmg-provider-account-card:first-child {
    border: 1px solid #dce7f2;
    border-radius: 15px;
    background:
        linear-gradient(
            105deg,
            rgba(239,246,255,.82),
            rgba(239,250,245,.72)
        );
    box-shadow: none;
}

/* Two-column messaging area */
.wtmg-user-account-messages,
.wtmg-user-message-layout,
.wtmg-user-account-message-layout,
.wtmg-user-account-conversations {
    gap: 22px;
}

/* When there are no conversations:
   collapse user two-column empty state to one Provider-style panel */
.wtmg-provider-account-main:has(.wtmg-user-account-empty):has(h1) .wtmg-user-account-message-layout,
.wtmg-provider-account-main:has(.wtmg-user-account-empty):has(h1) .wtmg-user-message-layout,
.wtmg-provider-account-main:has(.wtmg-user-account-empty):has(h1) .wtmg-user-account-messages {
    grid-template-columns: 1fr !important;
}

/* Empty list panel */
.wtmg-provider-account-main .wtmg-user-account-empty {
    box-sizing: border-box;
}

/* User Messages empty-state area */
.wtmg-provider-account-main:has(.wtmg-user-account-empty) .wtmg-user-account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 42px 32px;
    border-radius: 15px;
    text-align: center;
}

/* Match Provider message empty heading */
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
.wtmg-user-account-empty strong {
    display: block;
    margin: 16px 0 8px;
    color: #14233d;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

/* Empty description */
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
.wtmg-user-account-empty p {
    max-width: 520px;
    margin: 0;
    color: #687991;
    font-size: 15px;
    line-height: 1.55;
}

/* Hide the redundant "Select a conversation" panel when no messages exist */
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
.wtmg-user-account-conversation-detail:has(h2),
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
.wtmg-user-message-detail:has(h2),
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
.wtmg-user-account-message-detail:has(h2) {
    display: none;
}

/* Generic fallback for current empty right panel */
.wtmg-provider-account-main:has(.wtmg-user-account-empty)
section:has(> h2:first-child):has(p:last-child) {
    border-radius: 15px;
}

/* Conversation list cards when messages exist */
.wtmg-user-account-conversation-list,
.wtmg-user-message-list {
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,35,68,.035);
}

/* Conversation detail */
.wtmg-user-account-conversation-detail,
.wtmg-user-message-detail,
.wtmg-user-account-message-detail {
    border: 1px solid #dfe7f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,35,68,.035);
}

/* Mobile */
@media (max-width: 760px) {
    .wtmg-user-account-messages,
    .wtmg-user-message-layout,
    .wtmg-user-account-message-layout {
        grid-template-columns: 1fr !important;
    }

    .wtmg-provider-account-main:has(.wtmg-user-account-empty)
    .wtmg-user-account-empty {
        min-height: 250px;
        padding: 32px 20px;
    }
}


/* =========================================================
   User Messages empty state — Provider-style single panel
   ========================================================= */

/* If the user has no conversations, make the remaining
   conversation-list card span the whole messaging area. */
.wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child) {
    grid-template-columns: 1fr !important;
}

.wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child)
.wtmg-messaging-list {
    width: 100%;
}

.wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child)
.wtmg-messaging-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
    padding: 42px 30px;
    text-align: center;
}

.wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child)
.wtmg-messaging-empty h2 {
    margin: 18px 0 8px;
    color: #14233d;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child)
.wtmg-messaging-empty p {
    margin: 0;
    color: #687991;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .wtmg-messaging-layout:has(.wtmg-messaging-empty:only-child)
    .wtmg-messaging-empty {
        min-height: 240px;
        padding: 32px 20px;
    }
}


/* =========================================================
   Provider business switcher — dropdown + add button same row
   ========================================================= */

.wtmg-provider-account-main .wtmg-provider-account-card:has(select[name="provider_account_id"]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* The account selector form */
.wtmg-provider-account-main
.wtmg-provider-account-card:has(select[name="provider_account_id"])
form:has(select[name="provider_account_id"]) {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
}

/* "Managing" label + select */
.wtmg-provider-account-main
.wtmg-provider-account-card:has(select[name="provider_account_id"])
form:has(select[name="provider_account_id"]) label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    white-space: nowrap;
}

.wtmg-provider-account-main
.wtmg-provider-account-card:has(select[name="provider_account_id"])
select[name="provider_account_id"] {
    width: auto;
    min-width: 250px;
    min-height: 46px;
    margin: 0;
}

/* Add Another Business */
.wtmg-provider-account-main
.wtmg-provider-account-card:has(select[name="provider_account_id"])
.wtmg-provider-account-button {
    width: auto;
    min-height: 46px;
    margin: 0 !important;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 700px) {
    .wtmg-provider-account-main
    .wtmg-provider-account-card:has(select[name="provider_account_id"]) {
        display: block;
    }

    .wtmg-provider-account-main
    .wtmg-provider-account-card:has(select[name="provider_account_id"])
    form:has(select[name="provider_account_id"]) {
        width: 100%;
    }

    .wtmg-provider-account-main
    .wtmg-provider-account-card:has(select[name="provider_account_id"])
    form:has(select[name="provider_account_id"]) label {
        width: 100%;
    }

    .wtmg-provider-account-main
    .wtmg-provider-account-card:has(select[name="provider_account_id"])
    select[name="provider_account_id"] {
        flex: 1;
        min-width: 0;
    }

    .wtmg-provider-account-main
    .wtmg-provider-account-card:has(select[name="provider_account_id"])
    .wtmg-provider-account-button {
        margin-top: 12px !important;
    }
}


/* =========================================================
   Unified Messaging Inbox — User + Provider
   ========================================================= */

.wtmg-messaging-layout {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.65fr);
    gap: 20px;
    align-items: stretch;
}

.wtmg-messaging-layout-list,
.wtmg-messaging-layout-thread {
    min-width: 0;
}

.wtmg-messaging-layout-list > .wtmg-messaging-card,
.wtmg-messaging-layout-thread > .wtmg-messaging-card {
    height: 100%;
    box-sizing: border-box;
}

/* Empty inbox = one wide card */
.wtmg-messaging-layout.is-empty {
    grid-template-columns: 1fr;
}

.wtmg-messaging-layout.is-empty .wtmg-messaging-inbox {
    width: 100%;
    min-height: 300px;
}

/* Conversation list */
.wtmg-messaging-inbox {
    padding: 0;
    overflow: hidden;
}

.wtmg-messaging-list {
    display: grid;
}

.wtmg-messaging-thread {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    padding: 17px 18px;
    border-bottom: 1px solid #e9eef4;
    color: #172844;
    text-decoration: none;
    transition:
        background .15s ease,
        border-color .15s ease;
}

.wtmg-messaging-thread:last-child {
    border-bottom: 0;
}

.wtmg-messaging-thread:hover {
    background: #f7fbff;
    text-decoration: none;
}

.wtmg-messaging-thread h3 {
    margin: 0 0 4px;
    color: #172844;
    font-size: 15px;
    line-height: 1.3;
}

.wtmg-messaging-thread p {
    margin: 0 0 6px;
    color: #53677f;
    font-size: 12.5px;
    line-height: 1.4;
}

.wtmg-messaging-thread > div:first-child > span {
    display: block;
    overflow: hidden;
    color: #76869a;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.wtmg-messaging-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.wtmg-messaging-thread-meta time {
    color: #8996a8;
    font-size: 11px;
}

.wtmg-messaging-thread-meta strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
}

/* Right-side "select conversation" panel */
.wtmg-messaging-select-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 28px;
    text-align: center;
}

.wtmg-messaging-select-conversation > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #f0f6ff;
    color: #245da9;
}

.wtmg-messaging-select-conversation svg {
    width: 26px;
    height: 26px;
}

.wtmg-messaging-select-conversation h2 {
    margin: 0 0 9px;
    color: #172844;
    font-size: 26px;
    font-weight: 500;
}

.wtmg-messaging-select-conversation p {
    max-width: 480px;
    margin: 0;
    color: #697b91;
    font-size: 14px;
    line-height: 1.55;
}

/* Conversation panel */
.wtmg-messaging-conversation {
    min-height: 520px;
}

.wtmg-messaging-conversation-head {
    gap: 20px;
}

.wtmg-messaging-messages {
    min-height: 260px;
}

/* Unified empty state */
.wtmg-messaging-layout.is-empty .wtmg-messaging-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 42px 30px;
    text-align: center;
}

.wtmg-messaging-layout.is-empty .wtmg-messaging-empty h2 {
    margin: 16px 0 8px;
    color: #172844;
    font-size: 28px;
    font-weight: 500;
}

.wtmg-messaging-layout.is-empty .wtmg-messaging-empty p {
    margin: 0;
    color: #687991;
    font-size: 15px;
}

/* Mobile: list first, selected thread below */
@media (max-width: 820px) {
    .wtmg-messaging-layout {
        grid-template-columns: 1fr;
    }

    .wtmg-messaging-layout-thread {
        margin-top: 2px;
    }

    .wtmg-messaging-conversation {
        min-height: auto;
    }
}


/* =========================================================
   Provider Single — About card grid
   ========================================================= */

.provider-about-card .wtmg-provider-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.provider-about-card .wtmg-provider-about-item {
    min-height: 130px;
    padding: 22px 24px;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #fbfdff;
    box-shadow: 0 8px 22px rgba(15,35,68,.035);
}

.provider-about-card .wtmg-provider-about-label {
    display: block;
    margin-bottom: 10px;
    color: #5f7188;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.provider-about-card .wtmg-provider-about-item > strong {
    display: block;
    color: #1654be;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
}

.provider-about-card .wtmg-provider-about-item-tags {
    display: flex;
    flex-direction: column;
}

.provider-about-card .wtmg-provider-single-v3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.provider-about-card .wtmg-provider-single-v3-tags span,
.provider-about-card .wtmg-provider-single-v3-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d7e3f2;
    border-radius: 999px;
    background: #f4f8fd;
    color: #2458a6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.provider-about-card .wtmg-provider-single-v3-tags a:hover {
    background: #edf4fb;
    text-decoration: none;
}

@media (max-width: 980px) {
    .provider-about-card .wtmg-provider-about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .provider-about-card .wtmg-provider-about-grid {
        grid-template-columns: 1fr;
    }

    .provider-about-card .wtmg-provider-about-item {
        min-height: auto;
    }
}


/* =========================================================
   PROVIDER TEAM
   ========================================================= */

.wtmg-provider-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wtmg-provider-team-card {
    position: relative;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,35,68,.035);
}

.wtmg-provider-team-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #eef5ff;
    color: #2762b3;
}

.wtmg-provider-team-icon svg {
    width: 22px;
    height: 22px;
}

.wtmg-provider-team-edit-form,
.wtmg-provider-team-add-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wtmg-provider-team-edit-form label,
.wtmg-provider-team-add-form label {
    display: block;
    min-width: 0;
}

.wtmg-provider-team-edit-form label > span,
.wtmg-provider-team-add-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #415570;
    font-size: 12px;
    font-weight: 700;
}

.wtmg-provider-team-edit-form input,
.wtmg-provider-team-edit-form textarea,
.wtmg-provider-team-edit-form select,
.wtmg-provider-team-add-form input,
.wtmg-provider-team-add-form textarea,
.wtmg-provider-team-add-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #fff;
}

.wtmg-provider-team-edit-form label:has(textarea),
.wtmg-provider-team-add-form label:has(textarea),
.wtmg-provider-team-edit-form label:has(input[name="wtmg_team_linkedin_url"]),
.wtmg-provider-team-add-form label:has(input[name="wtmg_team_linkedin_url"]) {
    grid-column: 1 / -1;
}

.wtmg-provider-team-edit-form textarea,
.wtmg-provider-team-add-form textarea {
    min-height: 100px;
    resize: vertical;
}

.wtmg-provider-team-edit-form > button,
.wtmg-provider-team-add-form > button {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto !important;
    min-width: 150px;
}

.wtmg-provider-team-remove-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
}

.wtmg-provider-team-remove-form button {
    padding: 8px 13px;
    border: 1px solid #efb2b2;
    border-radius: 7px;
    background: #fff8f8;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   AGENCY TEAM
   ========================================================= */

.wtmg-agency-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.wtmg-agency-team-card {
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,35,68,.035);
}

.wtmg-agency-team-card.is-owner {
    background: #fbfdff;
}

.wtmg-agency-team-member-head {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 13px;
    align-items: center;
    margin-bottom: 20px;
}

.wtmg-agency-team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edf4ff;
    color: #245daa;
    font-size: 17px;
    font-weight: 800;
}

.wtmg-agency-team-member-head h3 {
    margin: 0 0 3px;
    color: #172844;
    font-size: 16px;
}

.wtmg-agency-team-member-head p {
    overflow: hidden;
    margin: 0;
    color: #687b93;
    font-size: 12px;
    text-overflow: ellipsis;
}

.wtmg-agency-team-role-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf6f1;
    color: #20754b;
    font-size: 11px;
    font-weight: 700;
}

.wtmg-agency-team-owner-note,
.wtmg-agency-team-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f7f9fc;
}

.wtmg-agency-team-owner-note strong,
.wtmg-agency-team-status-row span {
    color: #172844;
    font-size: 12px;
}

.wtmg-agency-team-owner-note span,
.wtmg-agency-team-status-row strong {
    color: #65778e;
    font-size: 12px;
}

.wtmg-agency-team-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.wtmg-agency-team-edit-form label,
.wtmg-agency-team-add-form label {
    display: block;
}

.wtmg-agency-team-edit-form label > span,
.wtmg-agency-team-add-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #415570;
    font-size: 12px;
    font-weight: 700;
}

.wtmg-agency-team-edit-form select,
.wtmg-agency-team-add-form input,
.wtmg-agency-team-add-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    background: #fff;
}

.wtmg-agency-team-edit-form > button {
    width: auto !important;
    margin-top: 14px;
}

.wtmg-agency-team-remove-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
}

.wtmg-agency-team-remove-form button {
    padding: 8px 13px;
    border: 1px solid #efb2b2;
    border-radius: 7px;
    background: #fff8f8;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.wtmg-agency-team-add-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr .7fr;
    gap: 16px;
    align-items: end;
}

.wtmg-agency-team-add-actions {
    margin-top: 20px;
}

.wtmg-agency-team-add-actions .wtmg-provider-account-button {
    width: auto !important;
    min-width: 170px;
}

.wtmg-agency-team-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    text-align: center;
}

.wtmg-agency-team-empty svg {
    width: 30px;
    height: 30px;
}


/* =========================================================
   TEAM RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .wtmg-provider-team-grid,
    .wtmg-agency-team-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-agency-team-add-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .wtmg-provider-team-edit-form,
    .wtmg-provider-team-add-form,
    .wtmg-agency-team-form-grid,
    .wtmg-agency-team-add-grid {
        grid-template-columns: 1fr;
    }

    .wtmg-provider-team-edit-form label:has(textarea),
    .wtmg-provider-team-add-form label:has(textarea),
    .wtmg-provider-team-edit-form label:has(input[name="wtmg_team_linkedin_url"]),
    .wtmg-provider-team-add-form label:has(input[name="wtmg_team_linkedin_url"]) {
        grid-column: auto;
    }

    .wtmg-agency-team-member-head {
        grid-template-columns: 44px minmax(0,1fr);
    }

    .wtmg-agency-team-role-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}


/* =========================================================
   WTMG Team Cards — Provider / Agency / Public
   ========================================================= */

.wtmg-team-page-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.wtmg-team-add-jump {
    flex:0 0 auto;
    margin-top:8px;
    text-decoration:none !important;
}

.wtmg-team-section {
    padding:28px !important;
}

.wtmg-team-card-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.wtmg-team-profile-card {
    overflow:visible;
    border:1px solid #dce5ef;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 24px rgba(15,35,68,.045);
}

.wtmg-team-profile-main {
    display:grid;
    grid-template-columns:150px minmax(0,1fr) 145px;
    gap:24px;
    align-items:center;
    min-height:220px;
    padding:26px;
}

.wtmg-team-photo {
    display:flex;
    align-items:center;
    justify-content:center;
    width:150px;
    height:150px;
    margin:auto;
    overflow:hidden;
    border-radius:50%;
    background:#edf3fa;
}

.wtmg-team-photo img,
.wtmg-team-photo-image {
    width:100% !important;
    height:100% !important;
    object-fit:cover;
    border-radius:50%;
}

.wtmg-team-photo-placeholder {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    background:linear-gradient(145deg,#eef3f8,#dce7f2);
    color:#8091a7;
}

.wtmg-team-photo-placeholder svg {
    width:62%;
    height:62%;
    fill:none;
    stroke:currentColor;
    stroke-width:2.5;
}

.wtmg-team-profile-info {
    min-width:0;
}

.wtmg-team-profile-info h3 {
    margin:0 0 10px;
    color:#122642;
    font-size:24px;
    line-height:1.2;
}

.wtmg-team-title {
    display:inline-flex;
    width:max-content;
    max-width:100%;
    margin-bottom:14px;
    padding:7px 11px;
    border-radius:7px;
    background:#edf4ff;
    color:#1654b7;
    font-size:13px;
    font-weight:700;
    line-height:1.25;
}

.wtmg-team-bio {
    max-width:520px;
    margin:0 0 17px;
    color:#53667f;
    font-size:14px;
    line-height:1.55;
}

.wtmg-team-meta {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px 18px;
    color:#687b92;
    font-size:12px;
}

.wtmg-team-meta a {
    color:#2462bd;
    font-weight:700;
    text-decoration:none;
}

.wtmg-team-status {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:5px 9px;
    border-radius:6px;
    font-weight:700;
}

.wtmg-team-status i {
    width:7px;
    height:7px;
    border-radius:50%;
}

.wtmg-team-status.is-active {
    background:#edf8f2;
    color:#238356;
}

.wtmg-team-status.is-active i {
    background:#39aa75;
}

.wtmg-team-status.is-inactive {
    background:#f3f5f7;
    color:#68798e;
}

.wtmg-team-status.is-inactive i {
    background:#8795a8;
}

.wtmg-team-card-actions {
    display:flex;
    flex-direction:column;
    gap:12px;
    align-self:stretch;
    justify-content:center;
    padding-left:22px;
    border-left:1px solid #e8edf3;
}

.wtmg-team-card-actions form {
    margin:0;
}

.wtmg-team-action {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:42px;
    padding:0 16px;
    border-radius:8px;
    background:#fff;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
}

.wtmg-team-action-edit {
    list-style:none;
    border:1px solid #3974cf;
    color:#2461bd;
}

.wtmg-team-action-edit::-webkit-details-marker {
    display:none;
}

.wtmg-team-action-remove {
    border:1px solid #efb5b5;
    color:#c63838;
}

.wtmg-team-owner-lock {
    padding:13px;
    border:1px solid #dce5ef;
    border-radius:9px;
    background:#f7f9fc;
    color:#63758b;
    font-size:11px;
    line-height:1.45;
    text-align:center;
}

.wtmg-team-edit-details {
    position:relative;
}

.wtmg-team-edit-panel {
    position:absolute;
    z-index:30;
    top:50px;
    right:0;
    width:520px;
    padding:20px;
    border:1px solid #dce5ef;
    border-radius:12px;
    background:#fff;
    box-shadow:0 18px 45px rgba(15,35,68,.16);
}

.wtmg-team-edit-form,
.wtmg-team-add-form {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.wtmg-team-edit-form label,
.wtmg-team-add-form label {
    display:block;
}

.wtmg-team-edit-form label.is-wide,
.wtmg-team-add-form label.is-wide {
    grid-column:1/-1;
}

.wtmg-team-edit-form label > span,
.wtmg-team-add-form label > span {
    display:block;
    margin-bottom:7px;
    color:#40546e;
    font-size:12px;
    font-weight:700;
}

.wtmg-team-edit-form input,
.wtmg-team-edit-form textarea,
.wtmg-team-edit-form select,
.wtmg-team-add-form input,
.wtmg-team-add-form textarea,
.wtmg-team-add-form select {
    box-sizing:border-box;
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #d6e0eb;
    border-radius:8px;
    background:#fff;
}

.wtmg-team-edit-form textarea,
.wtmg-team-add-form textarea {
    min-height:90px;
    resize:vertical;
}

.wtmg-team-edit-form button,
.wtmg-team-add-form button {
    align-self:end;
    width:auto !important;
}

.wtmg-team-add-card {
    margin-top:22px;
}

.wtmg-agency-team-add-form {
    grid-template-columns:1fr 1.35fr .65fr auto;
    align-items:end;
}


/* =========================================================
   PUBLIC PROVIDER TEAM
   ========================================================= */

.wtmg-public-team-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    margin-top:24px;
}

.wtmg-public-team-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    box-sizing:border-box;
    min-height:410px;
    padding:30px 28px;
    border:1px solid #dce5ef;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 24px rgba(15,35,68,.045);
    text-align:center;
}

.wtmg-public-team-card .wtmg-team-photo {
    width:170px;
    height:170px;
    margin:0 auto 22px;
}

.wtmg-public-team-card h3 {
    margin:0 0 10px;
    color:#122642;
    font-size:24px;
    line-height:1.2;
}

.wtmg-public-team-card .wtmg-team-title {
    margin:0 auto 18px;
}

.wtmg-public-team-card p {
    max-width:450px;
    margin:0;
    padding-top:18px;
    border-top:1px solid #e8edf3;
    color:#596b81;
    font-size:14px;
    line-height:1.6;
}

.wtmg-public-team-linkedin {
    display:inline-flex;
    margin-top:18px;
    color:#2461bd;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1100px) {

    .wtmg-team-card-grid,
    .wtmg-public-team-grid {
        grid-template-columns:1fr;
    }

}

@media (max-width:760px) {

    .wtmg-team-page-head {
        display:block;
    }

    .wtmg-team-add-jump {
        display:inline-flex;
        margin-top:16px;
    }

    .wtmg-team-profile-main {
        grid-template-columns:1fr;
        text-align:center;
    }

    .wtmg-team-profile-info h3 {
        font-size:22px;
    }

    .wtmg-team-title {
        margin-right:auto;
        margin-left:auto;
    }

    .wtmg-team-meta {
        justify-content:center;
    }

    .wtmg-team-card-actions {
        flex-direction:row;
        padding:18px 0 0;
        border-top:1px solid #e8edf3;
        border-left:0;
    }

    .wtmg-team-card-actions > * {
        flex:1;
    }

    .wtmg-team-edit-panel {
        position:fixed;
        top:8%;
        right:5%;
        left:5%;
        width:auto;
        max-height:84vh;
        overflow:auto;
    }

    .wtmg-team-edit-form,
    .wtmg-team-add-form,
    .wtmg-agency-team-add-form {
        grid-template-columns:1fr;
    }

    .wtmg-team-edit-form label.is-wide,
    .wtmg-team-add-form label.is-wide {
        grid-column:auto;
    }

}


/* =========================================================
   WTMG TEAM UI — FINAL OVERRIDE
   Provider Team + Agency Team
   ========================================================= */

.wtmg-provider-account-main .wtmg-team-section {
    padding: 34px !important;
    overflow: visible !important;
}

/* Two cards per row on desktop */
.wtmg-provider-account-main .wtmg-team-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Card */
.wtmg-provider-account-main .wtmg-team-profile-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    border: 1px solid #d9e4ef !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(15,35,68,.045) !important;
}

/* Horizontal content */
.wtmg-provider-account-main .wtmg-team-profile-main {
    display: grid !important;
    grid-template-columns: 126px minmax(220px, 1fr) 122px !important;
    gap: 20px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 235px !important;
    padding: 28px !important;
    box-sizing: border-box !important;
}

/* PHOTO */
.wtmg-provider-account-main .wtmg-team-photo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 126px !important;
    height: 126px !important;
    min-width: 126px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    background: #eaf1f8 !important;
}

.wtmg-provider-account-main .wtmg-team-photo img,
.wtmg-provider-account-main .wtmg-team-photo-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Default silhouette */
.wtmg-provider-account-main .wtmg-team-photo-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(145deg,#eef4fa,#dce7f2) !important;
    color: #7d90a7 !important;
}

.wtmg-provider-account-main .wtmg-team-photo-placeholder svg {
    width: 66px !important;
    height: 66px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
}


/* INFORMATION COLUMN */
.wtmg-provider-account-main .wtmg-team-profile-info {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: left !important;
}

.wtmg-provider-account-main .wtmg-team-profile-info h3 {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 9px !important;
    color: #132642 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    /* critical: stop one-letter wrapping */
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}

.wtmg-provider-account-main .wtmg-team-title {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 15px !important;
    padding: 7px 11px !important;
    border-radius: 7px !important;
    background: #edf4ff !important;
    color: #1755b7 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}

.wtmg-provider-account-main .wtmg-team-bio {
    display: block !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 0 16px !important;
    color: #53667e !important;
    font-size: 13px !important;
    line-height: 1.55 !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.wtmg-provider-account-main .wtmg-team-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 16px !important;
    color: #6b7d92 !important;
    font-size: 11px !important;
}

/* Email must not destroy the layout */
.wtmg-agency-dashboard-page .wtmg-team-bio {
    overflow-wrap: anywhere !important;
}


/* STATUS */
.wtmg-provider-account-main .wtmg-team-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
}

.wtmg-provider-account-main .wtmg-team-status i {
    display: block !important;
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 50% !important;
}

.wtmg-provider-account-main .wtmg-team-status.is-active {
    background: #edf8f2 !important;
    color: #278457 !important;
}

.wtmg-provider-account-main .wtmg-team-status.is-active i {
    background: #35ad74 !important;
}


/* ACTION COLUMN */
.wtmg-provider-account-main .wtmg-team-card-actions {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 122px !important;
    min-width: 122px !important;
    align-self: stretch !important;
    padding-left: 18px !important;
    border-left: 1px solid #e6edf4 !important;
    box-sizing: border-box !important;
}

.wtmg-provider-account-main .wtmg-team-card-actions form,
.wtmg-provider-account-main .wtmg-team-edit-details {
    width: 100% !important;
    margin: 0 !important;
}

.wtmg-provider-account-main .wtmg-team-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
}

.wtmg-provider-account-main .wtmg-team-action-edit {
    border: 1px solid #2e6bd0 !important;
    color: #235fbf !important;
}

.wtmg-provider-account-main .wtmg-team-action-remove {
    border: 1px solid #efb1b1 !important;
    background: #fffafa !important;
    color: #c73737 !important;
}

.wtmg-provider-account-main .wtmg-team-owner-lock {
    display: block !important;
    width: 100% !important;
    padding: 12px 8px !important;
    border: 1px solid #dce5ef !important;
    border-radius: 9px !important;
    background: #f7f9fc !important;
    color: #64768c !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    text-align: center !important;
}


/* EDIT POPOVER */
.wtmg-provider-account-main .wtmg-team-edit-details {
    position: relative !important;
}

.wtmg-provider-account-main .wtmg-team-edit-panel {
    position: absolute !important;
    z-index: 999 !important;
    top: 50px !important;
    right: 0 !important;
    width: 520px !important;
    max-width: calc(100vw - 60px) !important;
    padding: 22px !important;
    border: 1px solid #d9e4ef !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 20px 50px rgba(15,35,68,.18) !important;
}

.wtmg-provider-account-main .wtmg-team-edit-form,
.wtmg-provider-account-main .wtmg-team-add-form {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
}

.wtmg-provider-account-main .wtmg-team-edit-form label,
.wtmg-provider-account-main .wtmg-team-add-form label {
    display: block !important;
    min-width: 0 !important;
}

.wtmg-provider-account-main .wtmg-team-edit-form label.is-wide,
.wtmg-provider-account-main .wtmg-team-add-form label.is-wide {
    grid-column: 1 / -1 !important;
}

.wtmg-provider-account-main .wtmg-team-edit-form label > span,
.wtmg-provider-account-main .wtmg-team-add-form label > span {
    display: block !important;
    margin: 0 0 7px !important;
    color: #42566f !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.wtmg-provider-account-main .wtmg-team-edit-form input,
.wtmg-provider-account-main .wtmg-team-edit-form textarea,
.wtmg-provider-account-main .wtmg-team-edit-form select,
.wtmg-provider-account-main .wtmg-team-add-form input,
.wtmg-provider-account-main .wtmg-team-add-form textarea,
.wtmg-provider-account-main .wtmg-team-add-form select {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #d4dfeb !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}


/* ADD MEMBER CARD */
.wtmg-provider-account-main .wtmg-team-add-card {
    margin-top: 24px !important;
}

.wtmg-provider-account-main .wtmg-team-add-form {
    align-items: end !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form {
    grid-template-columns: 1fr 1.3fr .7fr auto !important;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1250px) {

    .wtmg-provider-account-main .wtmg-team-card-grid {
        grid-template-columns: 1fr !important;
    }

    .wtmg-provider-account-main .wtmg-team-profile-main {
        grid-template-columns: 140px minmax(0,1fr) 140px !important;
    }
}

@media (max-width: 760px) {

    .wtmg-provider-account-main .wtmg-team-profile-main {
        display: flex !important;
        flex-direction: column !important;
        padding: 24px !important;
        text-align: center !important;
    }

    .wtmg-provider-account-main .wtmg-team-profile-info {
        text-align: center !important;
    }

    .wtmg-provider-account-main .wtmg-team-title {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .wtmg-provider-account-main .wtmg-team-meta {
        justify-content: center !important;
    }

    .wtmg-provider-account-main .wtmg-team-card-actions {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 18px 0 0 !important;
        border-top: 1px solid #e6edf4 !important;
        border-left: 0 !important;
    }

    .wtmg-provider-account-main .wtmg-team-edit-panel {
        position: fixed !important;
        top: 7vh !important;
        right: 5vw !important;
        left: 5vw !important;
        width: auto !important;
        max-height: 86vh !important;
        overflow-y: auto !important;
    }

    .wtmg-provider-account-main .wtmg-team-edit-form,
    .wtmg-provider-account-main .wtmg-team-add-form,
    .wtmg-agency-dashboard-page .wtmg-agency-team-add-form {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   Provider Team — Compact Add Member Form
   Match Agency Add Member UI
   ========================================================= */

.wtmg-provider-team-add-compact {
    margin-top: 24px !important;
}

.wtmg-provider-team-add-compact .wtmg-provider-account-card-head {
    margin-bottom: 20px !important;
}

.wtmg-provider-team-compact-form {
    display: grid !important;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(220px, 1.1fr)
        auto !important;
    gap: 16px !important;
    align-items: end !important;
    width: 100% !important;
}

.wtmg-provider-team-compact-form label {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.wtmg-provider-team-compact-form label > span {
    display: block !important;
    margin: 0 0 7px !important;
    color: #40546e !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.wtmg-provider-team-compact-form input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #d5e0eb !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

.wtmg-provider-team-compact-form input[type="file"] {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 7px 9px !important;
    border: 1px solid #d5e0eb !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #52657d !important;
    font-size: 12px !important;
}

.wtmg-provider-team-compact-form input[type="file"]::file-selector-button {
    margin-right: 10px !important;
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #eef4fc !important;
    color: #245dac !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.wtmg-provider-team-compact-form > button {
    width: auto !important;
    min-width: 155px !important;
    min-height: 44px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 1050px) {

    .wtmg-provider-team-compact-form {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .wtmg-provider-team-compact-form > button {
        justify-self: start !important;
    }

}

@media (max-width: 650px) {

    .wtmg-provider-team-compact-form {
        grid-template-columns: 1fr !important;
    }

}


/* =========================================================
   TEAM CARDS — ACTIONS INSIDE CARD BOTTOM
   Provider + Agency dashboards only
   ========================================================= */

.wtmg-provider-account-main .wtmg-team-profile-main {
    display: grid !important;
    grid-template-columns: 126px minmax(0,1fr) !important;
    grid-template-areas:
        "photo info"
        "actions actions" !important;
    gap: 22px 24px !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 28px !important;
}

/* Photo */
.wtmg-provider-account-main .wtmg-team-photo {
    grid-area: photo !important;
}

/* Main info */
.wtmg-provider-account-main .wtmg-team-profile-info {
    grid-area: info !important;
}

/* Actions become bottom row */
.wtmg-provider-account-main .wtmg-team-card-actions {
    grid-area: actions !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 18px 0 0 !important;
    margin: 0 !important;

    border-top: 1px solid #e7edf3 !important;
    border-left: 0 !important;

    box-sizing: border-box !important;
}

.wtmg-provider-account-main .wtmg-team-card-actions > *,
.wtmg-provider-account-main .wtmg-team-card-actions form,
.wtmg-provider-account-main .wtmg-team-edit-details {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

.wtmg-provider-account-main .wtmg-team-card-actions .wtmg-team-action {
    width: auto !important;
    min-width: 110px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
}

/* Owner lock belongs in the bottom action area too */
.wtmg-provider-account-main .wtmg-team-owner-lock {
    width: auto !important;
    max-width: 270px !important;
    margin-left: auto !important;
    padding: 10px 14px !important;
}


/* =========================================================
   AGENCY ADD MEMBER — match Provider Add Member
   ========================================================= */

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form {
    display: grid !important;

    grid-template-columns:
        minmax(180px,1fr)
        minmax(180px,1fr)
        minmax(220px,1.1fr)
        auto !important;

    gap: 16px !important;
    align-items: end !important;
    width: 100% !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form label {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form label > span {
    display: block !important;
    margin: 0 0 7px !important;
    color: #40546e !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #d5e0eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form input[type="file"] {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 7px 9px !important;
    border: 1px solid #d5e0eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    color: #52657d !important;
    font-size: 12px !important;
}

.wtmg-agency-dashboard-page
.wtmg-agency-team-add-form
input[type="file"]::file-selector-button {
    margin-right: 10px !important;
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #eef4fc !important;
    color: #245dac !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.wtmg-agency-dashboard-page .wtmg-agency-team-add-form > button {
    width: auto !important;
    min-width: 170px !important;
    min-height: 44px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* Agency Team preview and Team Settings */
.wtmg-agency-team-info-box {
    display: grid;
    gap: 14px;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%) !important;
    border-color: #dbeafe !important;
}

.wtmg-agency-team-info-box h2 {
    margin: 0;
}

.wtmg-agency-team-info-box p {
    max-width: 900px;
    color: #475569;
}

.wtmg-agency-member-settings-list {
    display: grid;
    gap: 18px;
}

.wtmg-agency-member-settings-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.wtmg-agency-member-settings-avatar .wtmg-team-photo-image {
    width: 96px !important;
    height: 96px !important;
    border-radius: 999px !important;
    object-fit: cover;
}

.wtmg-agency-member-settings-form,
.wtmg-agency-team-add-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.wtmg-agency-member-settings-form label,
.wtmg-agency-team-add-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #334155;
    font-weight: 700;
}

.wtmg-agency-member-settings-form input[type="text"],
.wtmg-agency-member-settings-form input[type="email"],
.wtmg-agency-member-settings-form input[type="password"],
.wtmg-agency-member-settings-form input[type="file"],
.wtmg-agency-team-add-form input[type="text"],
.wtmg-agency-team-add-form input[type="email"],
.wtmg-agency-team-add-form input[type="password"],
.wtmg-agency-team-add-form input[type="file"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #0f2748;
    font-weight: 600;
}

.wtmg-agency-member-settings-form small,
.wtmg-agency-team-add-form small {
    color: #64748b;
    font-weight: 500;
}

.wtmg-agency-access-toggle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    min-height: 46px;
}

.wtmg-agency-access-toggle input {
    width: 18px;
    height: 18px;
}

.wtmg-agency-member-role-note {
    color: #64748b;
    font-weight: 700;
}

.wtmg-agency-member-settings-actions,
.wtmg-agency-member-remove-form {
    align-self: end;
}

.wtmg-agency-member-remove-form {
    grid-column: 2;
}

.wtmg-agency-member-readonly {
    display: grid;
    gap: 8px;
}

.wtmg-agency-member-readonly h3,
.wtmg-agency-member-readonly p {
    margin: 0;
}

.wtmg-agency-member-readonly p {
    color: #64748b;
}

.wtmg-provider-account-notice.is-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.wtmg-team-section .wtmg-team-card-actions,
.wtmg-team-section .wtmg-team-edit-details,
.wtmg-team-section .wtmg-team-action-remove {
    display: none !important;
}


/* Tablet */
@media (max-width: 1050px) {

    .wtmg-agency-dashboard-page .wtmg-agency-team-add-form {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }

}

/* Mobile */
@media (max-width: 650px) {

    .wtmg-provider-account-main .wtmg-team-profile-main {
        display: flex !important;
        flex-direction: column !important;
    }

    .wtmg-provider-account-main .wtmg-team-card-actions {
        justify-content: stretch !important;
    }

    .wtmg-provider-account-main .wtmg-team-card-actions > *,
    .wtmg-provider-account-main .wtmg-team-card-actions form,
    .wtmg-provider-account-main .wtmg-team-edit-details {
        flex: 1 1 0 !important;
    }

    .wtmg-provider-account-main .wtmg-team-card-actions .wtmg-team-action {
        width: 100% !important;
    }

    .wtmg-agency-dashboard-page .wtmg-agency-team-add-form {
        grid-template-columns: 1fr !important;
    }

    .wtmg-agency-member-settings-card,
    .wtmg-agency-member-settings-form,
    .wtmg-agency-team-add-form {
        grid-template-columns: 1fr !important;
    }

    .wtmg-agency-member-remove-form {
        grid-column: auto;
    }

}

/* Agency Team Settings final action-row override */
.wtmg-agency-team-settings .wtmg-agency-member-settings-card {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: start !important;
    padding: 22px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15, 39, 72, 0.06) !important;
    box-sizing: border-box !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-body,
.wtmg-agency-team-settings .wtmg-agency-member-settings-form,
.wtmg-agency-team-settings .wtmg-agency-member-remove-form {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-body {
    display: grid !important;
    gap: 16px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 18px !important;
    width: 100% !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px !important;
    margin-top: 2px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-update-action {
    display: flex !important;
    align-items: flex-end !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-role-note {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    min-height: 42px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-role-note span {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-remove-form {
    display: inline-flex !important;
    align-items: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    grid-column: auto !important;
    align-self: auto !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-provider-account-button,
.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-team-action-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-team-action-remove {
    border: 1px solid #dc2626 !important;
    background: #fff !important;
    color: #b91c1c !important;
    box-shadow: none !important;
}

.wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-team-action-remove:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.wtmg-agency-team-settings .wtmg-agency-access-toggle input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px !important;
}

@media (max-width: 899px) {
    .wtmg-agency-team-settings .wtmg-agency-member-settings-card,
    .wtmg-agency-team-settings .wtmg-agency-member-settings-form {
        grid-template-columns: 1fr !important;
    }

    .wtmg-agency-team-settings .wtmg-agency-member-settings-actions,
    .wtmg-agency-team-settings .wtmg-agency-member-update-action {
        align-items: stretch !important;
    }

    .wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-provider-account-button,
    .wtmg-agency-team-settings .wtmg-agency-member-settings-actions .wtmg-team-action-remove {
        width: 100% !important;
        max-width: none !important;
    }
}

/* =========================================================
   Messaging — full width conversation detail
   ========================================================= */

.wtmg-messaging-layout.is-thread-open {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
}

.wtmg-messaging-layout.is-thread-open .wtmg-messaging-layout-thread {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head,
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-messages,
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-composer {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Keep message bubbles readable inside the wider thread */
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-bubble {
    max-width: 78% !important;
}

@media (max-width: 760px) {
    .wtmg-messaging-layout.is-thread-open .wtmg-messaging-bubble {
        max-width: 92% !important;
    }
}


/* =========================================================
   USER DASHBOARD — PROVIDER REPLIES
   ========================================================= */

.wtmg-user-reply-card{
    display:grid !important;
    grid-template-columns:60px minmax(0,1fr) 170px !important;
    gap:22px !important;
    align-items:center !important;
    padding:22px 24px !important;
}

.wtmg-user-reply-card .wtmg-user-account-provider-avatar{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:start !important;
    border-radius:12px !important;
    font-size:18px !important;
    font-weight:700 !important;
}

.wtmg-user-reply-card-content{
    min-width:0 !important;
}

.wtmg-user-reply-provider-name{
    display:block !important;
    margin:0 0 8px !important;
    color:#102642 !important;
    font-size:19px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
}

.wtmg-user-reply-provider-meta{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:7px !important;
    margin-bottom:12px !important;
}

.wtmg-user-reply-provider-meta span{
    display:inline-flex !important;
    width:auto !important;
    padding:5px 9px !important;
    border-radius:7px !important;
    background:#f1f6fc !important;
    color:#526b88 !important;
    font-size:12px !important;
    line-height:1.2 !important;
}

.wtmg-user-reply-summary{
    max-width:760px !important;
    margin:0 !important;
    color:#435c79 !important;
    font-size:14px !important;
    line-height:1.55 !important;
}

.wtmg-user-reply-footer{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px 18px !important;
    margin-top:11px !important;
    color:#71839a !important;
    font-size:12px !important;
}

.wtmg-user-reply-offer{
    color:#344d6b !important;
    font-weight:600 !important;
}

.wtmg-user-reply-card time{
    color:#71839a !important;
    font-size:12px !important;
}

.wtmg-user-reply-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    width:170px !important;
    min-width:170px !important;
    margin:0 !important;
}

.wtmg-user-reply-actions .wtmg-provider-account-button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:42px !important;
    margin:0 !important;
    padding:9px 12px !important;
    box-sizing:border-box !important;
    text-align:center !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    font-size:13px !important;
}

@media (max-width:950px){

    .wtmg-user-reply-card{
        grid-template-columns:56px minmax(0,1fr) !important;
    }

    .wtmg-user-reply-actions{
        grid-column:1 / -1 !important;
        flex-direction:row !important;
        width:100% !important;
        min-width:0 !important;
    }

    .wtmg-user-reply-actions .wtmg-provider-account-button{
        flex:1 1 0 !important;
    }
}

@media (max-width:600px){

    .wtmg-user-reply-card{
        grid-template-columns:1fr !important;
    }

    .wtmg-user-reply-actions{
        grid-column:auto !important;
        flex-direction:column !important;
    }
}


/* =========================================================
   USER DASHBOARD — RFQ LIST + DETAIL UI
   ========================================================= */

.wtmg-user-rfq-section-description{
    margin:6px 0 0 !important;
    color:#60758f !important;
    font-size:14px !important;
}

/* RFQ LIST */

.wtmg-user-rfq-list{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
}

.wtmg-user-rfq-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 170px !important;
    gap:24px !important;
    align-items:center !important;
    padding:22px 24px !important;
    border:1px solid #d8e4f1 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(18,48,82,.04) !important;
	padding-right: 0px !important;
}

.wtmg-user-rfq-card-main{
    min-width:0 !important;
}

.wtmg-user-rfq-card-header{
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    gap:20px !important;
    margin-bottom:18px !important;
}

.wtmg-user-rfq-label{
    display:block !important;
    margin-bottom:4px !important;
    color:#71839a !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:.08em !important;
    text-transform:uppercase !important;
}

.wtmg-user-rfq-reference{
    display:block !important;
    color:#102642 !important;
    font-size:16px !important;
    line-height:1.3 !important;
}

.wtmg-user-rfq-summary-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
}

.wtmg-user-rfq-summary-item{
    min-width:0 !important;
}

.wtmg-user-rfq-summary-item span{
    display:block !important;
    margin-bottom:4px !important;
    color:#71839a !important;
    font-size:11px !important;
    font-weight:600 !important;
    text-transform:uppercase !important;
    letter-spacing:.04em !important;
}

.wtmg-user-rfq-summary-item strong{
    display:block !important;
    color:#314a68 !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
}

.wtmg-user-rfq-card-actions{
    display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 150px !important;
  min-width: 150px !important;
  margin: 0 !important;
}

.wtmg-user-rfq-card-actions .wtmg-provider-account-button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:42px !important;
    margin:0 !important;
    padding:9px 12px !important;
    box-sizing:border-box !important;
    text-decoration:none !important;
    text-align:center !important;
    white-space:nowrap !important;
    font-size:13px !important;
}

/* RFQ DETAIL */

.wtmg-user-rfq-back{
    display:inline-block !important;
    margin-bottom:18px !important;
}

.wtmg-user-rfq-detail-head{
    align-items:flex-start !important;
    margin-bottom:22px !important;
}

.wtmg-user-rfq-detail-head h1{
    margin-bottom:6px !important;
}

.wtmg-user-rfq-detail-head p:not(.wtmg-provider-account-kicker){
    margin:0 !important;
    color:#60758f !important;
}

.wtmg-user-rfq-detail-status{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    gap:8px !important;
}

.wtmg-user-rfq-response-count{
    color:#60758f !important;
    font-size:13px !important;
    font-weight:600 !important;
}

.wtmg-user-rfq-detail-panel{
    margin-top:16px !important;
    padding:22px !important;
    border:1px solid #dbe6f1 !important;
    border-radius:14px !important;
    background:#fbfdff !important;
}

.wtmg-user-rfq-detail-panel h3{
    margin:0 0 18px !important;
    color:#102642 !important;
    font-size:17px !important;
}

.wtmg-user-rfq-detail-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
}

.wtmg-user-rfq-detail-item{
    min-width:0 !important;
    padding:14px 16px !important;
    border:1px solid #e1eaf3 !important;
    border-radius:10px !important;
    background:#fff !important;
}

.wtmg-user-rfq-detail-item span{
    display:block !important;
    margin-bottom:6px !important;
    color:#71839a !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:.04em !important;
    text-transform:uppercase !important;
}

.wtmg-user-rfq-detail-item strong{
    display:block !important;
    color:#213a58 !important;
    font-size:14px !important;
    line-height:1.45 !important;
}

.wtmg-user-rfq-details-panel p{
    margin:0 !important;
    color:#435c79 !important;
    font-size:14px !important;
    line-height:1.7 !important;
    white-space:normal !important;
}

.wtmg-user-rfq-detail-actions{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    margin-top:20px !important;
}

.wtmg-user-rfq-detail-actions form{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.wtmg-user-rfq-detail-actions .wtmg-provider-account-button{
    min-height:42px !important;
    margin:0 !important;
}

.wtmg-user-rfq-delete{
    border-color:#efb4b4 !important;
    color:#b83232 !important;
    background:#fffafa !important;
}

/* RESPONSIVE */

@media (max-width:1100px){

    .wtmg-user-rfq-summary-grid,
    .wtmg-user-rfq-detail-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media (max-width:800px){

    .wtmg-user-rfq-card{
        grid-template-columns:1fr !important;
    }

    .wtmg-user-rfq-card-actions{
        flex-direction:row !important;
        width:100% !important;
        min-width:0 !important;
    }

    .wtmg-user-rfq-card-actions .wtmg-provider-account-button{
        flex:1 1 0 !important;
    }

    .wtmg-user-rfq-detail-status{
        align-items:flex-start !important;
    }
}

@media (max-width:600px){

    .wtmg-user-rfq-summary-grid,
    .wtmg-user-rfq-detail-grid{
        grid-template-columns:1fr !important;
    }

    .wtmg-user-rfq-card-actions{
        flex-direction:column !important;
    }

    .wtmg-user-rfq-detail-actions{
        flex-direction:column !important;
        align-items:stretch !important;
    }

    .wtmg-user-rfq-detail-actions form,
    .wtmg-user-rfq-detail-actions .wtmg-provider-account-button{
        width:100% !important;
    }
}


/* Provider Response — keep all four actions on one row */
.wtmg-user-reply-detail-actions{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:14px !important;
}

.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report{
    margin:0 !important;
    padding:0 !important;
}

.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report > summary{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    min-height:42px !important;
    cursor:pointer !important;
    list-style:none !important;
}

.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report > summary::-webkit-details-marker{
    display:none !important;
}

/* When opened, the report form starts on a new full-width row */
.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report[open]{
    flex-basis:100% !important;
}

.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report[open] > summary{
    width:max-content !important;
    margin-bottom:14px !important;
}

.wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report > form{
    max-width:560px !important;
}

@media (max-width:700px){
    .wtmg-user-reply-detail-actions{
        align-items:stretch !important;
    }

    .wtmg-user-reply-detail-actions > .wtmg-provider-account-button,
    .wtmg-user-reply-detail-actions .wtmg-user-reply-inline-report > summary{
        width:100% !important;
    }
}


/* =========================================================
   Provider Response — exact action button alignment
   ========================================================= */

.wtmg-user-reply-detail-actions {
    display: flex !important;
    align-items: stretch !important;
    gap: 14px !important;
}

/* Normal action buttons */
.wtmg-user-reply-detail-actions > a.wtmg-provider-account-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 56px !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Report <details> must occupy exactly the same vertical box */
.wtmg-user-reply-detail-actions > details.wtmg-user-reply-inline-report {
    display: inline-flex !important;
    align-items: stretch !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    vertical-align: top !important;
}

/* Report <summary> = same dimensions as the other buttons */
.wtmg-user-reply-detail-actions > details.wtmg-user-reply-inline-report > summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    vertical-align: top !important;
}

/* When opened, allow the details container to expand for the form */
.wtmg-user-reply-detail-actions > details.wtmg-user-reply-inline-report[open] {
    height: auto !important;
}


/* =========================================================
   USER DASHBOARD — COMPACT HOME CARDS
   Fixes Recent RFQs / Recent Replies layout only
   ========================================================= */

/* Prevent absurd word/letter breaking inside dashboard cards */
.wtmg-user-rfq-list-section.is-compact *,
.wtmg-user-reply-list-section.is-compact * {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-account-section-head,
.wtmg-user-reply-list-section.is-compact .wtmg-user-account-section-head {
    margin-bottom: 22px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-account-section-head h2,
.wtmg-user-reply-list-section.is-compact .wtmg-user-account-section-head h2 {
    margin: 6px 0 0 !important;
    font-size: 23px !important;
    line-height: 1.25 !important;
}

/* ---------------------------------------------------------
   RECENT RFQ
   --------------------------------------------------------- */

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-list {
    display: block !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-reference {
    font-size: 16px !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 20px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-item {
    min-width: 0 !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-item span {
    margin-bottom: 4px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-item strong {
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card-actions {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin-top: 18px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card-actions .wtmg-provider-account-button {
    width: auto !important;
    min-width: 130px !important;
    min-height: 40px !important;
    flex: 0 0 auto !important;
}

/* ---------------------------------------------------------
   RECENT REPLY
   --------------------------------------------------------- */

.wtmg-user-reply-list-section.is-compact .wtmg-user-account-list {
    display: block !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-card {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
    align-items: start !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-account-provider-avatar {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    font-size: 17px !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-card-content {
    min-width: 0 !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-provider-name {
    margin-bottom: 8px !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-provider-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-provider-meta span {
    width: auto !important;
    white-space: normal !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-summary {
    max-width: none !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-footer {
    margin-top: 10px !important;
    gap: 6px 14px !important;
}

/* Compact dashboard: actions below content, not a narrow right column */
.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin-top: 2px !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions .wtmg-provider-account-button {
    width: auto !important;
    min-width: 135px !important;
    min-height: 40px !important;
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
}

/* ---------------------------------------------------------
   DASHBOARD TWO-COLUMN AREA
   --------------------------------------------------------- */

/* Cards in the top dashboard row should receive equal usable space */
.wtmg-user-account-dashboard-grid {
    align-items: stretch !important;
}

.wtmg-user-account-dashboard-grid > * {
    min-width: 0 !important;
}

/* ---------------------------------------------------------
   RECENT MESSAGES
   --------------------------------------------------------- */

/* Keep Recent Messages clean and compact */
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card,
.wtmg-user-account-dashboard-grid ~ .wtmg-provider-account-card {
    min-width: 0 !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 760px) {

    .wtmg-user-rfq-list-section.is-compact,
    .wtmg-user-reply-list-section.is-compact {
        padding: 20px !important;
    }

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card-actions,
    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions {
        flex-direction: column !important;
    }

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-card-actions .wtmg-provider-account-button,
    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions .wtmg-provider-account-button {
        width: 100% !important;
    }
}


/* =========================================================
   USER DASHBOARD HOME — FINAL COMPACT CARD LAYOUT
   Recent RFQs + Recent Replies
   ========================================================= */

.wtmg-user-account-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.wtmg-user-account-dashboard-grid > .wtmg-provider-account-card {
    min-width: 0 !important;
    width: 100% !important;
}

/* Prevent broken words */
.wtmg-user-account-dashboard-grid *,
.wtmg-user-rfq-list-section.is-compact *,
.wtmg-user-reply-list-section.is-compact * {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Section spacing */
.wtmg-user-rfq-list-section.is-compact,
.wtmg-user-reply-list-section.is-compact {
    padding: 28px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-account-section-head,
.wtmg-user-reply-list-section.is-compact .wtmg-user-account-section-head {
    margin-bottom: 24px !important;
}

/* =========================================================
   RECENT RFQs
   ========================================================= */

.wtmg-user-rfq-list-section.is-compact .wtmg-user-account-list {
    display: grid !important;
    gap: 14px !important;
}

.wtmg-user-rfq-list-section.is-compact .wtmg-user-account-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 20px !important;
    align-items: center !important;

    padding: 22px !important;
    border: 1px solid #d9e3f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
}

/*
 * RFQ information area:
 * Let the existing fields use available width instead of
 * forcing narrow table-like columns.
 */
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row > div:not(.wtmg-user-account-actions) {
    min-width: 0 !important;
    width: 100% !important;
}

/* Existing RFQ field/meta wrappers */
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row > div:not(.wtmg-user-account-actions) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 22px !important;
    row-gap: 12px !important;
}

.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row strong,
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row span,
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row time,
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-row small {
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
}

/* RFQ action */
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 150px !important;
}

.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-actions a,
.wtmg-user-rfq-list-section.is-compact
.wtmg-user-account-actions button {
    width: auto !important;
    min-width: 150px !important;
    margin: 0 !important;
}

/* =========================================================
   RECENT REPLIES
   ========================================================= */

.wtmg-user-reply-list-section.is-compact .wtmg-user-account-list {
    display: grid !important;
    gap: 14px !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;

    padding: 22px !important;
    border: 1px solid #d9e3f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-account-provider-avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin: 0 !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-card-content {
    min-width: 0 !important;
    width: 100% !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-provider-name {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-provider-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-bottom: 14px !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-provider-meta span {
    width: auto !important;
    display: inline-flex !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
    background: #f2f6fb !important;
    line-height: 1.2 !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-card-content p {
    margin: 0 0 12px !important;
    line-height: 1.55 !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-card-content small,
.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-card-content time {
    display: block !important;
    margin-top: 7px !important;
}

/* Compact dashboard reply actions */
.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-actions {
    grid-column: 2 !important;

    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;

    width: 100% !important;
    margin: 16px 0 0 !important;
}

.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-actions a,
.wtmg-user-reply-list-section.is-compact
.wtmg-user-reply-actions button {
    flex: 1 1 160px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* =========================================================
   RECENT MESSAGES
   ========================================================= */

.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px 20px !important;
    align-items: center !important;

    padding: 18px 20px !important;
    border: 1px solid #d9e3f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row strong {
    font-size: 17px !important;
}

.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row span {
    grid-column: 1 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .wtmg-user-account-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {

    .wtmg-user-rfq-list-section.is-compact,
    .wtmg-user-reply-list-section.is-compact {
        padding: 20px !important;
    }

    .wtmg-user-rfq-list-section.is-compact
    .wtmg-user-account-row {
        grid-template-columns: 1fr !important;
    }

    .wtmg-user-rfq-list-section.is-compact
    .wtmg-user-account-row > div:not(.wtmg-user-account-actions) {
        grid-template-columns: 1fr !important;
    }

    .wtmg-user-rfq-list-section.is-compact
    .wtmg-user-account-actions {
        justify-content: stretch !important;
        min-width: 0 !important;
    }

    .wtmg-user-rfq-list-section.is-compact
    .wtmg-user-account-actions a,
    .wtmg-user-rfq-list-section.is-compact
    .wtmg-user-account-actions button {
        width: 100% !important;
    }

    .wtmg-user-reply-list-section.is-compact
    .wtmg-user-reply-card {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .wtmg-user-reply-list-section.is-compact
    .wtmg-user-account-provider-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .wtmg-user-reply-list-section.is-compact
    .wtmg-user-reply-actions {
        grid-column: 1 / -1 !important;
    }
}


/* =========================================================
   USER DASHBOARD HOME — STACK RECENT RFQS + PROVIDER RESPONSES
   ========================================================= */

.wtmg-user-account-dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.wtmg-user-account-dashboard-grid > .wtmg-provider-account-card {
    width: 100% !important;
    min-width: 0 !important;
}

/* Recent RFQs — full width */
.wtmg-user-rfq-list-section.is-compact {
    width: 100% !important;
}

/* Provider Responses — full width below Recent RFQs */
.wtmg-user-reply-list-section.is-compact {
    width: 100% !important;
}

/* RFQ card has more horizontal room now */
.wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 28px !important;
}

/* Recent Reply can use a comfortable horizontal layout */
.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-card {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    gap: 22px !important;
    align-items: center !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-account-provider-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 170px !important;
    min-width: 170px !important;
    margin: 0 !important;
}

.wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions .wtmg-provider-account-button {
    width: 100% !important;
    min-width: 170px !important;
}

/* Responsive */
@media (max-width: 900px) {

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-card {
        grid-template-columns: 56px minmax(0, 1fr) !important;
    }

    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions .wtmg-provider-account-button {
        width: auto !important;
        min-width: 150px !important;
    }
}

@media (max-width: 600px) {

    .wtmg-user-rfq-list-section.is-compact .wtmg-user-rfq-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions {
        flex-direction: column !important;
    }

    .wtmg-user-reply-list-section.is-compact .wtmg-user-reply-actions .wtmg-provider-account-button {
        width: 100% !important;
    }
}


/* =========================================================
   USER DASHBOARD — RECENT MESSAGES
   ========================================================= */

.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row {
    padding: 22px 26px !important;
    gap: 8px 20px !important;
}

/* Provider / company name */
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row strong {
    display: block !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #102544 !important;
    margin: 0 0 8px !important;
}

/* Service */
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row span {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 6px 10px !important;
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #526b8d !important;

    background: #f2f6fb !important;
    border-radius: 7px !important;
}

/* Message preview / secondary text */
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row p,
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row small {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
}

/* Date */
.wtmg-user-account-dashboard-grid + .wtmg-provider-account-card
.wtmg-user-account-row time {
    font-size: 13px !important;
    color: #8291a7 !important;
}


/* =========================================================
   MESSAGING — REPORT / DELETE PROFESSIONAL UI
   User + Provider conversation detail
   ========================================================= */

/* Report disclosure */
.wtmg-messaging-layout.is-thread-open details {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Report trigger */
.wtmg-messaging-layout.is-thread-open details > summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;

    margin: 0 0 14px !important;
    padding: 0 !important;

    color: #163354 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    cursor: pointer !important;
    list-style: none !important;
}

.wtmg-messaging-layout.is-thread-open details > summary::-webkit-details-marker {
    display: none !important;
}

/* Report form container */
.wtmg-messaging-layout.is-thread-open details[open] > form {
    display: grid !important;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) !important;
    gap: 18px 22px !important;

    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 22px !important;

    box-sizing: border-box !important;

    background: #f8fbff !important;
    border: 1px solid #d9e5f1 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Labels */
.wtmg-messaging-layout.is-thread-open details[open] > form label {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;

    margin: 0 !important;

    color: #1b3352 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Select */
.wtmg-messaging-layout.is-thread-open details[open] select {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 40px 0 14px !important;

    box-sizing: border-box !important;

    border: 1px solid #cfdae8 !important;
    border-radius: 8px !important;
    background-color: #fff !important;

    color: #1d304b !important;
    font-size: 14px !important;
    line-height: 1.3 !important;

    outline: none !important;
}

/* Textarea */
.wtmg-messaging-layout.is-thread-open details[open] textarea {
    display: block !important;
    width: 100% !important;
    min-height: 130px !important;

    margin: 0 !important;
    padding: 13px 14px !important;

    box-sizing: border-box !important;
    resize: vertical !important;

    border: 1px solid #cfdae8 !important;
    border-radius: 8px !important;
    background: #fff !important;

    color: #1d304b !important;
    font-size: 14px !important;
    line-height: 1.5 !important;

    outline: none !important;
}

/* Focus */
.wtmg-messaging-layout.is-thread-open details[open] select:focus,
.wtmg-messaging-layout.is-thread-open details[open] textarea:focus {
    border-color: #2b63ad !important;
    box-shadow: 0 0 0 3px rgba(43, 99, 173, .10) !important;
}

/* Submit Report */
.wtmg-messaging-layout.is-thread-open details[open] button[type="submit"] {
    grid-column: 1 / -1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 150px !important;
    min-height: 44px !important;

    justify-self: start !important;

    margin: 0 !important;
    padding: 10px 18px !important;

    border: 1px solid #2b61a8 !important;
    border-radius: 8px !important;
    background: #2b61a8 !important;

    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    cursor: pointer !important;
}

/* Delete conversation button */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head button,
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 110px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 9px 16px !important;

    box-sizing: border-box !important;

    border: 1px solid #efb4b4 !important;
    border-radius: 8px !important;
    background: #fffafa !important;

    color: #b83232 !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer !important;
}

/* Avoid giant legacy button styles */
.wtmg-messaging-layout.is-thread-open form {
    max-width: 100% !important;
}

/* Responsive */
@media (max-width: 760px) {

    .wtmg-messaging-layout.is-thread-open details[open] > form {
        grid-template-columns: 1fr !important;
        padding: 18px !important;
    }

    .wtmg-messaging-layout.is-thread-open details[open] button[type="submit"] {
        grid-column: auto !important;
        width: 100% !important;
    }
}


/* =========================================================
   MESSAGING REPORT — SINGLE COLUMN
   Details -> Reason -> Submit
   ========================================================= */

.wtmg-messaging-layout.is-thread-open details[open] > form {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;

    width: 100% !important;
    max-width: 760px !important;

    margin: 0 0 22px !important;
    padding: 22px !important;
}

/* Details first */
.wtmg-messaging-layout.is-thread-open details[open] > form label:has(textarea) {
    order: 1 !important;
}

/* Reason second */
.wtmg-messaging-layout.is-thread-open details[open] > form label:has(select) {
    order: 2 !important;
}

/* Submit third */
.wtmg-messaging-layout.is-thread-open details[open] > form button[type="submit"] {
    order: 3 !important;

    align-self: flex-start !important;
    width: auto !important;
    min-width: 150px !important;

    margin: 2px 0 0 !important;
}

/* Fields */
.wtmg-messaging-layout.is-thread-open details[open] select,
.wtmg-messaging-layout.is-thread-open details[open] textarea {
    width: 100% !important;
    max-width: none !important;
}

.wtmg-messaging-layout.is-thread-open details[open] textarea {
    min-height: 140px !important;
}

/* Delete remains separate */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head button,
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head input[type="submit"] {
    width: auto !important;
    min-width: 110px !important;
}

@media (max-width: 760px) {
    .wtmg-messaging-layout.is-thread-open details[open] > form {
        max-width: 100% !important;
    }

    .wtmg-messaging-layout.is-thread-open details[open] > form button[type="submit"] {
        width: 100% !important;
    }
}


/* Messaging report form — wider */
.wtmg-messaging-layout.is-thread-open details[open] > form {
    width: 100% !important;
    max-width: 1500px !important;
}


/* =========================================================
   MESSAGING — WIDER REPORT PANEL
   ========================================================= */

/* Give the Report side of the conversation header real width */
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head {
    display: grid !important;
    grid-template-columns: minmax(320px, 1fr) minmax(720px, 900px) !important;
    gap: 36px !important;
    align-items: start !important;
}

/* The complete Report block */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Open report form fills that wider right column */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details[open] > form {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Fields fill panel */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details[open] textarea,
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details[open] select {
    width: 100% !important;
    max-width: none !important;
}

/* Tablet/mobile: stack normally */
@media (max-width: 1200px) {
    .wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head {
        grid-template-columns: 1fr !important;
    }

    .wtmg-messaging-layout.is-thread-open
    .wtmg-messaging-conversation-head details {
        width: 100% !important;
    }
}


/* =========================================================
   MESSAGING — REPORT PANEL WIDTH + REPORT BUTTON
   ========================================================= */

/* Narrow the right panel so the page stays inside viewport */
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head {
    grid-template-columns: minmax(300px, 1fr) minmax(520px, 680px) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep report block inside its column */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Turn Report summary into amber outline button */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details > summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 120px !important;
    min-height: 42px !important;

    margin: 0 0 14px !important;
    padding: 9px 16px !important;

    box-sizing: border-box !important;

    border: 1px solid #d9a92e !important;
    border-radius: 8px !important;
    background: #fffaf0 !important;

    color: #9a6a00 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    cursor: pointer !important;
    list-style: none !important;
    text-decoration: none !important;
}

.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details > summary::-webkit-details-marker {
    display: none !important;
}

/* Open state stays amber */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details[open] > summary {
    background: #fff4d6 !important;
    border-color: #d19a12 !important;
    color: #8a5a00 !important;
}

/* Report form fills only its column */
.wtmg-messaging-layout.is-thread-open
.wtmg-messaging-conversation-head details[open] > form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Safety against horizontal overflow */
.wtmg-messaging-layout.is-thread-open,
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-layout-thread,
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation,
.wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head {
    overflow-x: hidden !important;
}

/* Tablet/mobile */
@media (max-width: 1100px) {
    .wtmg-messaging-layout.is-thread-open .wtmg-messaging-conversation-head {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
}


/* =========================================================
   USER DASHBOARD — SAVED PROVIDERS
   ========================================================= */

.wtmg-user-account-provider-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0,1fr) auto !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 20px 22px !important;
}

/* Avatar */
.wtmg-user-account-provider-card .wtmg-user-account-provider-avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Provider info column */
.wtmg-user-account-provider-card > div:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
    min-width: 0 !important;
}

/* Provider name */
.wtmg-user-account-provider-card > div:nth-child(2) > strong {
    display: block !important;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #102544 !important;
}

/* Location + services */
.wtmg-user-account-provider-card > div:nth-child(2) > span {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: #61758f !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
}

/* First meta line = location */
.wtmg-user-account-provider-card > div:nth-child(2) > span:first-of-type {
    color: #71839a !important;
}

/* Second meta line = services */
.wtmg-user-account-provider-card > div:nth-child(2) > span:nth-of-type(2) {
    color: #435c79 !important;
    font-weight: 500 !important;
}

/* Actions */
.wtmg-user-account-provider-card .wtmg-user-account-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}

/* Forms inside action row */
.wtmg-user-account-provider-card .wtmg-user-account-actions form {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Buttons same size */
.wtmg-user-account-provider-card .wtmg-user-account-actions .wtmg-provider-account-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    min-height: 44px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1050px) {
    .wtmg-user-account-provider-card {
        grid-template-columns: 56px minmax(0,1fr) !important;
    }

    .wtmg-user-account-provider-card .wtmg-user-account-actions {
        grid-column: 1 / -1 !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 650px) {
    .wtmg-user-account-provider-card {
        grid-template-columns: 1fr !important;
    }

    .wtmg-user-account-provider-card .wtmg-user-account-actions {
        grid-column: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wtmg-user-account-provider-card .wtmg-user-account-actions .wtmg-provider-account-button,
    .wtmg-user-account-provider-card .wtmg-user-account-actions form {
        width: 100% !important;
    }
}

/* =========================================================
   PROVIDER SUBSCRIPTION ACTIONS — FINAL CTA ALIGNMENT
   ========================================================= */

.wtmg-provider-subscription-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.wtmg-provider-subscription-action {
    display: grid !important;
    grid-template-rows: 1fr auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 38px !important;
}

.wtmg-provider-subscription-action-content {
    min-height: 0 !important;
}

/* Force BOTH CTAs onto exactly the same bottom baseline */
.wtmg-provider-subscription-action-button,
.wtmg-provider-subscription-action-button-sponsored,
.wtmg-provider-subscription-action-button-upgrade {
    align-self: end !important;
    justify-self: center !important;

    width: min(58%, 560px) !important;
    min-height: 45px !important;

    margin: 30px auto 0 !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 900px) {
    .wtmg-provider-subscription-actions {
        grid-template-columns: 1fr !important;
    }

    .wtmg-provider-subscription-action-button,
    .wtmg-provider-subscription-action-button-sponsored,
    .wtmg-provider-subscription-action-button-upgrade {
        width: 100% !important;
    }
}

