.pbh{margin:16px 0}
.pbh-title{font-weight:600;color:#0b4a68;font-size:15px}
.pbh-hint{margin:2px 0 10px;color:#7a8a94;font-size:13px}
.pbh-country{margin:8px 0 6px;font-size:13px;color:#3b4b55}
.pbh-row{display:flex;flex-wrap:wrap;gap:14px}
.pbh-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;padding:6px 0;border:0;background:none;cursor:pointer;font:inherit}
.pbh-item img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid transparent;box-shadow:0 2px 8px rgba(11,74,104,.15);transition:.15s}
.pbh-item:hover img{transform:scale(1.05)}
.pbh-item.is-on img{border-color:#08a5c5;box-shadow:0 0 0 3px rgba(8,165,197,.2)}
.pbh-name{font-size:12px;line-height:1.2;color:#1b2a33;text-align:center}
/* A: белая карточка при наведении (только там, где есть мышь) — как окно «Зачем регистрироваться?» */
.pbh-tip{display:none}
@media (hover:hover){
.pbh-tip{display:block;position:absolute;bottom:calc(100% + 4px);left:-10px;width:250px;padding:14px 16px;background:#fff;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.18);text-align:left;font-size:12px;line-height:1.5;color:#1f2937;opacity:0;visibility:hidden;transform:translateY(4px);transition:.15s;z-index:20;pointer-events:none}
.pbh-tip:after{content:"";position:absolute;left:46px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg)}
.pbh-item:hover .pbh-tip{opacity:1;visibility:visible;transform:none}
}
.pbh-tip b,.pbh-info b{display:block;color:#08a5c5;font-size:14px;margin-bottom:2px}
.pbh-sub{display:block;color:#6b7280;margin-bottom:2px}
/* C: подпись выбранного героя под галереей */
.pbh-info{margin-top:12px;padding-top:10px;border-top:1px dashed #cfd8dc;font-size:12px;line-height:1.5;color:#6b7280}
.pbh-info b{display:inline;font-size:12px;margin:0}
.pbh-info .pbh-sub{display:inline;margin:0}
.pbh-info .pbh-sub:before{content:" · "}
.pbh-info .pbh-sub:after{content:"";display:block}

/* Подсказка над аватаркой-героем по всему сайту */
.pbh-float{display:none;position:absolute;z-index:9999;width:260px;padding:14px 16px;background:#fff;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.18);font-size:12px;line-height:1.5;color:#1f2937;text-align:left;pointer-events:none;opacity:0;transition:opacity .15s}
.pbh-float.is-on{opacity:1}
.pbh-float b{display:block;color:#08a5c5;font-size:14px;margin-bottom:2px}
.pbh-float .pbh-sub{display:block;color:#6b7280;margin-bottom:2px}

/* Строка «Герои банкнот» в окне «Выбор изображения» */
.pbh-strip{padding:12px 20px 14px;border-bottom:1px solid #e5e7eb;background:#fff}
.pbh-strip-title{font-size:14px;font-weight:600;color:#1f2937;margin-bottom:10px}
.pbh-strip-row{display:flex;gap:14px;overflow-x:auto;padding-bottom:4px}
.pbh-strip-item{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:84px;padding:0;border:0;background:none;cursor:pointer;font:inherit}
.pbh-strip-item img{width:64px;height:64px;border-radius:12px;object-fit:cover;border:2px solid transparent;transition:.15s}
.pbh-strip-item:hover img{border-color:#08a5c5}
.pbh-strip-item span{font-size:11px;line-height:1.2;color:#4b5563;text-align:center}

/* Блок «Аватар» по макету Figma (НАСТРОЙКИ ПРОФИЛЯ): квадрат 200×200 по центру колонки,
   широкая бирюзовая «Выбрать изображение», «Очистить» — тихой ссылкой и только когда есть фото */
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .field-media-preview{width:200px!important;height:200px!important;margin:0 auto 16px!important;background:#d9d9d9;border-radius:0;overflow:hidden}
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .field-media-preview img{width:200px!important;height:200px!important;object-fit:cover;display:block}
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .input-group{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;width:100%!important}
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .button-select{width:100%!important;margin:0!important;padding:9px 16px!important;border-radius:6px!important;background:#08a5c5!important;border-color:#08a5c5!important;color:#fff!important;font-size:16px!important;font-weight:600!important;line-height:1.3!important;text-align:center!important}
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .button-clear{align-self:center!important;width:auto!important;margin:0!important;padding:2px 6px!important;background:none!important;border:0!important;color:#9ca3af!important;font-size:13px!important;font-weight:400!important;text-decoration:underline}
body.pbm-page-profile-edit #member-profile .pbm-f-avatar joomla-field-media .field-media-preview.pbm-media-empty + .input-group .button-clear{display:none!important}
