/* UMagical Seller Profile R2 — only the seller's public-facing private profile.
 * Follows homepage shell, teal/white palette and product card geometry.
 * Does not modify global homepage cards, uploaded media or Control Center. */
.seller-profile-r2{padding-top:clamp(14px,2.5vw,27px)}
.seller-profile-r2 .seller-quick-nav{display:flex;align-items:center;gap:10px;margin-bottom:clamp(16px,2.6vw,27px)}
.seller-profile-r2 .seller-nav-icon{width:clamp(39px,4.5vw,46px);height:clamp(39px,4.5vw,46px);border:1.5px solid #174957;border-radius:14px;background:#fff;display:grid;place-items:center;color:var(--teal);transition:background .18s,border-color .18s,transform .18s}
.seller-profile-r2 .seller-nav-icon svg{width:22px;height:22px}
.seller-profile-r2 .seller-nav-icon:hover{background:#eaf5f7;transform:translateY(-2px)}
.seller-profile-r2 a:focus-visible{outline:3px solid #ea888d;outline-offset:3px}
.seller-profile-r2 .seller-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.seller-profile-r2 .seller-identity{border-color:var(--outline);border-radius:clamp(20px,3.5vw,40px)}
.seller-profile-r2 .seller-info{margin-top:clamp(21px,3vw,35px)}
.seller-profile-r2 .seller-info .section-title{margin-bottom:12px}
.seller-profile-r2 .seller-about-panel,.seller-profile-r2 .seller-instagram-panel,.seller-profile-r2 .seller-location-compact,.seller-profile-r2 .seller-ratings-panel{background:#fff;border:1px solid #cadbdd;border-radius:clamp(17px,2.8vw,26px);padding:clamp(16px,2.6vw,27px)}
.seller-profile-r2 .seller-description{white-space:pre-line;line-height:1.8}
.seller-profile-r2 .seller-instagram-link,.seller-profile-r2 .seller-map-link{display:inline-flex;align-items:center;gap:9px;padding:10px 15px;border:1px solid #174957;background:#fff;border-radius:999px;color:var(--teal);font-size:clamp(12px,1.3vw,15px);min-height:43px}
.seller-profile-r2 .seller-instagram-link:hover,.seller-profile-r2 .seller-map-link:hover{background:#eaf5f7}
.seller-profile-r2 .seller-instagram-link svg,.seller-profile-r2 .seller-map-link svg{width:19px;height:19px;flex:0 0 auto}
.seller-profile-r2 .seller-address{margin-bottom:9px}
.seller-profile-r2 .seller-products{margin-top:clamp(29px,4.7vw,54px);padding-bottom:12px}
.seller-profile-r2 .seller-category-nav{display:flex;flex-wrap:wrap;gap:9px 10px;margin:0 0 21px}
.seller-profile-r2 .seller-category-chip{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1.5px solid #174957;border-radius:999px;background:#fff;color:var(--teal);font-size:clamp(11px,1.4vw,14px);line-height:1.25;max-width:100%;text-align:left;overflow-wrap:anywhere}
.seller-profile-r2 .seller-category-chip.is-active{background:var(--teal);color:#fff}
.seller-profile-r2 .seller-category-chip:hover:not(.is-active){background:#eaf5f7}
.seller-profile-r2 .seller-chip-count{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#e4f2f4;color:#174957;padding:0 5px;font:600 11px system-ui,Arial,sans-serif;flex:0 0 auto}
.seller-profile-r2 .seller-category-chip.is-active .seller-chip-count{background:#fff;color:#174957}
.seller-profile-r2 .seller-category-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin:0 0 15px;color:var(--teal)}
.seller-profile-r2 .seller-category-heading h3{font-size:clamp(16px,2.2vw,23px);margin:0;font-weight:500}
.seller-profile-r2 .seller-category-heading span{font:12px system-ui,Arial,sans-serif;color:#557b83}
.seller-profile-r2 .seller-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2.4vw,25px)}
.seller-profile-r2 .seller-product-grid .product-card{width:100%;min-width:0;border-radius:clamp(13px,3.5vw,27px);overflow:hidden}
.seller-profile-r2 .seller-product-grid .product-card>a{display:block;min-width:0}
.seller-profile-r2 .seller-product-grid .product-card .product-image{box-sizing:border-box;width:100%;height:auto;aspect-ratio:1/1;position:relative;display:grid;overflow:hidden;border:0;border-radius:clamp(13px,3.5vw,27px)}
.seller-profile-r2 .seller-product-grid .product-card .product-image>img{display:block;width:100%;height:100%;object-fit:contain;border:0;border-radius:0}
.seller-profile-r2 .seller-product-grid .product-card .product-image:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border:0;border-bottom:1px solid rgba(85,91,94,.68);border-radius:inherit}
.seller-profile-r2 .seller-rating-summary{display:flex;align-items:center;gap:clamp(13px,3vw,25px);padding:15px;background:#f1f8f9;border-radius:17px;color:var(--teal)}
.seller-profile-r2 .seller-rating-value{font-size:clamp(34px,5vw,55px);line-height:1}
.seller-profile-r2 .seller-rating-value span{font-size:.4em;color:#5c7d84}
.seller-profile-r2 .seller-rating-stars{font-size:clamp(16px,2.2vw,23px);letter-spacing:2px}
.seller-profile-r2 .seller-rating-summary p{margin:5px 0 0;font:clamp(11px,1.3vw,14px) system-ui,Arial,sans-serif;color:#526f77}
.seller-profile-r2 .seller-rating-list{display:grid;grid-template-columns:1fr;gap:0;margin-top:15px}
.seller-profile-r2 .seller-rated-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 6px;border-bottom:1px solid #e4edef;color:var(--teal);font-size:clamp(12px,1.3vw,15px)}
.seller-profile-r2 .seller-rated-name{min-width:0;overflow-wrap:anywhere}
.seller-profile-r2 .seller-rated-score{font-weight:600}
.seller-profile-r2 .seller-rated-count{font:12px system-ui,Arial,sans-serif;color:#587a84}
.seller-profile-r2 .seller-rated-item:hover{background:#f5fafb}
@media(max-width:720px){
 .seller-profile-r2 .seller-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .seller-profile-r2 .seller-info{margin-top:19px}
 .seller-profile-r2 .seller-category-nav{gap:7px}
 .seller-profile-r2 .seller-category-chip{padding:8px 10px}
 .seller-profile-r2 .seller-rated-item{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}
 .seller-profile-r2 .seller-rated-count{grid-column:1/-1}
}
@media(max-width:350px){.seller-profile-r2 .seller-product-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.seller-profile-r2 .seller-nav-icon{transition:none}}

/* R2.1: ensure any map preview, including an ad-hoc test iframe, stays compact.
 * The existing R2 Blade template deliberately has no embedded map; its link remains.
 * The previous browser-console test inserted an iframe into the About panel with
 * inline width:100%, so this rule must override inline width and legacy height. */
.seller-profile-r2 .seller-map-wrap {
  box-sizing: border-box;
  display: block;
  width: min(100%, 180px) !important;
  max-width: 180px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  border: 1px solid #174957;
  border-radius: 16px;
  margin: 12px 0;
  background: #edf5f6;
}
.seller-profile-r2 .seller-map-wrap iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
}

/* R2.2 — Instagram left, compact square map right, biography stays alone. */
.seller-profile-r2 .seller-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
}
.seller-profile-r2 .seller-contact-grid--single { grid-template-columns: minmax(0, 1fr); }
.seller-profile-r2 .seller-contact-instagram { min-width: 0; align-self: center; }
.seller-profile-r2 .seller-instagram-unavailable {
  display: inline-flex; align-items: center; gap: 11px;
  color: #597984; font-size: clamp(12px, 1.3vw, 15px);
}
.seller-profile-r2 .seller-instagram-unavailable svg {
  display: block; width: 24px; height: 24px; flex: 0 0 24px; color: #174957;
}
.seller-profile-r2 .seller-contact-map {
  justify-self: end; width: min(100%, 180px); min-width: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
}
.seller-profile-r2 .seller-contact-map .seller-map-wrap {
  box-sizing: border-box; width: 100% !important; max-width: 180px !important;
  height: auto !important; aspect-ratio: 1 / 1 !important;
  margin: 0 !important; border: 1px solid #174957;
  border-radius: 16px; overflow: hidden;
}
.seller-profile-r2 .seller-contact-map .seller-map-wrap iframe {
  display: block; width: 100% !important; height: 100% !important;
  border: 0 !important;
}
.seller-profile-r2 .seller-map-inline-link {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px;
  color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
  font: 12px system-ui, Arial, sans-serif;
}
.seller-profile-r2 .seller-map-demo-note,
.seller-profile-r2 .seller-map-address {
  color: #587a84; font: 11px/1.45 system-ui, Arial, sans-serif;
  text-align: right; overflow-wrap: anywhere;
}
/* Conceal a legacy browser-console map inserted into the About panel. */
.seller-profile-r2 .seller-about-panel > .seller-map-wrap { display: none !important; }
@media (max-width: 560px) {
  .seller-profile-r2 .seller-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .seller-profile-r2 .seller-contact-map { justify-self: end; width: min(100%, 160px); }
  .seller-profile-r2 .seller-contact-map .seller-map-wrap { max-width: 160px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .seller-profile-r2 .seller-contact-grid * { scroll-behavior: auto; }
}
