/* WordPress, Polylang and the existing Pascale authentication overlay. */

.home-v4-template .v4-language {
  position: relative;
}

.home-v4-template .v4-language summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.home-v4-template .v4-language summary::-webkit-details-marker {
  display: none;
}

.home-v4-template .v4-language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  min-width: 150px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.35);
}

.home-v4-template .v4-language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.home-v4-template .v4-language-menu a:hover,
.home-v4-template .v4-language-menu a.is-active {
  background: var(--primary-light);
  color: var(--primary-deep);
}

.home-v4-template .v4-language-code {
  font-weight: 850;
}

.home-v4-template .mobile-language-switcher {
  display: flex;
  gap: 8px;
  padding: 9px 0 4px;
}

.home-v4-template .mobile-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.home-v4-template .mobile-language-switcher a.is-active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-deep);
}

/* The reusable auth view still emits these established component classes. */
.auth-overlay .btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 40px;
  background: #ff2aa0;
  color: #fff;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.auth-overlay .subscription-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-overlay .subscription-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  overflow: hidden;
  border: 2px solid #c0c0c0;
  border-radius: 20px;
  background: #c0c0c0;
  cursor: pointer;
}

.auth-overlay .subscription-item.active {
  border-color: #a95fbd;
  background: #a95fbd;
}

.auth-overlay .subscription-item .name {
  width: 30%;
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.auth-overlay .subscription-item .content {
  display: flex;
  width: 70%;
  min-height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  color: #000;
  font-size: 17px;
  text-align: center;
}

.auth-overlay .subscription-item .content p {
  margin: 0;
}

.auth-overlay .subscription-item .subscription-access-total {
  color: #ff2aa0;
}

@media (max-width: 1000px) {
  .home-v4-template .nav-cta .v4-language {
    display: none;
  }
}

@media (min-width: 1001px) {
  .home-v4-template .mobile-language-switcher {
    display: none;
  }
}

@media (max-width: 420px) {
  .auth-overlay .subscription-item {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-overlay .subscription-item .name,
  .auth-overlay .subscription-item .content {
    width: 100%;
  }

  .auth-overlay .subscription-item .name {
    padding: 10px;
  }
}
