:root {
    --advisory-primary: #FFA52E;
    --advisory-primary-hover: #e3952d;
    --advisory-secondary: #111111;
    --advisory-text: #111111;
}

.wcap-user-menu {
  position: relative;
  display: inline-flex;
  z-index: 999;
}

.wcap-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: transparent !important;
  border: none;
  border-radius: 100px;

  cursor: pointer;
  font-family: inherit;
  font-size: 21px;
  color: inherit;
  transition: background 0.15s;
  line-height: 1;
}

 

.wcap-menu-trigger:hover {
  background: transparent;
}

.wcap-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  color: var(--advisory-primary);
}

.wcap-menu-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wcap-menu-avatar-default {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.wcap-menu-label {
  font-weight: 400;
  white-space: nowrap;
  color: #fff; 
  line-height: 0;
}

.wcap-menu-arrow {
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
}

.wcap-user-menu.is-open .wcap-menu-arrow {
  transform: rotate(180deg);
}

.wcap-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.wcap-user-menu.is-open .wcap-menu-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wcap-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.9em;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.wcap-menu-item:hover {
  background: var(--advisory-primary-hover);
  color: #fff;
}

/* ── Login Modal ── */

.wcap-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wcap-login-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wcap-login-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.wcap-login-overlay.is-open .wcap-login-modal {
  transform: translateY(0) scale(1);
}

.wcap-login-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px;
  font-family: inherit;
  transition: color 0.15s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcap-login-close:hover {
  color: var(--advisory-text);
}

.wcap-login-content {
  padding: 40px 36px 36px;
}

.wcap-login-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--advisory-text);
  font-family: inherit;
}

.wcap-login-subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  color: #666;
  font-family: inherit;
  line-height: 1;
}

.wcap-login-field {
  margin-bottom: 18px;
}

.wcap-login-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  font-family: inherit;
}

.wcap-login-field input[type="text"],
.wcap-login-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #000 !important;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.wcap-login-field input[type="text"]:focus,
.wcap-login-field input[type="password"]:focus {
  outline: none;
  border-color: var(--advisory-primary);
  background: #fff;
}

.wcap-password-wrapper {
  position: relative;
}

.wcap-password-wrapper input[type="password"],
.wcap-password-wrapper input[type="text"] {
  padding-right: 44px;
}

.wcap-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #999;
  line-height: 0;
  transition: color 0.15s;
}

.wcap-password-toggle:hover {
  color: var(--advisory-text);
}

.wcap-login-remember {
  margin-bottom: 20px;
}

.wcap-login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  cursor: pointer;
}

.wcap-login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--advisory-primary);
}

.wcap-login-error {
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
  color: #b91c1c;
  font-family: inherit;
}

.wcap-login-submit {
  width: 100%;
  padding: 13px;
  background: var(--advisory-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.wcap-login-submit:hover {
  opacity: 0.9;
}

.wcap-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wcap-login-lost {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--advisory-primary);
  text-decoration: none;
  font-family: inherit;
}

.wcap-login-lost:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
  .wcap-login-content {
    padding: 32px 24px 28px;
  }

  .wcap-login-title {
    font-size: 21px;
  }

  .wcap-menu-trigger {
    padding: 0;
  }

  .wcap-menu-avatar,
  .wcap-menu-avatar-default {
    width: 32px;
    height: 32px;
  }

  .wcap-menu-label {
    display: none;
  }
}
