/*
 * Manì Boutique panels: site search, cart and account. Shared by the Next.js pages, the legacy Rolex pages and the
 * shop (public/shop), injected by /mani/overlays.js. Plain CSS, every rule sets its own box model and typography.
 */
@font-face {
  font-family: "Mani Helvetica Now Text";
  src: url("/rcpo/assets/fonts/et9esh4wcv-7a5a445e-de3f-4690-9002-552575769c45.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.mani-header__icon {
  position: relative;
}

.mani-header__badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #202043;
  color: #fff;
  font: 600 10px/16px "Mani Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}

.mani-header__badge[hidden] {
  display: none;
}

.mani-overlay,
.mani-overlay * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  text-transform: none;
}

.mani-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  visibility: hidden;
  color: #202043;
  font-family: "Mani Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  transition: visibility 0s linear 0.35s;
}

.mani-overlay.is-open {
  visibility: visible;
  transition: none;
}

.mani-overlay a {
  color: inherit;
  text-decoration: none;
}

.mani-overlay button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mani-overlay ul {
  list-style: none;
}

.mani-overlay img {
  display: block;
  max-width: 100%;
}

.mani-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 36, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mani-overlay.is-open .mani-overlay__backdrop {
  opacity: 1;
}

.mani-overlay__close {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mani-overlay__close:hover,
.mani-overlay__close:focus-visible {
  background: #f3f0ea;
}

.mani-overlay__close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.mani-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.mani-overlay-open,
html.mani-overlay-open body {
  overflow: hidden;
}

/* Search: panel dropping from the top */

.mani-search__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 860px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 16, 36, 0.18);
  transform: translateY(-104%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mani-search.is-open .mani-search__panel {
  transform: none;
}

.mani-search__form {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, 100% - 64px);
  margin: 0 auto;
  padding: 34px 0 18px;
  border-bottom: 1px solid #202043;
}

.mani-search__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.mani-search__form input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202043;
  font: 300 30px/1.2 "Mani Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.mani-search__form input::placeholder {
  color: #9a9aad;
}

.mani-search__form input::-webkit-search-cancel-button {
  display: none;
}

.mani-search__body {
  width: min(1180px, 100% - 64px);
  margin: 0 auto;
  padding: 24px 0 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mani-search__eyebrow {
  margin-bottom: 14px;
  color: #8a8069;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mani-search__eyebrow span {
  margin-left: 6px;
  color: #b3ab98;
}

.mani-search__intro[hidden] {
  display: none;
}

.mani-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mani-search__chips button {
  padding: 9px 18px;
  border: 1px solid #dcd6ca;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mani-search__chips button:hover,
.mani-search__chips button:focus-visible {
  border-color: #202043;
  background: #202043;
  color: #fff;
}

.mani-search__status {
  color: #6b6b80;
  font-size: 14px;
}

.mani-search__status:empty {
  display: none;
}

.mani-search__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 48px;
  margin-top: 22px;
}

.mani-search__results:empty {
  display: none;
}

.mani-search__group--products {
  grid-column: 1 / -1;
}

.mani-search__group ul {
  display: grid;
  gap: 4px;
}

.mani-search__group--products ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mani-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mani-result:hover,
.mani-result:focus-visible {
  background: #f6f3ee;
}

.mani-result__media {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 3px;
  background: #f6f3ee;
}

.mani-result__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mani-result__media--empty {
  color: #c6a856;
  font-size: 24px;
}

.mani-result__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mani-result__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
}

.mani-result__sub {
  color: #6b6b80;
  font-size: 12.5px;
}

.mani-result__price {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 600;
}

.mani-search__group--products .mani-result {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0 0 8px;
}

.mani-search__group--products .mani-result:hover {
  background: none;
}

.mani-search__group--products .mani-result__media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.mani-search__group--products .mani-result:hover .mani-result__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mani-overlay .mani-search__more {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

/* Cart and account: drawer from the right */

.mani-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: #fff;
  box-shadow: -20px 0 50px rgba(16, 16, 36, 0.16);
  transform: translateX(104%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mani-drawer.is-open .mani-drawer__panel {
  transform: none;
}

.mani-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px 28px;
  border-bottom: 1px solid #ebe6dc;
}

.mani-drawer__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mani-drawer__title span {
  color: #8a8069;
}

.mani-drawer__body {
  flex: 1;
  padding: 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mani-drawer__foot {
  display: grid;
  gap: 10px;
  padding: 20px 28px 26px;
  border-top: 1px solid #ebe6dc;
  background: #faf8f4;
}

.mani-drawer__foot[hidden] {
  display: none;
}

.mani-drawer__loading {
  color: #6b6b80;
}

.mani-drawer__lead {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
}

.mani-drawer__empty > p:not(.mani-drawer__lead),
.mani-account > p {
  color: #55556b;
}

.mani-drawer__links {
  margin-top: 26px;
  border-top: 1px solid #ebe6dc;
}

.mani-drawer__links a {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #ebe6dc;
}

.mani-drawer__links a::after {
  content: "→";
  color: #c6a856;
  transition: transform 0.2s ease;
}

.mani-drawer__links a:hover::after {
  transform: translateX(4px);
}

.mani-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mani-overlay .mani-button--dark {
  background: #202043;
  color: #fff;
}

.mani-overlay .mani-button--dark:hover {
  background: #33335e;
}

.mani-overlay .mani-button--dark:disabled {
  opacity: 0.7;
  cursor: progress;
}

.mani-overlay .mani-button--light {
  border: 1px solid #202043;
  background: #fff;
}

.mani-overlay .mani-button--light:hover {
  background: #f6f3ee;
}

.mani-cart__list {
  display: grid;
  gap: 22px;
}

.mani-cart__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ebe6dc;
}

.mani-cart__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #f6f3ee;
}

.mani-cart__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mani-cart__brand {
  color: #8a8069;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mani-cart__name {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.mani-cart__meta {
  margin-top: 2px;
  color: #6b6b80;
  font-size: 13px;
}

.mani-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.mani-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcd6ca;
  border-radius: 999px;
}

.mani-qty button {
  width: 32px;
  height: 30px;
  font-size: 16px;
}

.mani-qty span {
  min-width: 18px;
  font-size: 14px;
  text-align: center;
}

.mani-cart__remove {
  margin-top: 10px;
  color: #6b6b80;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mani-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}

.mani-cart__total strong {
  font-size: 19px;
}

.mani-cart__note {
  margin-bottom: 6px;
  color: #6b6b80;
  font-size: 12.5px;
}

.mani-cart__unique {
  color: #8a8069;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mani-cart__advisor {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid #c6a856;
  background: #f6f3ee;
  color: #55556b;
  font-size: 12.5px;
  line-height: 1.45;
}

.mani-overlay .mani-cart__advisor a {
  color: #202043;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mani-cart__error {
  color: #a2322b;
  font-size: 13px;
}

.mani-cart__error[hidden] {
  display: none;
}

.mani-account .mani-button {
  margin-top: 22px;
}

.mani-account__divider {
  margin: 28px 0 24px;
  border: 0;
  border-top: 1px solid rgba(32, 32, 67, 0.12);
}

.mani-account__perks {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  padding: 22px;
  background: #f6f3ee;
}

.mani-account__perks li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid #c6a856;
}

.mani-account__perks span {
  color: #55556b;
  font-size: 13.5px;
}

.mani-account__secondary {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mani-account__profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mani-account__profile .mani-drawer__lead {
  margin: 0;
}

.mani-account__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #202043;
  color: #fff;
  font-size: 22px;
}

.mani-account__email {
  color: #6b6b80;
  font-size: 13.5px;
}

@media (max-width: 1000px) {
  .mani-search__group--products ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 750px) {
  .mani-search__panel {
    max-height: 100%;
    height: 100%;
  }

  .mani-search__form {
    width: calc(100% - 32px);
    padding-top: 18px;
    gap: 10px;
  }

  .mani-search__form input {
    font-size: 20px;
  }

  .mani-search__body {
    width: calc(100% - 32px);
  }

  .mani-search__results {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mani-search__group--products ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .mani-drawer__head {
    padding: 16px 12px 14px 20px;
  }

  .mani-drawer__body {
    padding: 22px 20px;
  }

  .mani-drawer__foot {
    padding: 16px 20px 20px;
  }

  .mani-cart__item {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mani-overlay,
  .mani-overlay__backdrop,
  .mani-search__panel,
  .mani-drawer__panel {
    transition: none;
  }
}

/* Cart: "Potrebbe piacerti anche" */

.mani-recs {
  margin-top: 30px;
}

.mani-recs[hidden] {
  display: none;
}

.mani-recs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mani-recs__head p {
  font-size: 18px;
  font-weight: 300;
}

.mani-recs__nav {
  display: flex;
  gap: 6px;
}

.mani-overlay .mani-recs__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dcd6ca;
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.mani-overlay .mani-recs__arrow:hover:not(:disabled) {
  border-color: #202043;
  background: #202043;
  color: #fff;
}

.mani-overlay .mani-recs__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.mani-recs__arrow svg {
  width: 14px;
  height: 14px;
}

.mani-recs__arrow--prev svg {
  transform: rotate(180deg);
}

.mani-recs__list.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.mani-recs__list.is-dragging a {
  pointer-events: none;
}

.mani-recs__head span {
  color: #8a8069;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mani-recs__list {
  cursor: grab;
  display: flex;
  gap: 12px;
  margin: 0 -28px;
  padding: 0 28px 6px;
  scroll-padding-inline: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mani-recs__list::-webkit-scrollbar {
  display: none;
}

.mani-rec {
  position: relative;
  flex: 0 0 150px;
  scroll-snap-align: start;
}

.mani-rec__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #f6f3ee;
}

.mani-rec__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}

.mani-rec:hover .mani-rec__media img {
  transform: scale(1.04);
}

.mani-rec__type {
  display: block;
  margin-top: 9px;
  color: #8a8069;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mani-rec__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.3;
}

.mani-rec__price {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
}

.mani-overlay .mani-rec__add {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 16, 36, 0.14);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mani-overlay .mani-rec__add:hover,
.mani-overlay .mani-rec__add:focus-visible {
  background: #202043;
  color: #fff;
}

.mani-overlay .mani-rec__add svg {
  width: 14px;
  height: 14px;
}

/* Account: favorites and orders */

.mani-tabs {
  display: flex;
  gap: 24px;
  margin: 26px 0 18px;
  border-bottom: 1px solid #ebe6dc;
}

.mani-overlay .mani-tabs button {
  margin-bottom: -1px;
  padding: 0 0 10px;
  border-bottom: 1px solid transparent;
  color: #6b6b80;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mani-overlay .mani-tabs button[aria-selected="true"] {
  border-color: #202043;
  color: #202043;
}

.mani-tabpanel[hidden] {
  display: none;
}

.mani-mini-list {
  display: grid;
  gap: 14px;
}

.mani-mini {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.mani-mini__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #f6f3ee;
}

.mani-mini__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mani-mini__text small {
  display: block;
  color: #8a8069;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mani-mini__text strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
}

.mani-mini__text em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.mani-overlay .mani-mini__remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #6b6b80;
  font-size: 18px;
}

.mani-overlay .mani-mini__remove:hover {
  background: #f3f0ea;
}

.mani-order {
  padding: 16px;
  border: 1px solid #ebe6dc;
  border-radius: 3px;
}

.mani-order + .mani-order {
  margin-top: 12px;
}

.mani-order__head,
.mani-order__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.mani-order__head span {
  font-weight: 600;
}

.mani-order__head time,
.mani-order__foot span {
  color: #6b6b80;
}

.mani-order__items {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mani-order__items div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.mani-order__items img {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #f6f3ee;
  object-fit: contain;
}

.mani-order__items small {
  display: block;
  color: #6b6b80;
  font-size: 12px;
}

.mani-note {
  color: #6b6b80;
  font-size: 13.5px;
}

.mani-note a,
.mani-overlay .mani-note button {
  display: inline-block;
  margin-top: 8px;
  color: #202043;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: none) {
  .mani-recs__nav {
    display: none;
  }
}

@media (max-width: 750px) {
  .mani-recs__list {
    margin: 0 -20px;
    padding: 0 20px 6px;
    scroll-padding-inline: 20px;
  }
}
