/* ============================================================
   GOOGLE SIGN-IN & CUSTOMER ACCOUNT STYLES - TIENDA LA LUZ
   ============================================================ */

/* 1. Header User Button & Dropdown */
.user-account-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: #222222;
  transition: background 0.2s, color 0.2s;
}

.user-account-btn:hover {
  color: var(--temu-orange, #fa6400);
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fa6400;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.user-account-text {
  text-align: left;
  line-height: 1.2;
}

.user-account-text .u-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-account-text .u-sub {
  display: block;
  font-size: 11px;
  color: #767676;
}

/* Dropdown Menu when Logged in */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #ebebeb;
  padding: 8px 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-account-wrapper:hover .user-dropdown-menu,
.user-dropdown-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-dropdown-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-info {
  line-height: 1.3;
  overflow: hidden;
}

.user-dropdown-info .d-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-info .d-email {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  font-weight: 600;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333333;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown-item:hover {
  background: #f8fafc;
  color: #fa6400;
}

.user-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 0;
}

.user-dropdown-item.logout-link {
  color: #dc2626;
}

.user-dropdown-item.logout-link:hover {
  background: #fef2f2;
}

/* ============================================================
   2. GOOGLE LOGIN MODAL
   ============================================================ */
.google-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.google-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.google-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.google-modal-overlay.is-active .google-modal-card {
  transform: scale(1) translateY(0);
}

.google-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.google-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.google-modal-hero {
  text-align: center;
  padding: 36px 28px 20px;
}

.google-modal-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.google-modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.google-modal-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Benefits list */
.google-benefits-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 28px 22px;
  font-size: 12.5px;
  color: #334155;
}

.google-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.google-benefit-item:last-child {
  margin-bottom: 0;
}

.google-benefit-item svg {
  color: #00a650;
  flex-shrink: 0;
}

/* The Official Google Button */
.google-btn-wrapper {
  padding: 0 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-google-official {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #3c4043;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-google-official:hover {
  background: #f8fafd;
  border-color: #d2e3fc;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
  color: #1a73e8;
  transform: translateY(-1px);
}

.btn-google-official:active {
  transform: translateY(0);
  background: #eeeeee;
}

.google-g-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Quick One-Click Account Selector in demo mode */
.google-quick-accounts {
  width: 100%;
  margin-top: 4px;
}

.quick-accounts-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.quick-account-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.quick-account-pill:hover {
  border-color: #4285f4;
  background: #eff6ff;
}

.quick-account-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-account-user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.quick-account-user span {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}

.quick-account-user small {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
}

/* Modal Footer for Admin Notice */
.google-modal-footer {
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.google-modal-footer a {
  color: #fa6400;
  font-weight: 700;
  text-decoration: none;
}

.google-modal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .google-modal-card {
    border-radius: 16px;
  }
  .google-benefits-box {
    margin: 0 16px 18px;
    padding: 12px 14px;
  }
  .google-btn-wrapper {
    padding: 0 16px 18px;
  }
}
