/* Mobile density pass based on a 393px-wide reference.
   Intentionally loaded only by the home and party finder pages. */
html,
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 374px) {
  .home .lowest-price-offer.lowest-price-offer--glass {
    min-height: 136px !important;
  }
}

@media (max-width: 350px) {
  .home .lowest-price-offer.lowest-price-offer--glass {
    min-height: 126px !important;
  }
}

/* Shared profile controls on the home bundle. */
.profile-close {
  display: grid !important;
  place-items: center;
  box-sizing: border-box;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1;
  line-height: 1 !important;
}

.profile-close:focus,
.profile-close:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

.profile-avatar.profile-avatar-upload {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.profile-avatar.profile-avatar-upload img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-avatar.profile-avatar-upload > i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1684e5;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.profile-avatar-result {
  display: none;
  margin: 0;
  padding: 8px 20px;
  background: #f1f8ff;
  color: #2874b7;
  font-size: 11px;
}

.profile-avatar-result.show,
.profile-avatar-result.error {
  display: block;
}

.profile-avatar-result.error {
  background: #fff2f3;
  color: #c44752;
}

.profile-empty > b > span {
  display: block;
}

.profile-subscriptions > .profile-empty {
  display: block !important;
  width: 100%;
  max-width: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

@media (max-width: 800px) {
  .mobile-bottom-nav a:focus,
  .mobile-bottom-nav a:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
  }

  .mobile-bottom-nav > a:first-child > b {
    font-size: 24px !important;
  }

  .mobile-bottom-nav > a:first-child.on,
  .mobile-bottom-nav > a:first-child.on > b {
    color: #1684e5 !important;
  }

  .mobile-bottom-nav #mobile-profile-link > b,
  .mobile-bottom-nav #mobile-profile-link.on > b {
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-bottom-nav > a:first-child,
  .mobile-bottom-nav > a:nth-child(4),
  .mobile-bottom-nav #mobile-profile-link,
  .mobile-bottom-nav > a:first-child > b,
  .mobile-bottom-nav > a:nth-child(4) > b,
  .mobile-bottom-nav #mobile-profile-link > b {
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-bottom-nav .mobile-party-create > b,
  .mobile-bottom-nav .mobile-party-create.on > b {
    background: #339cff !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

.brand.mogoo-brand,
.brand.mogoo-brand:hover,
.brand.mogoo-brand:active,
.brand.mogoo-brand:focus,
.brand.mogoo-brand:focus-visible {
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 800px) {
  html body .site-head:has(+ .home) .header-actions #account-link {
    font-size: 12px !important;
  }

  html body .home-section-nav a {
    font-size: 13px !important;
  }

  /* Shared mobile rhythm */
  html body .site-head .header-actions #account-link,
  html body .site-head .header-actions #account-link:hover,
  html body .site-head .header-actions #account-link:active,
  html body .site-head .header-actions #account-link:focus {
    font-size: 12px !important;
  }

  .home .section-head h2,
  .home .section-title {
    font-size: 20px;
    line-height: 1.25;
  }

  .home .section-head p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  /* Home hero and section navigation */
  .home.pixel-home {
    background: #fff !important;
    background-image: none !important;
  }

  .home .mogoo-safety-hero {
    width: calc(100% - 32px);
    height: 104px !important;
    min-height: 104px;
    margin-right: 16px;
    margin-left: 16px;
    border: 0 !important;
    border-radius: 12px !important;
    outline: 0;
    box-shadow: none !important;
  }

  .home .mogoo-safety-hero .safety-single {
    padding: 0 16px;
  }

  .home .mogoo-safety-hero .safety-single h1,
  .home .mogoo-safety-hero .safety-single:first-child h1 {
    max-width: 310px;
    font-size: 17px;
    line-height: 1.17;
    letter-spacing: -.045em;
  }

  .home-section-nav {
    height: 48px;
    padding: 0 10px;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .home-section-nav a {
    font-size: 13px;
  }

  .home-section-nav a::after {
    display: none !important;
  }

  /* Lowest-price section */
  .lowest-price-board {
    --lowest-edge-gap: 16px;
    --lowest-gap: var(--lowest-edge-gap);
    margin: 24px 0 34px;
  }

  .lowest-price-heading {
    width: calc(100% - 32px);
    min-height: 36px;
    margin: 0 16px 12px;
  }

  .lowest-price-heading h2 {
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.045em;
  }

  .lowest-price-actions > a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .lowest-price-carousel {
    width: calc(100% - var(--lowest-edge-gap) - var(--lowest-edge-gap));
    margin-inline: var(--lowest-edge-gap);
  }

  .lowest-price-card {
    height: auto;
    aspect-ratio: 3 / 5;
    padding: 9px;
    border-radius: 16px;
  }

  .lowest-price-logo {
    width: 60px;
    height: 60px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home .lowest-price-offer {
    gap: 4px;
    min-height: 146px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 7px 8px 8px;
    border-radius: 10px;
    justify-content: center;
  }

  .home .lowest-price-offer .lowest-price-name {
    order: 0 !important;
    margin-bottom: 1px;
    color: #15171a;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
  }

  .home .lowest-price-offer s {
    order: 1 !important;
    font-size: 9px;
    line-height: 1.1;
  }

  .home .lowest-price-offer .lowest-price-savings {
    order: 2 !important;
    font-size: 9.5px;
    line-height: 1.1;
  }

  .home .lowest-price-offer em {
    order: 2 !important;
    font-size: 13.5px;
  }

  .home .lowest-price-offer strong {
    order: 3 !important;
    font-size: 14.5px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass {
    min-height: 146px;
    padding: 14px 10px;
    border-radius: 14px;
    gap: 5px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-name {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.08;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-discount {
    font-size: 9.5px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-regular,
  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-regular s {
    font-size: 10px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-regular small {
    font-size: 8.5px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-savings {
    font-size: 10px;
  }

  .home .lowest-price-offer.lowest-price-offer--glass .lowest-price-monthly {
    font-size: 21px;
  }

  .home .lowest-price-card.service-youtube .lowest-price-name {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
  }

  .home .lowest-price-offer strong small {
    font-size: 8.5px;
  }

  .home .price-dashboard-columns {
    font-size: 9.5px;
  }

  .home .price-dashboard .price-dashboard-service b {
    font-size: 12.5px;
  }

  .home .price-dashboard-row > s,
  .home .price-dashboard-row > .price-dashboard-regular {
    font-size: 11px;
  }

  .home .price-dashboard-row > em {
    font-size: 10.5px;
  }

  .home .price-dashboard-row > strong {
    font-size: 12.5px;
  }

  .home .price-dashboard-row > strong small {
    font-size: 7.5px;
  }

  .lowest-price-cta {
    width: calc(100% - 32px);
    margin: 22px 16px 0;
    gap: 8px;
  }

  .lowest-price-cta a {
    min-height: 44px;
    border-radius: 11px;
    font-size: 13px;
  }

  /* Ranking and content sections */
  .home .home-live-ranking {
    margin-top: 44px;
  }

  .home .home-live-ranking .ranking-preview.ranking-surface {
    width: calc(100% - 32px);
    margin-right: 16px !important;
    margin-left: 16px !important;
    padding: 20px 14px 8px;
    border-radius: 18px;
  }

  .home .ranking-preview .ranking-heading {
    gap: 8px;
  }

  .home .ranking-preview .ranking-heading h2 {
    font-size: 19px;
    line-height: 1.2;
  }

  .home .ranking-preview .ranking-heading time,
  .home .ranking-preview .ranking-heading a {
    font-size: 10px;
  }

  .home .ranking-preview .ranking-heading > div:last-child {
    gap: 6px;
  }

  .home .ranking-preview .ranking-tabs {
    margin: 14px -14px 3px;
    padding: 2px 14px 7px;
    gap: 7px;
  }

  .home .ranking-preview .ranking-tabs button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 400;
  }

  .home .ranking-preview .ranking-tabs button.active {
    font-weight: 400;
  }

  .home .ranking-preview .ranking-row.ranking-rotating {
    min-height: 82px;
    grid-template-columns: 28px 46px minmax(0, 1fr);
    gap: 11px;
    padding: 8px 3px;
  }

  .home .ranking-preview .rank-number b {
    font-size: 19px;
  }

  .home .ranking-preview .ranking-poster {
    width: 46px;
    height: 62px;
    border-radius: 6px;
  }

  .home .ranking-preview .ranking-content {
    gap: 6px;
    min-height: 38px;
  }

  .home .ranking-preview .ranking-content h3 {
    font-size: 14px;
  }

  .home .ranking-preview .ranking-score {
    font-size: 12px;
  }

  .home .trailer-section {
    padding-top: 38px;
  }

  .home .trailer-section .section-head,
  .home .featured-parties .section-head {
    margin-right: 16px;
    margin-left: 16px;
  }

  .home .trailer-card {
    border-radius: 14px;
  }

  /* Guides, notices and refund information */
  .home .home-info-grid {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 40px 0 32px;
    gap: 14px;
  }

  .home .home-guide,
  .home .home-notices {
    padding: 20px;
    border-radius: 16px;
  }

  .home .home-guide > span,
  .home .home-notices > span {
    font-size: 11px;
  }

  .home .home-guide h2,
  .home .home-notices h2 {
    margin: 5px 0 16px;
    font-size: 17px;
    line-height: 1.3;
  }

  .home .home-guide li {
    padding: 11px 0;
  }

  .home .home-guide li b,
  .home .notice-row {
    font-size: 13px;
  }

  .home .notice-row {
    min-width: 0;
  }

  .home .notice-row b,
  .home .notice-row span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home .notice-row span {
    margin-left: auto;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .mobile-bottom-nav > a {
    min-width: 0 !important;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .mobile-bottom-nav > a > span {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
  }

  .home .home-guide li p {
    font-size: 11px;
    line-height: 1.45;
  }

  .home .home-guide > a {
    font-size: 12px;
  }

  .home .home-refund-guarantee {
    width: calc(100% - 32px);
    margin: 40px 16px 14px;
    padding: 20px 16px;
    gap: 18px;
    border-radius: 16px;
  }

  .home .home-refund-copy > span {
    font-size: 13px;
  }

  .home .home-refund-copy h2 {
    margin: 7px 0 11px;
    font-size: 18px;
    line-height: 1.38;
  }

  .home .home-refund-copy p {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .home .home-refund-copy > a {
    min-height: 38px;
    margin-top: 16px;
    padding: 0 13px;
    font-size: 13px;
  }

  .home .home-refund-points {
    gap: 8px;
  }

  .home .home-refund-points article {
    padding: 11px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .home .home-refund-points article > i {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .home .home-refund-points b {
    font-size: 13px;
  }

  .home .home-refund-points span {
    font-size: 10px;
  }

  /* Party finder: 16px page gutters and denser cards */
  .party-finder-page .party-finder-hero > .wrap,
  .party-finder-page .party-finder-layout {
    width: calc(100% - 32px);
  }

  .party-finder-page .party-finder-layout {
    padding: 6px 0 42px;
  }

  .party-finder-page .party-finder-hero {
    padding: 6px 0 3px;
  }

  .party-finder-page .party-finder-hero span {
    font-size: 13px;
  }

  .party-finder-page .party-service-picker {
    margin-bottom: 14px;
  }

  .party-finder-page .party-service-options {
    gap: 7px;
    margin-top: 8px;
  }

  .party-finder-page .party-service-option {
    min-height: 70px;
    padding: 6px 2px 5px;
    border-radius: 11px;
  }

  .party-finder-page .party-service-option > span {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 3px 7px rgba(44, 73, 107, .12);
  }

  .party-finder-page .party-service-option:not(.service-all) > span {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    overflow: visible;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .party-finder-page .party-service-option img {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .party-finder-page .party-service-option:not(.service-all) img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    filter: none;
  }

  .party-finder-page .party-service-option i,
  .party-finder-page .party-service-option b {
    font-size: 9.5px;
  }

  .party-finder-page .list-tools {
    min-height: 34px;
    margin-bottom: 10px;
  }

  .party-finder-page .list-tools > b {
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
  }

  .party-finder-page .list-tools select {
    height: 30px;
    min-height: 30px;
    padding: 0 24px 0 10px;
    border: 1px solid #d9e7f4;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
    color: #536478;
    font-size: 10px !important;
    font-weight: 650;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 4px 10px rgba(38, 77, 117, .08);
  }

  .party-finder-page .party-list {
    gap: 10px;
  }

  body .party-finder-page .party-list .finder-list-card {
    min-height: 184px;
    padding: 14px;
    row-gap: 7px;
    border-width: 1px;
    border-radius: 14px;
  }

  .party-finder-page .finder-card-head {
    grid-template-areas: "brand copy host";
    grid-template-columns: 52px minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .party-finder-page .finder-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .party-finder-page .finder-card-copy {
    padding-top: 1px;
    gap: 4px;
  }

  .party-finder-page .finder-card-service {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -.04em;
  }

  .party-finder-page .finder-card-host {
    max-width: 72px;
    font-size: 13px;
  }

  .party-finder-page .finder-card-host-row {
    align-self: start;
    justify-self: end;
  }

  .party-finder-page .finder-card-trust {
    top: 14px;
    right: 14px;
  }

  .party-finder-page .finder-card-trust .seller-trust-badge {
    width: 16px;
    height: 16px;
  }

  .party-finder-page .finder-card-date {
    margin-top: 7px;
    font-size: 11.5px;
    letter-spacing: .045em;
    text-align: left;
  }

  .party-finder-page .finder-card-date strong {
    font-size: 12px;
  }

  .party-finder-page .finder-card-offer {
    grid-template-columns: minmax(0, 1fr) minmax(138px, auto);
    gap: 8px;
  }

  .party-finder-page .finder-card-price.detail-price-guide {
    top: -24px;
    margin: 0 0 9px 12px;
    gap: 4px;
  }

  .party-finder-page .finder-card-price.detail-price-guide .regular-price {
    font-size: 12px;
  }

  .party-finder-page .finder-card-price.detail-price-guide b {
    gap: 8px;
    font-size: 19px;
  }

  .party-finder-page .finder-card-price.detail-price-guide .finder-card-monthly {
    font-size: 20px;
  }

  .party-finder-page .finder-card-seats .detail-capacity {
    gap: 3px;
  }

  .party-finder-page .finder-card-seats .detail-people {
    gap: 2.3px;
  }

  .party-finder-page .finder-card-seats .detail-person {
    width: 20.7px;
    height: 27.6px;
    flex-basis: 20.7px;
  }

  .party-finder-page .finder-card-seats .detail-person::before {
    width: 9.2px;
    height: 9.2px;
  }

  .party-finder-page .finder-card-seats .detail-person::after {
    top: 11.5px;
    width: 17.25px;
    height: 11.5px;
  }

  .party-finder-page .finder-card-seats .capacity-summary span {
    font-size: 10.35px;
  }

  .party-finder-page .finder-card-seats .capacity-summary b {
    font-size: 13.8px;
  }
}
