.asset-img-container {
  align-self: center;
}

.asset-image {
  width: 100%;
  display: block;
}

.login-section {
  z-index: 102;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  align-self: center;
  text-align: center;
}

.login-spacer {
  margin-top: 20px;
  margin-bottom: 20px;
}

.icon-32 {
  width: 32px;
  max-width: 32px;
  height: 32px;
}

.asset-variants {
  /*positioned relative to parent div (container) */
  position: absolute;
  top: -40px;
  z-index: 10;
  width: 100%;
  font-size: 25px;
  padding: 15px 0;
  text-align: center;
  opacity: 0;
  transition: 0.6s;
}

.asset-section-title {
  color: antiquewhite;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 4px;
  margin-bottom: 4px;
  width: 1420px;
  background-color: darkred;
  border-radius: 5px;
}

.asset-section-title .h3 {
  margin-left: 4px;
}

.asset-updated-icon,
.asset-new-icon {
  position: relative;
  top: -120px;
  left: -48px;
  transform: rotate(45deg);
  max-width: 48px;
  z-index: 110;
}


.asset-text {
  margin-left: 4px;
  width: 100%;
  min-width: 100%;
  font-size: 0.8rem;
  color: black;
}

.menu-h2 {
  margin-top: 4px;
}

.variant-img {
  max-width: 128px;
}

.item-spell-img {
  max-width: 320px;
}

.variant-picture-width3 {
  min-width: 420px;
  max-width: 420px;
}

.variant-picture-width2 {
  min-width: 280px;
  max-width: 280px;
}

.variant-picture-width1 {
  min-width: 140px;
  max-width: 140px;
}

.variant-tokens-tooltip-1 {
  grid-template-columns: 130px;
}

.variant-tokens-tooltip-2 {
  grid-template-columns: 130px 130px;
}

.variant-tokens-tooltip-3 {
  grid-template-columns: 130px 130px 130px;
}

.variant-tokens-tooltip-4 {
  grid-template-columns: 130px 130px 130px 130px;
}

.action-button {
  margin-top: 8px;
  max-width: 180px;
  width: 100%;
  background-color: #acacac;
}

/* Hover : survol */
.action-button:hover {
  background-color: #9a9a9a;
  /* slightly darker */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Active / clicked : état pressé */
.action-button:active {
  background-color: #7f7f7f;
  /* darker when pressed */
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Focus visible pour accessibilité clavier */
.action-button:focus-visible {
  outline: 2px solid rgba(62, 7, 6, 0.6);
  outline-offset: 2px;
}

.button-user {
  margin-left: 8px;
  margin-bottom: 8px;
}

.logout-button,
.settings-button {
  background-color: #151515;
}

.patreon-button-menu {
  stroke-width: 2px;
  stroke: #3e0706;
  border: 2px solid #3e0706;
  box-shadow: 0 0 4px #c0392b44;
}

.patreon-button-menu a {
  color: var(--pico-primary-inverse);
  text-decoration: none;
}

.patreon-button-account a {
  color: white;
  /* No underline */
  text-decoration: none;
}

.a-link-menu {
  width: 100%;
}

.menu-list-no-bullets {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu-discord-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  text-align: center;
}

.menu-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.download-selected {
  display: none;
}

.asset-button {
  text-align: center;
  background-color: #acacac;
  padding: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asset-button:hover {
  background-color: #9a9a9a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.asset-button:active {
  background-color: #7f7f7f;
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.asset-button:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-height: 80px;
  max-height: 80px;
}

.pagination-button {
  background-color: #3e0706;
  color: white;
  border: 1px solid #3e0706;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 8px;
}

.asset-grid {
  grid-template-columns: 160px 160px 160px 160px 160px 160px 160px 160px;
}

.beneos-background-picture {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.beneos-cursor-wait,
.beneos-cursor-wait * {
  cursor: progress !important;
}

.beneos-background-color {
  background-color: #3a3a3a;
}

.beneos-tooltip {
  position: relative;
  display: inline-block;
}

.beneos-tooltip:hover .beneos-tooltiptext {
  visibility: visible;
  opacity: 1;
}

.beneos-tooltip-content {
  /*width: 490px;*/
  width: fit-content;
  border: 1px solid black;
  margin: 8px;
  padding: 8px;
  background-color: antiquewhite;
  border-radius: 12px;
  font-size: 0.9rem;
  top: 0.8rem;
  left: 2rem;
}

.beneos-tooltiptext {
  text-align: left;
  position: absolute;
  margin-left: 10rem;
  margin-top: 2rem;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  overflow-wrap: anywhere;
}

.app {
  max-height: 100%;
  /*background: url(../ui/denim075.png) repeat;*/
  border-radius: 5px;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  margin: 3px 0;
  padding: 0.5em;
  color: var(--color-text-light-highlight);
  z-index: var(--z-index-app);
}

.window-app {
  position: absolute;
  box-shadow: 0 0 20px var(--color-shadow-dark);
  padding: 0;
  z-index: var(--z-index-window);
  /*background: rgba(233, 226, 218, 0.9);*/
  /* Resizable movement handle */
}

.window-app .window-header {
  overflow: hidden;
  padding: 0 8px;
  line-height: 30px;
  border-bottom: 1px solid var(--color-border-dark);
}

.window-app .window-header .window-title {
  margin: 0;
  word-break: break-all;
}

.window-app .window-header a {
  flex: none;
  margin: 0 0 0 8px;
}

.window-app .window-header i[class^=fa] {
  margin-right: 3px;
}

.window-app.minimized .window-header {
  border: 1px solid var(--color-border-dark);
}

.window-app .window-content {
  background: rgba(233, 226, 218, 0.9);
  /*background: url(../ui/parchment.jpg) repeat;*/
  padding: 8px;
  color: var(--color-text-dark-primary);
  overflow-y: auto;
  overflow-x: hidden;
}

.window-app.zhover {
  z-index: calc(var(--z-index-window) + 1);
}

.window-app .window-resizable-handle {
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: -1px;
  right: 0;
  background: #444;
  padding: 2px;
  border: 1px solid var(--color-border-dark-1);
  border-radius: 4px 0 0 0;
}

.window-app .window-resizable-handle i.fas {
  transform: rotate(45deg);
}

.window-app.minimized .window-resizable-handle {
  display: none;
}

.messages-main-div {
  z-index: 102;
  width: 100%;
  top: 64px;
  left: 260px;
}

.current-message-box {
  margin-bottom: 1em;
  padding: 1em;
  background: #757474;
  border-radius: 5px;
}

.admin-main-page,
.admin-user-button,
.admin-add-user-button,
.admin-email-validation-button,
.admin-welcome-message-button,
.admin-news-message-button,
.admin-uploaded-files-button,
.admin-select-button {
  margin-top: 8px;
  max-width: 180px;
  width: 100%;
}

.admin-asset-name {
  width: 24rem;
  max-width: 24rem;
}

.select-asset-tiers {
  max-width: 20rem;
}

.or-separator {
  margin-top: 4rem;
  margin-bottom: 4rem;
  text-align: center;
  color: antiquewhite;
  font-weight: bold;
}

.flexrow {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

.apply-button-center {
  margin-top: 4rem;
  justify-content: center;
  align-items: center;
}

.list-available-tiers {
  margin-top: 2rem;
  margin-left: 8rem;
}

.tiers-name-per-asset {
  margin-left: 2rem;
}

.admin-page input {
  min-width: 30rem;
  max-width: 30rem;
}

.common-box {
  top: 8rem;
  left: calc(100%/2 - 20rem);
  z-index: 102;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #3e0706;
  color: rgb(247, 239, 239);
  text-align: center;
  /* Centers inline or text elements horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers block elements horizontally */
  justify-content: center;
  min-width: 40rem;
  max-width: 40rem;
}

.register-account-box {
  z-index: 102;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #3e0706;
  text-align: center;
  /* Centers inline or text elements horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers block elements horizontally */
  justify-content: center;
  align-self: center;
  min-width: 100%;
  max-width: 100%;
  background-color: rgba(233, 226, 218, 0.6);
  margin-bottom: 1rem;
  color: #2e2a2a;
}

.register-account-box a {

  color: #2e2a2a;
  text-decoration: underline;
}

.info-box {
  background-color: rgba(21, 21, 21, 0.85);
  /* couleur de fond sombre avec transparence */
  color: white;
}

.error-box {
  background-color: #811419;
}

.patreon-link-ok {
  margin-top: 4px;
  max-width: 180px;
  color: darkgreen;
  font-weight: bold;
}

/* DIALOG STUFF */
.dialog {
  /* Structure */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 800;
  width: 90%;
  max-width: 40rem;
  max-height: 85vh;

  /* Appearance */
  padding: 1.5rem;
  background-color: antiquewhite;
  color: #3e0706;
  border-radius: 8px;
  border: 1px solid #3e0706;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);

  /* Layout */
  display: flex;
  flex-direction: column;

  /* Content */
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(62, 7, 6, 0.2);
}

.dialog-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #3e0706;
}

.dialog-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #3e0706;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.dialog-close:hover {
  opacity: 1;
}

.dialog-body {
  flex: 1;
  margin-bottom: 1.5rem;
}

.dialog-body p {
  color: black;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(62, 7, 6, 0.2);
}

/* Dialog button styling */
.dialog-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  background-color: #3e0706;
  color: white;
}

.dialog-btn:active {
  transform: translateY(1px);
}

.dialog-btn-primary {
  background-color: #3e0706;
  color: white;
  border: 1px solid #3e0706;
}

.dialog-btn-primary:hover {
  background-color: #5e1a19;
}

.dialog-btn-secondary {
  background-color: transparent;
  color: #3e0706;
  border: 1px solid #3e0706;
}

.dialog-btn-secondary:hover {
  background-color: rgba(62, 7, 6, 0.1);
}

/* Backdrop for modal dialogs */
.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 800;
}

/* Animation */
.dialog,
.dialog-backdrop {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Variants */
.dialog-info {
  border-color: rgb(23, 38, 168);
}

.dialog-error {
  border-color: #811419;
}

.dialog-warning {
  border-color: #a85e00;
  border-width: 2px;
}

/* Size variants */
.dialog-sm {
  max-width: 30rem;
}

.dialog-lg {
  max-width: 60rem;
}

.login-title-box {
  top: 2rem;
  left: calc(100%/2 - 20rem);
  z-index: 102;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #3e0706;
  text-align: center;
  /* Centers inline or text elements horizontally */
  display: flex;
  align-items: center;
  /* Centers block elements horizontally */
  justify-content: center;
  min-width: 40rem;
  max-width: 40rem;
  min-height: 50px;
  max-height: 50px;
  margin-bottom: 4rem;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 2.6rem;
}

.login-title-box img {
  min-width: 96px;
  max-width: 96px;
  z-index: 110;
  margin-right: 2rem;
}

.forgot-password-div {
  text-align: left;
}

.login-buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.login-buttons-row>*:not(:first-child) {
  margin-left: 1rem;
}

#local-email,
#local-password,
.local-login input {
  color-scheme: light;
  background-color: white;
  color: black;
}

.request-password-reset {
  margin-top: 1rem;
  text-align: left;
  color: white;
}

.request-password-reset:hover {
  color: #3e0706;
  text-decoration: underline;
}

.login-info-box {
  z-index: 102;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #3e0706;
  text-align: center;
  /* Centers inline or text elements horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers block elements horizontally */
  justify-content: center;
  min-width: 40rem;
  max-width: 40rem;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  margin-top: 2rem;
}

.login-info-box p {
  color: white;
}

.select-admin-asset {
  max-width: 1rem;
  min-width: 1rem;
}

input[type="checkbox"] {
  color-scheme: light;
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}

input[type="checkbox"]:checked {
  color-scheme: light;
  background-color: #3e0706;
  border-color: #3e0706;
}

body {
  background-color: #151515;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #151515;
  color: antiquewhite;
  text-align: center;
  padding: 0.5rem 0;
  z-index: 999;
  font-size: 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.footer-text {
  margin: 0 1rem;
}

.footer-logo {
  height: 20px;
  vertical-align: middle;
  margin-right: 12px;
}

.footer-patreon-logo {
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
  margin-left: 12px;
}

.h2-spacing {
  margin-top: 1.5rem;
}

.show-bmaps {
  background-color: #383838;
  color: #868686;
  stroke-width: 0px;
  border: 0px;
  margin-bottom: 2rem;
}

/* Affiche un tooltip multi-ligne stylé */
.multiline-tooltip {
  position: relative;
  cursor: pointer;
}

.multiline-tooltip .tooltip-text {
  visibility: hidden;
  width: 160px;
  background: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 500;
  bottom: 40%;
  /* Affiche */
  left: 50%;
  transform: translateX(-20%);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: pre-line;
  /* Permet les retours à la ligne */
  font-size: 0.95em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.multiline-tooltip:hover .tooltip-text,
.multiline-tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.selected {
  background-color: #5e1a19;
  color: white;
  border: 1px solid #3e0706;
}

/* Shopify Products Management Styles */
.shopify-product-item {
  transition: background-color 0.2s, transform 0.2s;
}

.shopify-product-item:hover {
  background-color: rgba(74, 144, 226, 0.1);
  transform: translateX(4px);
  border-color: #4a90e2;
}

.shopify-order-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Shopify Download Buttons */
.download-shopify-asset,
.download-shopify-file {
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-top: 0;
}

/* Shopify Preparing Download Message */
.shopify-preparing-message {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(94, 26, 25, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInMessage 0.3s ease-in;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.shopify-preparing-message i {
  color: white;
}