/**
 * Feira Social — customizer de tema (ícone sliders + modal lateral)
 * Visual alinhado ao header da loja (.gf-admin-topbar__icon-btn + #customize).
 * Usado por /administration e /painel/admin.
 */

/* Botão ícone — mesma força visual dos outros ícones do topnav */
.gf-adm-customize-btn {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  border-radius: 0.7rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0;
  background: rgba(193, 53, 132, 0.05);
  border: 1px solid rgba(193, 53, 132, 0.14);
  color: #3f3f46;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  box-shadow: none;
  line-height: 1;
  opacity: 1;
}
.gf-adm-customize-btn:hover,
.gf-adm-customize-btn:focus {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.35);
  color: #c13584;
  transform: translateY(-1px);
  outline: none;
  text-decoration: none !important;
  opacity: 1;
}
.gf-adm-customize-btn__icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 1;
}
.gf-adm-customize-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2.25;
}

html.theme-dark .gf-adm-customize-btn,
body.dark-mode .gf-adm-customize-btn,
body.theme-dark .gf-adm-customize-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  opacity: 1;
}
html.theme-dark .gf-adm-customize-btn:hover,
html.theme-dark .gf-adm-customize-btn:focus,
body.dark-mode .gf-adm-customize-btn:hover,
body.dark-mode .gf-adm-customize-btn:focus,
body.theme-dark .gf-adm-customize-btn:hover,
body.theme-dark .gf-adm-customize-btn:focus {
  background: rgba(225, 48, 108, 0.16);
  border-color: rgba(225, 48, 108, 0.4);
  color: #f9a8d4;
  opacity: 1;
}

/* No topnav do marketplace, herda a mesma cor dos ícones FA */
.navbar__action-list .gf-adm-customize-btn {
  color: inherit;
}
html.theme-dark .navbar__action-list .gf-adm-customize-btn,
html.theme-dark .navbar__right .gf-adm-customize-btn {
  color: var(--gf-text-2, #e4e4e7) !important;
}
html.theme-dark .navbar__action-list .gf-adm-customize-btn:hover,
html.theme-dark .navbar__action-list .gf-adm-customize-btn:focus,
html.theme-dark .navbar__right .gf-adm-customize-btn:hover,
html.theme-dark .navbar__right .gf-adm-customize-btn:focus {
  color: #f9a8d4 !important;
}

/* Modal lateral (direita), como .modal-right da loja */
.gf-customize-modal.modal {
  padding-right: 0 !important;
}
.gf-customize-modal .modal-dialog,
.gf-customize-modal.modal-right .modal-dialog {
  margin: 0 0 0 auto;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0 !important;
  height: 100%;
  max-width: 380px;
  width: 100%;
}
.gf-customize-modal .modal-content {
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: -12px 0 40px rgba(24, 24, 27, 0.14) !important;
  background: #ffffff !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html.theme-dark .gf-customize-modal .modal-content,
body.dark-mode .gf-customize-modal .modal-content,
body.theme-dark .gf-customize-modal .modal-content {
  background: #18181b !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45) !important;
}

.gf-customize-modal .modal-body {
  padding: 0 !important;
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.gf-customize-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem !important;
  margin: 0;
  border-bottom: 1px solid rgba(193, 53, 132, 0.12) !important;
  background: linear-gradient(180deg, #fff 0%, #faf7f9 100%) !important;
  position: relative;
}
.gf-customize-modal__header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(135deg, #833ab4 0%, #c13584 50%, #e1306c 100%);
}
.gf-customize-modal__title {
  margin: 0;
  font-family: "Sora", "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #18181b !important;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.gf-customize-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(193, 53, 132, 0.06);
  color: #71717a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  text-shadow: none;
  padding: 0;
}
.gf-customize-modal__close:hover {
  background: rgba(225, 48, 108, 0.12);
  color: #c13584;
}

html.theme-dark .gf-customize-modal__header,
body.dark-mode .gf-customize-modal__header,
body.theme-dark .gf-customize-modal__header {
  background: linear-gradient(180deg, #1f1f23 0%, #18181b 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html.theme-dark .gf-customize-modal__title,
body.dark-mode .gf-customize-modal__title,
body.theme-dark .gf-customize-modal__title {
  color: #f4f4f5 !important;
}
html.theme-dark .gf-customize-modal__close,
body.dark-mode .gf-customize-modal__close,
body.theme-dark .gf-customize-modal__close {
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

.gf-customize-modal__form {
  padding: 1.25rem 1.35rem 2rem;
}

.gf-customize-modal__label {
  display: block;
  margin: 0 0 0.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3f3f46;
}
html.theme-dark .gf-customize-modal__label,
body.dark-mode .gf-customize-modal__label,
body.theme-dark .gf-customize-modal__label {
  color: #e4e4e7;
}

.gf-customize-modal__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gf-customize-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(193, 53, 132, 0.14);
  background: #faf7f9;
  color: #52525b;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  margin: 0;
}
.gf-customize-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gf-customize-opt:hover {
  border-color: rgba(225, 48, 108, 0.35);
  color: #c13584;
}
.gf-customize-opt.is-active,
.gf-customize-opt:has(input:checked) {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 50%, #e1306c 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(193, 53, 132, 0.28);
}

html.theme-dark .gf-customize-opt,
body.dark-mode .gf-customize-opt,
body.theme-dark .gf-customize-opt {
  background: #202024;
  border-color: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}
html.theme-dark .gf-customize-opt:hover,
body.dark-mode .gf-customize-opt:hover,
body.theme-dark .gf-customize-opt:hover {
  border-color: rgba(225, 48, 108, 0.4);
  color: #f9a8d4;
}
html.theme-dark .gf-customize-opt.is-active,
html.theme-dark .gf-customize-opt:has(input:checked),
body.dark-mode .gf-customize-opt.is-active,
body.dark-mode .gf-customize-opt:has(input:checked),
body.theme-dark .gf-customize-opt.is-active,
body.theme-dark .gf-customize-opt:has(input:checked) {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 50%, #e1306c 100%);
  border-color: transparent;
  color: #fff !important;
}

.gf-customize-modal__hint {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #71717a;
}
html.theme-dark .gf-customize-modal__hint,
body.dark-mode .gf-customize-modal__hint,
body.theme-dark .gf-customize-modal__hint {
  color: #a1a1aa;
}

/* Bootstrap 3 backdrop stacking for painel */
.gf-customize-modal.modal.in,
.gf-customize-modal.modal.show {
  display: block;
}

/* ═══════════ User pill — igual .gf-admin-topbar__user da loja ═══════════ */

.gf-admin-topbar__user {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.35rem 0.2rem 0.7rem !important;
  border-radius: 999px;
  background: rgba(193, 53, 132, 0.04);
  border: 1px solid rgba(193, 53, 132, 0.14);
  margin-left: 0.25rem !important;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
  box-shadow: none;
  height: auto;
  min-height: 0;
}
button.gf-admin-topbar__user {
  font: inherit;
}
.gf-admin-topbar__user:hover,
.gf-admin-topbar__user:focus,
.gf-admin-topbar__user[aria-expanded="true"] {
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.28);
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

.gf-admin-topbar__hello {
  color: #52525b;
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-family: "DM Sans", system-ui, sans-serif;
}
.gf-admin-topbar__hello strong {
  color: #18181b;
  font-weight: 700;
}

.gf-admin-topbar__avatar {
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem;
  border-radius: 50% !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: 0 0 0 1px rgba(193, 53, 132, 0.15), 0 6px 16px rgba(225, 48, 108, 0.18);
  position: relative;
  display: inline-block;
  background-color: #f4f0f3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
}
.gf-admin-topbar__avatar::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #833ab4 0%, #c13584 50%, #e1306c 100%);
  z-index: -1;
  opacity: 0.9;
}
.gf-admin-topbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.gf-admin-topbar__dropdown.dropdown-menu {
  margin-top: 0.55rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(193, 53, 132, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.12) !important;
  padding: 0.4rem !important;
  min-width: 11.5rem;
  z-index: 1080;
}
.gf-admin-topbar__dropdown .dropdown-item,
.gf-admin-topbar__dropdown .dropdown-menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem !important;
  font-weight: 500;
  font-size: 0.9rem;
  color: #3f3f46 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0;
  width: 100%;
}
.gf-admin-topbar__dropdown .dropdown-item:hover,
.gf-admin-topbar__dropdown .dropdown-menu__item:hover {
  background: rgba(193, 53, 132, 0.08) !important;
  color: #c13584 !important;
}
.gf-admin-topbar__dropdown .dropdown-icon,
.gf-admin-topbar__dropdown .dropdown-menu__icon {
  color: #c13584;
  width: 1.1rem;
  text-align: center;
}
.gf-admin-topbar__dropdown .dropdown-divider,
.gf-admin-topbar__dropdown .divider {
  margin: 0.3rem 0.35rem;
  border-top: 1px solid rgba(193, 53, 132, 0.12);
  height: 0;
  overflow: hidden;
  background: transparent;
}

html.theme-dark .gf-admin-topbar__user,
body.dark-mode .gf-admin-topbar__user,
body.theme-dark .gf-admin-topbar__user {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
html.theme-dark .gf-admin-topbar__hello,
body.dark-mode .gf-admin-topbar__hello,
body.theme-dark .gf-admin-topbar__hello {
  color: #d4d4d8;
}
html.theme-dark .gf-admin-topbar__hello strong,
body.dark-mode .gf-admin-topbar__hello strong,
body.theme-dark .gf-admin-topbar__hello strong {
  color: #fff;
}
html.theme-dark .gf-admin-topbar__dropdown.dropdown-menu,
body.dark-mode .gf-admin-topbar__dropdown.dropdown-menu,
body.theme-dark .gf-admin-topbar__dropdown.dropdown-menu {
  background: #161618 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}
html.theme-dark .gf-admin-topbar__dropdown .dropdown-item,
html.theme-dark .gf-admin-topbar__dropdown .dropdown-menu__item,
body.dark-mode .gf-admin-topbar__dropdown .dropdown-item,
body.dark-mode .gf-admin-topbar__dropdown .dropdown-menu__item,
body.theme-dark .gf-admin-topbar__dropdown .dropdown-item,
body.theme-dark .gf-admin-topbar__dropdown .dropdown-menu__item {
  color: #f4f4f5 !important;
}
html.theme-dark .gf-admin-topbar__dropdown .dropdown-item:hover,
html.theme-dark .gf-admin-topbar__dropdown .dropdown-menu__item:hover,
body.dark-mode .gf-admin-topbar__dropdown .dropdown-item:hover,
body.dark-mode .gf-admin-topbar__dropdown .dropdown-menu__item:hover,
body.theme-dark .gf-admin-topbar__dropdown .dropdown-item:hover,
body.theme-dark .gf-admin-topbar__dropdown .dropdown-menu__item:hover {
  background: rgba(225, 48, 108, 0.14) !important;
  color: #f9a8d4 !important;
}
html.theme-dark .gf-admin-topbar__dropdown .dropdown-divider,
html.theme-dark .gf-admin-topbar__dropdown .divider,
body.dark-mode .gf-admin-topbar__dropdown .dropdown-divider,
body.dark-mode .gf-admin-topbar__dropdown .divider,
body.theme-dark .gf-admin-topbar__dropdown .dropdown-divider,
body.theme-dark .gf-admin-topbar__dropdown .divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .gf-admin-topbar__hello {
    display: none !important;
  }
  .gf-admin-topbar__user {
    padding: 0.15rem !important;
  }
}
