/* devprivateshop — Private Shop styles */

/* ================================================================== */
/* Centered panel over full-page cover image                            */
/* ================================================================== */

body.ml-ps-layout {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #fff;
}

.ml-ps-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

/* Full-page background image, fixed behind the centered panel */
.ml-ps-cover {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark scrim so the centered card stands out on any cover image */
.ml-ps-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Site logo shown at the top of the panel */
.ml-ps-panel__logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ml-ps-panel__logo img {
  max-height: 52px;
  max-width: 200px;
  width: auto;
  height: auto;
}

.ml-ps-panel__shop-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

/* ── Language selector ── */
.ml-ps-lang {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 100;
  font-family: inherit;
}

.ml-ps-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  transition: border-color .15s, box-shadow .15s;
}

.ml-ps-lang__trigger:hover {
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.ml-ps-lang__trigger img {
  border-radius: 2px;
}

.ml-ps-lang__trigger svg {
  transition: transform .2s;
  color: #888;
}

.ml-ps-lang:hover .ml-ps-lang__trigger svg,
.ml-ps-lang__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ml-ps-lang__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.3rem 0.3rem;  /* padding-top bridges the visual gap */
  overflow: hidden;
}

.ml-ps-lang:hover .ml-ps-lang__menu {
  display: block;
  animation: ml-ps-fade-in .15s ease;
}

@keyframes ml-ps-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ml-ps-lang__menu li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background .12s;
}

.ml-ps-lang__menu li a:hover {
  background: #f5f5f5;
}

.ml-ps-lang__menu li[aria-selected="true"] a {
  background: #f0f0f0;
  font-weight: 700;
}

.ml-ps-lang__menu img {
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Centered panel (card), floats over the full-page cover ── */
.ml-ps-panel {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;    /* only the card scrolls if content overflows */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.ml-ps-panel__inner {
  width: 100%;
  
  margin: 0 auto;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* ── Page header ── */
.ml-ps-panel__inner .page-header {
  display: none;
}

/* ── Page content: strip the theme's card border/padding, our panel is already the card ── */
.ml-ps-panel__inner .page-content {
  border: none !important;
  padding: 0 !important;
}

/* ── Form styling ── */
.ml-ps-panel__inner .login-form,
.ml-ps-panel__inner .register-form {
  box-shadow: none;
  padding: 0;
}

/* Labels above inputs: override Bootstrap 3 horizontal grid */

/* Neutralize .row negative margins on form-group */
.ml-ps-panel__inner .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
}

/* Label: neutralize col padding, stack above input */
.ml-ps-panel__inner .form-group > .form-control-label {
  float: none;
  width: 100%;
  padding: 0 0 0.35rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Input column: neutralize col padding, full width */
.ml-ps-panel__inner .form-group > .js-input-column {
  float: none;
  width: 100%;
  padding: 0;
}

/* Hide the "Optional" comment column */
.ml-ps-panel__inner .form-group > .form-control-comment {
  display: none;
}

.ml-ps-panel__inner .form-control {
  border-radius: 6px;
  width: 100%;
}

/* Password field: keep input+show-password button on one row.
   width:100% above becomes the flex-basis of the input inside the
   input-group's flex row, leaving no space for the button, so it
   wraps to the next line (input-group has flex-wrap:wrap). */
.ml-ps-panel__inner .input-group {
  flex-wrap: nowrap;
}

.ml-ps-panel__inner .input-group .form-control {
  width: auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ml-ps-panel__inner .input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Submit button */
.ml-ps-panel__inner .btn-primary,
.ml-ps-panel__inner .form-control-submit {
  width: 100%;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  float: none !important;
}

/* ── No-account: hidden (invitation-only shop, no self-registration CTA) ── */
.ml-ps-panel__inner .no-account {
  display: none;
}

.ml-ps-panel__inner .no-account a,
.ml-ps-panel__inner .no-account a:link,
.ml-ps-panel__inner .no-account a:visited {
  display: inline !important;
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #25b9d7 !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-align: left;
  transition: none;
}

.ml-ps-panel__inner .no-account a:hover,
.ml-ps-panel__inner .no-account a:focus {
  color: #1a8fa0 !important;
  background: none !important;
  text-decoration: underline !important;
}

/* ── Registration: "Already have an account?" line ── */
.ml-ps-panel__inner .register-form > p {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
}

.ml-ps-panel__inner .register-form > p a {
  color: #25b9d7;
  text-decoration: underline;
  font-weight: 600;
}

.ml-ps-panel__inner .register-form > p a:hover {
  color: #1a8fa0;
}

/* ── Password-recovery form (center-email-fields layout) ── */
/* Override the inline col-md-3 + col-md-5 + button row */
.ml-ps-panel__inner .forgotten-password .form-group.center-email-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0;
  margin-right: 0;
}

.ml-ps-panel__inner .forgotten-password .form-group.center-email-fields > label.form-control-label {
  float: none;
  width: 100%;
  padding: 0 0 0.15rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.ml-ps-panel__inner .forgotten-password .form-group.center-email-fields > .email {
  float: none;
  width: 100%;
  padding: 0;
}

.ml-ps-panel__inner .forgotten-password .form-group.center-email-fields > .email input {
  width: 100%;
  border-radius: 6px;
}

.ml-ps-panel__inner .forgotten-password .form-group.center-email-fields > button.form-control-submit {
  float: none;
  width: 100%;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Back-to-login link */
.ml-ps-panel__inner #back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #25b9d7;
  text-decoration: none;
}

.ml-ps-panel__inner #back-to-login:hover {
  color: #1a8fa0;
  text-decoration: underline;
}

/* Password-recovery: description text alignment */
.ml-ps-panel__inner .forgotten-password header .send-renew-password-link {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── Pending approval message ── */
.ml-privateshop-pending {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ── Responsive: smaller card + padding on small screens ── */
@media (max-width: 768px) {
  .ml-ps-wrap {
    padding: 1rem;
  }

  .ml-ps-panel {
    border-radius: 12px;
    max-height: calc(100vh - 2rem);
  }

  .ml-ps-panel__logo img {
    max-height: 40px;
  }

  .ml-ps-panel__inner {
    padding: 2rem 1.25rem;
  }
}

/* ================================================================== */
/* Pending / thank-you page (same layout, right column only)           */
/* ================================================================== */

.ml-privateshop-pending-page {
  text-align: center;
  padding: 1rem 0;
}

.ml-privateshop-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.ml-privateshop-pending-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ml-privateshop-message {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ml-privateshop-submessage {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}
