/* PlasmaRP 2.1.1 — leggibilita globale */
html {
  font-size: 16px;
}

body {
  font-size: 16px !important;
  line-height: 1.6;
}

body p {
  font-size: clamp(14px, .9vw, 17px) !important;
  line-height: 1.7 !important;
}

body small {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body button,
body input,
body select,
body textarea,
body .btn,
body .vision-btn,
body .icon-btn {
  font-size: 13px !important;
}

body .main-nav a,
body.vision-site .vision-main-nav a {
  font-size: 12px !important;
}

body.vision-site .vision-connect,
body.vision-site .vision-header .discord-login-btn,
body.vision-site .vision-header .discord-user-control,
body.vision-site .vision-connect span {
  font-size: 12px !important;
}

body.vision-site .vision-eyebrow,
body .pc-kicker,
body .eyebrow {
  font-size: 11px !important;
}

body.vision-site .vision-badge {
  font-size: 10px !important;
}

body.vision-site .vision-text-link {
  font-size: 13px !important;
}

body.vision-site .vision-hero-lead {
  font-size: clamp(16px, 1vw, 19px) !important;
}

body.vision-site .vision-hero-slogan {
  font-size: 14px !important;
}

body.vision-site .vision-hero-links small,
body.vision-site .editorial-featured-points small,
body.vision-site .editorial-featured-media-caption small,
body.vision-site .editorial-featured-bottom small,
body.vision-site .vision-home-product-info small {
  font-size: 10px !important;
}

body.vision-site .vision-hero-links strong {
  font-size: 13px !important;
}

body.vision-site .vision-section-label span,
body.vision-site .editorial-featured-head span {
  font-size: 11px !important;
}

body.vision-site .vision-section-label p,
body.vision-site .editorial-featured-head p,
body.vision-site .vision-section-head > p {
  font-size: 15px !important;
}

body.vision-site .editorial-featured-intro {
  font-size: 16px !important;
}

body.vision-site .editorial-featured-points p {
  font-size: 14px !important;
}

body.vision-site .vision-experience-card span {
  font-size: 10px !important;
}

body.vision-site .vision-experience-card h3 {
  font-size: 19px !important;
}

body.vision-site .vision-experience-card p,
body.vision-site .vision-home-product-info p {
  font-size: 14px !important;
}

body.vision-site .vision-store-copy p,
body.vision-site .vision-community-card p {
  font-size: 15px !important;
}

body.vision-site .vision-home-product-info strong {
  font-size: 18px !important;
}

body.vision-site .vision-home-product-info > div b {
  font-size: 12px !important;
}

/* Store */
body.page-store .vision-store-hero-bg img {
  filter: saturate(.72) brightness(.68) contrast(1.02) !important;
}

body.page-store .vision-store-hero-bg::after {
  background:
    linear-gradient(90deg, rgba(31, 12, 5, .50), rgba(5, 5, 5, .30) 50%, rgba(5, 5, 5, .55)),
    linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .34)) !important;
}

body.vision-site .vision-store-hero p {
  max-width: 800px;
  font-size: 16px !important;
}

body.vision-site .pill {
  min-height: 40px !important;
  padding-inline: 17px !important;
  font-size: 12px !important;
}

body.vision-site .vision-search-box input {
  font-size: 15px !important;
}

body.vision-site .vision-catalog-count,
body.vision-site .product-cat-tag,
body.vision-site .vision-account-card > span {
  font-size: 10px !important;
}

body.vision-site .product-body h3 {
  font-size: 17px !important;
}

body.vision-site .product-body .desc {
  min-height: 52px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body.vision-site .product-footer .price {
  font-size: 16px !important;
}

body.vision-site .product-card-link,
body.vision-site .vision-account-card a {
  font-size: 12px !important;
}

body.vision-site .vision-discord-card h3 {
  font-size: 20px !important;
}

body.vision-site .vision-discord-card p,
body.vision-site .vision-account-card p {
  font-size: 14px !important;
}

body.vision-site .vision-account-card > strong {
  font-size: 16px !important;
}

/* Footer, login, privacy e anteprime */
body.vision-site .vision-footer-brand p {
  font-size: 14px !important;
}

body.vision-site .vision-footer-top h4 {
  font-size: 11px !important;
}

body.vision-site .vision-footer-top > div:not(:first-child) a {
  font-size: 13px !important;
}

body.vision-site .vision-footer-bottom {
  font-size: 10px !important;
}

body .pc-auth-box p,
body .discord-auth-note {
  font-size: 15px !important;
}

body.page-preview .preview-card small,
body.page-preview .preview-detail small,
body.page-preview .preview-help,
body.page-preview .preview-counter {
  font-size: 12px !important;
}

body.page-preview .preview-detail p {
  font-size: 15px !important;
}

/* Pannello staff */
body.staff-premium {
  font-size: 15px !important;
}

body.staff-premium .staff-nav-item,
body.staff-premium table td {
  font-size: 13px !important;
}

body.staff-premium table th,
body.staff-premium label,
body.staff-premium .field label {
  font-size: 12px !important;
}

body.staff-premium input,
body.staff-premium textarea,
body.staff-premium select {
  font-size: 14px !important;
}

body.staff-premium .tag {
  font-size: 11px !important;
}

body .plasma-notice-card,
body .cart-drawer,
body .modal {
  font-size: 14px !important;
}

/* Pannello conferma ordine: struttura leggibile e resistente alla cache/layout legacy. */
body .plasma-notice-card.notice-mode-order.is-active {
  left: 50% !important;
  bottom: 50% !important;
  width: min(680px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100svh - 32px) !important;
  overflow: hidden !important;
  transform: translate(-50%, 50%) !important;
  border: 1px solid rgba(52, 211, 153, .42) !important;
  background: #090a0d !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), 0 0 0 1px rgba(52, 211, 153, .08) !important;
}

body .notice-mode-order .plasma-notice-content {
  width: 100% !important;
  height: auto !important;
  max-height: calc(100svh - 34px) !important;
  justify-content: flex-start !important;
  padding: 30px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, .55) transparent;
}

body .notice-mode-order .plasma-notice-content > small {
  display: block;
  margin-bottom: 8px;
  color: #70e0b4 !important;
}

body .notice-mode-order .plasma-notice-title {
  margin: 0 !important;
  color: #fff;
  font-size: clamp(25px, 4vw, 36px) !important;
  line-height: 1.05;
}

body .notice-mode-order .plasma-notice-message {
  max-width: 62ch;
  margin: 11px 0 20px !important;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body .notice-mode-order .order-code-result {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, .30) !important;
  border-radius: 10px !important;
  background: rgba(52, 211, 153, .055) !important;
}

body .notice-mode-order .order-code-main {
  padding: 18px 20px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

body .notice-mode-order .order-code-label,
body .notice-mode-order .order-summary-label {
  display: block;
  color: #83e7bf;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.3;
}

body .notice-mode-order .order-code-main > strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font: 900 clamp(21px, 4vw, 33px)/1.15 var(--font-display);
  letter-spacing: .07em;
  overflow-wrap: anywhere;
}

body .notice-mode-order .order-code-main > p {
  margin: 7px 0 0 !important;
  color: rgba(255, 255, 255, .53) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body .notice-mode-order .order-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
}

body .notice-mode-order .order-items-block,
body .notice-mode-order .order-total-block {
  padding: 16px 20px;
}

body .notice-mode-order .order-total-block {
  border-left: 1px solid rgba(255, 255, 255, .10);
}

body .notice-mode-order .order-code-items {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding: 0 !important;
  border: 0 !important;
}

body .notice-mode-order .order-code-items span {
  display: block;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.4;
}

body .notice-mode-order .order-total-block b {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px !important;
  line-height: 1.2;
  white-space: nowrap;
}

body .notice-mode-order .plasma-notice-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 10px !important;
  margin-top: 20px !important;
  padding-top: 2px;
  background: #090a0d;
}

body .notice-mode-order .plasma-notice-button {
  width: 100%;
  min-width: 0 !important;
  height: 42px;
  padding: 0 10px !important;
  overflow: hidden;
  font-size: 10px !important;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  body .notice-mode-order .plasma-notice-content {
    padding: 22px 18px !important;
  }

  body .notice-mode-order .order-summary-grid {
    grid-template-columns: 1fr;
  }

  body .notice-mode-order .order-total-block {
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-left: 0;
  }

  body .notice-mode-order .plasma-notice-actions {
    grid-template-columns: 1fr 1fr;
  }

  body .notice-mode-order .order-action-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body .notice-mode-order .order-action-discord {
    grid-column: 2;
    grid-row: 1;
  }

  body .notice-mode-order .order-action-close {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-height: 620px) {
  body .notice-mode-order .plasma-notice-content {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  body .notice-mode-order .plasma-notice-message {
    margin-bottom: 13px !important;
  }

  body .notice-mode-order .order-code-main {
    padding-top: 14px;
    padding-bottom: 13px;
  }

  body .notice-mode-order .order-code-main > p {
    display: none;
  }

  body .notice-mode-order .order-items-block,
  body .notice-mode-order .order-total-block {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body .notice-mode-order .plasma-notice-actions {
    margin-top: 13px !important;
  }
}

@media (max-width: 600px) {
  body,
  body p {
    font-size: 15px !important;
  }

  body .main-nav a,
  body.vision-site .vision-main-nav a,
  body button,
  body input,
  body select,
  body textarea {
    font-size: 13px !important;
  }

  body.vision-site .vision-store-hero p {
    font-size: 15px !important;
  }
}

/* PlasmaRP 2.1.5 — catalogo Store compatto */
body.page-store .vision-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

body.page-store .product-card {
  min-width: 0 !important;
  border-radius: 12px !important;
}

body.page-store .product-media {
  aspect-ratio: 16 / 9 !important;
}

body.page-store .product-body {
  gap: 10px !important;
  padding: 14px !important;
}

body.page-store .product-body h3 {
  overflow: hidden !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.page-store .product-body .desc {
  display: none !important;
}

body.page-store .product-footer {
  gap: 10px !important;
  padding-top: 11px !important;
}

body.page-store .product-footer .price {
  font-size: 14px !important;
}

body.page-store .product-card-link {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 5px !important;
  padding-right: 2px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

body.page-store .product-card-link b {
  display: inline-block !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

body.page-store .product-cat-tag {
  padding: 5px 8px !important;
  font-size: 9px !important;
}

/* Badge del carrello interamente visibile */
body.vision-site .vision-cart-button {
  overflow: visible !important;
  isolation: auto !important;
}

body.vision-site .vision-cart-button .cart-badge {
  z-index: 5 !important;
  top: -8px !important;
  right: -8px !important;
  min-width: 21px !important;
  height: 21px !important;
  padding: 0 5px !important;
  border: 2px solid #080809 !important;
  background: #ff4500 !important;
  font-size: 11px !important;
  line-height: 17px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .42) !important;
}

/* Account Discord leggibile nella testata */
body.vision-site .vision-header .discord-user-control {
  min-height: 44px !important;
  gap: 10px !important;
  padding: 4px 9px 4px 5px !important;
}

body.vision-site .vision-header .discord-user-control > img,
body.vision-site .vision-header .discord-user-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
}

body.vision-site .vision-header .discord-user-control > span:not(.discord-user-icon) {
  max-width: 180px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.vision-site .vision-header .discord-user-control > a {
  padding: 7px 10px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

@media (max-width: 760px) {
  body.page-store .vision-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 520px) {
  body.page-store .vision-product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Riepilogo del flusso ordine con codice */
body.page-store .product-modal-description {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body.page-store .product-purchase-route {
  margin: 18px 0 !important;
  padding: 15px 16px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-left: 3px solid #ff4500 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .025) !important;
}

body.page-store .product-purchase-route.is-order {
  border-left-color: #34d399 !important;
}

body.page-store .product-purchase-route > span {
  display: block !important;
  color: #77777d !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

body.page-store .product-purchase-route > strong {
  display: block !important;
  margin-top: 5px !important;
  font-size: 16px !important;
}

body.page-store .product-purchase-route > p {
  margin-top: 5px !important;
  color: #96969b !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body.vision-site .cart-drawer {
  max-width: 440px !important;
}

body.vision-site .cart-item {
  align-items: center !important;
}

body.vision-site .cart-item-info h4 {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

body.vision-site .cart-item-info > span {
  font-size: 12px !important;
}

body.vision-site .cart-item-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
}

body.vision-site .cart-item-purchase,
body.vision-site .cart-item-remove {
  min-height: 29px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 7px !important;
  background: #151517 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

body.vision-site .cart-item-purchase {
  color: #fff !important;
}

body.vision-site .cart-item-remove {
  color: #ff9c77 !important;
}

body.vision-site .cart-purchase-note {
  margin: 0 !important;
  color: #929298 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

/* PlasmaRP 2.1.6 — finestra Dettagli sempre separata e interamente accessibile */
body.page-store #productOverlay {
  align-items: center !important;
  padding: 48px 18px !important;
  overflow: hidden !important;
}

body.page-store #productModal {
  width: min(720px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 96px) !important;
  max-height: calc(100dvh - 96px) !important;
  margin: 0 auto !important;
  padding-bottom: 36px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-color: #d9501d transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

body.page-store #productModal::-webkit-scrollbar {
  width: 8px;
}

body.page-store #productModal::-webkit-scrollbar-track {
  margin-block: 10px;
  background: transparent;
}

body.page-store #productModal::-webkit-scrollbar-thumb {
  border: 2px solid #0b0b0d;
  border-radius: 999px;
  background: #d9501d;
}

body.page-store #productModal .product-modal-actions {
  margin-bottom: 2px !important;
}

@media (max-width: 720px) {
  body.page-store #productOverlay {
    align-items: center !important;
    padding: 20px 10px !important;
  }

  body.page-store #productModal {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    border-radius: 14px !important;
    padding: 22px 18px 30px !important;
  }
}

/* Keep account controls operable on narrow layouts. */
@media (max-width: 860px) {
  body.vision-site .vision-header .discord-user-control > a {
    display: inline-flex !important;
  }

  body.vision-site .vision-header .discord-user-control > .discord-user-icon,
  body.vision-site .discord-login-large > span {
    display: inline-block !important;
  }
}
