/* Paktograf service final fixes. Every rule is component-scoped. */

.pg-lc-open-messages{margin-top:14px}
.pg-lc-workspace-actions{display:grid;gap:12px}
.pg-lc-person__initial,.pkt-clean-message__avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:#f0e8ff;color:#6422df;font-weight:850;text-transform:uppercase}
.pg-lc-person__initial{width:42px;height:42px;border-radius:50%}

.pg-lc-reputation-help{margin:0 0 12px;color:#697386;font-size:13px;line-height:1.55}
.pg-lc-reputation-traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pg-lc-reputation-traits label{position:relative;margin:0;cursor:pointer}
.pg-lc-reputation-traits input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pg-lc-reputation-traits span{display:flex;align-items:center;min-height:48px;padding:11px 13px;border:1px solid #e2dcea;border-radius:14px;background:#fff;color:#394255;font-size:13px;font-weight:750;line-height:1.3;transition:border-color .15s ease,background .15s ease,color .15s ease}
.pg-lc-reputation-traits input:checked+span{border-color:#8d54ff;background:#f5efff;color:#5d20d4;box-shadow:0 0 0 3px rgba(111,44,255,.08)}
.pg-lc-reputation-traits input:focus-visible+span{outline:3px solid rgba(111,44,255,.22);outline-offset:2px}

.pg-reputation{margin:22px 0;padding:24px;border:1px solid #e8e1f1;border-radius:22px;background:linear-gradient(145deg,#fff,#fbf9ff);box-shadow:0 12px 34px rgba(39,25,68,.05)}
.pg-reputation header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.pg-reputation__kicker{display:block;margin-bottom:5px;color:#6f2cff;font-size:11px;font-weight:900;letter-spacing:.09em}
.pg-reputation h2{margin:0;color:#171126;font-size:23px;line-height:1.2}
.pg-reputation__total{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;border-radius:14px;background:#efe6ff;color:#6f2cff;font-weight:900}
.pg-reputation__intro{margin:0 0 16px;color:#687386;font-size:13px;line-height:1.55}
.pg-reputation__traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pg-reputation__trait{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid #ece6f4;border-radius:14px;background:#fff}
.pg-reputation__trait>span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:8px;background:#eee5ff;color:#6924e6;font-weight:900}
.pg-reputation__trait strong{min-width:0;color:#252033;font-size:13px;line-height:1.3}
.pg-reputation__trait small{color:#746b82;font-weight:850}
.pg-bio-wrap--v2>.pg-reputation{width:100%;margin:20px 0}

body.pg-single-service-page .pg-service-order-card.has-promotion #pg-order-service-button{margin-top:18px!important}

/* Notification count is numeric, compact and readable instead of a decorative dot. */
.pg-mobile-icon-btn .pg-mobile-badge{position:absolute!important;top:-7px!important;right:-8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:18px!important;height:18px!important;min-height:18px!important;padding:0 5px!important;border:2px solid #fff!important;border-radius:999px!important;background:#e5394f!important;color:#fff!important;font-size:10px!important;font-weight:900!important;line-height:1!important;letter-spacing:0!important;box-shadow:0 3px 8px rgba(159,26,45,.22)!important}
.pg-message-top .remove-notify-btn,.pg-mobile-notify-remove{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#8d96a6!important;font-size:15px!important;line-height:1!important;opacity:.78!important}
.pg-message-top .remove-notify-btn{top:-8px!important;right:-8px!important}
.pg-mobile-notify-remove{top:7px!important;right:8px!important}
.pg-message-top .remove-notify-btn:hover,.pg-message-top .remove-notify-btn:focus-visible,.pg-mobile-notify-remove:hover,.pg-mobile-notify-remove:focus-visible{border-color:#e4e7ec!important;background:#f7f8fa!important;color:#4d5665!important;opacity:1!important}

/* Stable per-message avatar and bubble geometry. */
.wp-private-message-dashboard .pkt-clean-message{display:flex!important;align-items:flex-end!important;gap:8px!important;width:100%!important;min-width:0!important}
.wp-private-message-dashboard .pkt-clean-message.is-mine{justify-content:flex-end!important}
.wp-private-message-dashboard .pkt-clean-message.is-mine .pkt-clean-message__avatar{order:2}
.wp-private-message-dashboard .pkt-clean-message__avatar{width:32px;height:32px;border:1px solid rgba(111,44,255,.12);border-radius:11px;overflow:hidden;box-shadow:none;font-size:12px}
.wp-private-message-dashboard .pkt-clean-message__avatar img{display:block;width:100%;height:100%;object-fit:cover}
.wp-private-message-dashboard .pkt-clean-message .pkt-clean-bubble{width:auto!important;min-width:0!important;max-width:min(72%,680px)!important;overflow-wrap:anywhere!important;word-break:normal!important}

/* Only the three short lifecycle confirmations become content-driven sheets. */
.pg-lc-sheet.pg-lc-sheet--compact-completion .pg-lc-sheet__panel,.pg-lc-sheet.pg-lc-sheet--compact-request .pg-lc-sheet__panel{height:auto!important;min-height:0!important;max-height:min(520px,calc(100dvh - 32px))!important}
.pg-lc-sheet.pg-lc-sheet--compact-completion .pg-lc-sheet__form,.pg-lc-sheet.pg-lc-sheet--compact-request .pg-lc-sheet__form{flex:0 1 auto!important;height:auto!important;min-height:0!important}
.pg-lc-sheet.pg-lc-sheet--compact-completion .pg-lc-sheet__body,.pg-lc-sheet.pg-lc-sheet--compact-request .pg-lc-sheet__body{flex:0 1 auto!important;height:auto!important;min-height:0!important;padding-block:16px!important}
.pg-lc-sheet.pg-lc-sheet--compact-completion [data-pg-mode="confirm"] p,.pg-lc-sheet.pg-lc-sheet--compact-request [data-pg-mode="confirm"] p{margin:0}

@media(max-width:767px){
 .pg-lc-reputation-traits,.pg-reputation__traits{grid-template-columns:1fr}
 .pg-reputation{padding:19px;border-radius:19px}
 .pg-reputation h2{font-size:20px}
 .wp-private-message-dashboard .pkt-clean-chat-scroll{padding-inline:10px!important}
 .wp-private-message-dashboard .pkt-clean-message{gap:7px!important}
 .wp-private-message-dashboard .pkt-clean-message__avatar{width:30px;height:30px;border-radius:10px}
 .wp-private-message-dashboard .pkt-clean-message .pkt-clean-bubble{max-width:calc(100% - 39px)!important;padding-inline:13px!important}
 .pg-lc-sheet.pg-lc-sheet--compact-completion .pg-lc-sheet__panel,.pg-lc-sheet.pg-lc-sheet--compact-request .pg-lc-sheet__panel{height:auto!important;min-height:0!important;max-height:min(440px,calc(var(--pg-sheet-vh,100dvh) - max(18px,env(safe-area-inset-top,0px))))!important}
}
