* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: Arial, sans-serif;
  background: #efe7dc;
  touch-action: pan-y;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body::-webkit-scrollbar {
  display: none;
}

body.modal-open {
  touch-action: none;
}

:root {
  --tile-size: 10px;
}

#gallery-grid {
  width: 100vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-size), 1fr));
  grid-auto-rows: var(--tile-size);
  gap: 2px;
  background: #efe7dc;
}

.tile {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tile:hover {
  transform: scale(1.08);
  z-index: 5;
}

#shuffle-button,
#search-button,
#menu-button,
#language-submit,
#intro-enter,
#close-tile-modal,
#close-search-modal,
#submit-artwork,
#download-tile-card,
#close-page-modal,
#close-success-modal,
#view-website {
  background: #f6efe5;
  color: #2b241d;
}

#shuffle-button {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: top 0.3s ease, bottom 0.3s ease, left 0.3s ease, transform 0.3s ease;
}

#shuffle-button.modal-mode {
  top: auto;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7000;
}

#language-modal,
#tile-modal,
#search-modal,
#menu-modal,
#success-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(110,90,70,0.28);
  backdrop-filter: blur(10px);
}

#language-modal {
  display: flex;
  z-index: 5000;
  background: rgba(110,90,70,0.36);
}

#tile-modal {
  z-index: 6000;
  overflow-y: auto;
  align-items: flex-start;
  padding: 18px;
}

#search-modal {
  z-index: 8000;
}

#menu-modal {
  z-index: 9000;
}

#success-modal {
  z-index: 10000;
  backdrop-filter: blur(12px);
}

#language-modal-content,
#tile-modal-content,
#search-modal-content,
#menu-modal-content,
#success-modal-content,
#page-modal-content {
  background: rgba(245,239,228,0.96);
  color: #2b241d;
  border: 1px solid rgba(120,100,80,0.18);
  box-shadow: 0 20px 60px rgba(90,70,50,0.18);
  background-image:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.22),
      rgba(120,100,80,0.03)
    );
  background-blend-mode: soft-light;
}

#language-modal-content {
  width: 90%;
  max-width: 420px;
  padding: 40px;
  border-radius: 28px;
  text-align: center;
}

#language-title,
#intro-title {
  margin-top: 0;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
}

#language-subtitle {
  margin-bottom: 28px;
  opacity: 0.7;
}

#language-input,
#search-input,
#artist-name,
#artist-handle,
#artist-website,
#artist-comment,
#art-upload {
  background: rgba(255,248,240,0.9);
  color: #2b241d;
  border: none;
  outline: none;
}

#language-input {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  margin-bottom: 16px;
}

#language-submit,
#intro-enter {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

#intro-step {
  display: none;
}

#intro-description {
  line-height: 1.7;
  opacity: 0.82;
  margin-bottom: 28px;
}

#loading-bar-container {
  width: 100%;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120,100,80,0.16);
}

#loading-wrapper {
  display: none;
  margin-top: 18px;
}

#loading-text {
  font-size: 14px;
  opacity: 0.72;
  margin-bottom: 10px;
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: #2b241d;
  transition: width 10s linear;
}

#tile-modal-content {
  width: min(84vw,260px);
  max-height: calc(100dvh - 36px);
  padding: clamp(12px, 2vh, 24px);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#tile-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(95px, 22vw, 180px);
  height: clamp(95px, 22vw, 180px);
  margin: 34px auto 12px auto;
  border-radius: 20px;
  background: #f6efe5;
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.12),
    0 8px 20px rgba(90,70,50,0.12);
}

#tile-preview-text {
  position: absolute;
  color: rgba(246,239,229,0.9);
  text-shadow: 0 1px 4px rgba(43,36,29,0.35);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  transition: opacity .25s;
}

#tile-modal-title {
  margin-bottom: 18px;
}

#artist-name,
#artist-handle,
#artist-website,
#artist-comment,
#art-upload {
  width: 100%;
  margin-bottom: 8px;
  padding: clamp(8px, 1.5vh, 14px);
  border-radius: 14px;
  font-size: clamp(12px, 1.5vh, 14px);
}

#artist-comment {
  min-height: clamp(45px, 8vh, 90px);
  resize: none;
}

#submit-artwork,
#close-tile-modal {
  width: 100%;
  padding: clamp(9px, 1.6vh, 14px);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(12px, 1.5vh, 14px);
}

#submit-artwork {
  margin-bottom: 12px;
}

#view-mode {
  display: none;
}

#view-name {
  font-weight: 600;
  margin-bottom: 6px;
}

#view-handle {
  opacity: 0.8;
  margin-bottom: 18px;
}

#view-comment {
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 18px;
}

#view-website {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

#search-button,
#menu-button {
  position: fixed;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
}

#search-button {
  top: 20px;
}

#menu-button {
  top: 78px;
}

#search-modal-content {
  width: 90%;
  max-width: 460px;
  padding: 22px;
  border-radius: 28px;
}

#search-input {
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(120,100,80,0.12);
}

#search-input::placeholder {
  color: rgba(43,36,29,0.45);
}

#search-results {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(255,248,240,0.72);
  cursor: pointer;
}

.search-result:hover {
  background: rgba(120,100,80,0.2);
}

.search-thumbnail {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 12px;
  background: rgba(255,248,240,0.72);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.12),
    0 8px 20px rgba(90,70,50,0.12);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.search-result-info strong,
.search-result-info span,
.search-result-info small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info span {
  opacity: 0.78;
}

.search-result-info small {
  opacity: 0.58;
}

.search-empty {
  padding: 18px;
  text-align: center;
  opacity: 0.72;
}

#close-search-modal {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

#bottom-fade {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  z-index: 4000;
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.22));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.22));
}

#download-tile-card {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}

#download-tile-card.loading {
  font-size: 0;
}

#download-tile-card.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(43,36,29,0.2);
  border-top-color: #2b241d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#reserved-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%) translateY(20px);
  z-index: 9000;
  padding: 14px 20px;
  border-radius: 999px;
  background: #f6efe5;
  color: #2b241d;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 18px 50px rgba(90,70,50,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#reserved-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#menu-modal-content {
  width: 260px;
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#menu-modal-content a {
  color: #2b241d;
  text-decoration: none;
  padding: 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,248,240,0.72);
}

#menu-modal-content a:hover {
  background: rgba(120,100,80,0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#page-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  background:
    radial-gradient(
      circle at top,
      rgba(120,100,80,0.18),
      rgba(110,90,70,0.36)
    );
  backdrop-filter: blur(14px);
}

#page-modal-content {
  width: 92vw;
  max-width: 900px;
  height: 85vh;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

#page-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

#close-page-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

#currency-select {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  border: none;
  background: transparent;
  color: #2b241d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 16px 4px 6px;
  z-index: 5;
}

#currency-select:hover {
  opacity: 0.75;
}

#currency-select option {
  background: #f6efe5;
  color: #2b241d;
}

#success-modal-content {
  width: min(88vw, 360px);
  padding: 32px;
  border-radius: 28px;
  text-align: center;
}

#success-title {
  margin-top: 0;
  font-size: 30px;
}

#success-message {
  opacity: 0.82;
  line-height: 1.7;
  margin-bottom: 24px;
}

#close-success-modal {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

#tile-modal-content:has(#view-mode[style*="block"]) {
  overflow: visible;
  width: min(84vw, 260px);
  max-height: 85dvh;
  height: auto;
}

#tile-modal-content:has(#view-mode[style*="block"]) #tile-preview {
  width: clamp(95px, 32vw, 180px);
  height: clamp(95px, 32vw, 180px);
}

#copyright-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(43,36,29,0.45);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

#language-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  background-image: none;
  max-width: 520px;
  width: min(88vw, 520px);
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-step {
  display: block;
  width: min(86vw, 430px);
  aspect-ratio: 1 / 1;
  padding: 34px;
  border-radius: 50%;
  background: rgba(245,239,228,0.92);
  border: 1px solid rgba(120,100,80,0.18);
  box-shadow: 0 22px 70px rgba(90,70,50,0.24);
  text-align: center;
  color: #2b241d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#intro-title {
  font-size: clamp(38px, 10vw, 74px);
  line-height: 0.88;
  max-width: 360px;
  margin: 0 0 22px 0;
  letter-spacing: -3px;
  text-transform: lowercase;
  font-family: "Cooper Black", "Arial Rounded MT Bold", Arial, sans-serif;
}

#intro-description {
  max-width: 290px;
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.25;
  margin: 0 0 24px 0;
}

#intro-enter {
  width: auto;
  min-width: 120px;
  padding: 13px 24px;
  border-radius: 999px;
}

#intro-language-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 5100;
  width: 44px;
  height: 44px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-language-toggle img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

#language-step {
  display: none;
  position: fixed;
  top: 76px;
  right: 22px;
  z-index: 5200;
  width: min(84vw, 280px);
  padding: 16px;
  border-radius: 22px;
  background: rgba(245,239,228,0.96);
  border: 1px solid rgba(120,100,80,0.18);
  box-shadow: 0 18px 50px rgba(90,70,50,0.24);
}

#language-subtitle {
  color: #2b241d;
  margin: 0 0 10px 0;
  font-weight: 600;
}

#language-input {
  margin-bottom: 10px;
}

#language-submit {
  padding: 12px;
}

#menu-language-button {
  cursor: pointer;
}

#intro-step {
  margin: auto;
  text-align: center;
}

#intro-title,
#intro-description,
#intro-enter {
  margin-left: auto;
  margin-right: auto;
}

#language-submit {
  display: none;
}

#loading-wrapper {
  justify-content: center;
  align-items: center;
}

#loading-text,
#loading-bar-container {
  display: none;
}

#translation-spinner {
  width: 42px;
  height: 42px;
  margin: 12px auto 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(120,100,80,0.18);
  border-top-color: #2b241d;
  animation: spin 1s linear infinite;
}

#intro-step {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: auto !important;
}

#intro-title,
#intro-description,
#intro-enter {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#intro-title {
  width: 100%;
  max-width: 360px;
}

#intro-description {
  width: 100%;
  max-width: 300px;
}

#language-step {
  max-height: 70vh;
  overflow-y: auto;
}

#language-subtitle,
#language-submit {
  display: none !important;
}

#language-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
  padding: 0;
  margin: 0;
}

#language-input button {
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  background: #f6efe5;
  color: #2b241d;
  font-weight: 600;
  cursor: pointer;
}

#language-input button:hover {
  background: rgba(120,100,80,0.18);
}

#language-step.is-loading #language-input {
  display: none;
}

#language-step.is-loading #loading-wrapper {
  display: flex !important;
}

#loading-wrapper {
  display: none;
  justify-content: center;
  align-items: center;
}

#translation-spinner {
  width: 42px;
  height: 42px;
  margin: 12px auto 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(120,100,80,0.18);
  border-top-color: #2b241d;
  animation: spin 1s linear infinite;
}

#language-input {
  display: block !important;
  width: auto !important;
  min-width: 118px;
  border: none !important;
  background: transparent !important;
  color: #2b241d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: 4px 16px 4px 6px !important;
  margin: 0 !important;
}

#language-input option {
  background: #f6efe5;
  color: #2b241d;
}

#language-step {
  width: auto !important;
  min-width: 118px;
  padding: 4px 6px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#language-modal.language-only {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none;
}

#language-modal.language-only #language-step {
  pointer-events: auto;
}

#language-modal.language-only #language-modal-content {
  pointer-events: none;
}

#language-modal.language-only #language-input {
  pointer-events: auto;
}

#language-modal.language-only #intro-step {
  display: none !important;
}

#language-modal.language-only {
  background: transparent !important;
  backdrop-filter: none !important;
}

#language-modal.language-only #language-modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
  pointer-events: none;
}

#language-modal.language-only #language-step,
#language-modal.language-only #language-input {
  pointer-events: auto;
}

#language-step {
  position: fixed !important;
  top: 76px !important;
  right: 22px !important;
  width: auto !important;
  min-width: 118px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#language-input {
  width: auto !important;
  min-width: 118px !important;
  border: none !important;
  background: transparent !important;
  color: #2b241d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  padding: 4px 16px 4px 6px !important;
  margin: 0 !important;
}

#language-input option {
  background: #f6efe5;
  color: #2b241d;
}

#menu-language-button {
  display: none !important;
}

#language-step {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#language-input {
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

#language-step.is-loading {
  position: fixed !important;
  top: 76px !important;
  right: 22px !important;
  width: 52px !important;
  height: 52px !important;
  overflow: visible !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#language-step.is-loading #language-input {
  display: none !important;
}

#language-step.is-loading #loading-wrapper {
  display: flex !important;
}

#tile-size-control {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(245,239,228,0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(90,70,50,0.18);
}

.tile-size-option {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(43,36,29,0.16);
  color: #2b241d;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tile-size-option.active {
  background: #2b241d;
  color: #f6efe5;
}

/* ==========================================
   JUMBLE BLACK & WHITE AESTHETIC
   SAFE OVERRIDE
   ========================================== */

/* Modal overlays */

#language-modal,
#tile-modal,
#search-modal,
#menu-modal,
#success-modal {
  background: rgba(0,0,0,.18) !important;
}

/* Main cards */

#tile-modal-content,
#search-modal-content,
#menu-modal-content,
#success-modal-content,
#page-modal-content {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;

  box-shadow:
    8px 8px 0 rgba(0,0,0,.12) !important;

  background-image: none !important;
}

/* Welcome circle */

#intro-step {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;

  box-shadow:
    8px 8px 0 rgba(0,0,0,.12) !important;
}

/* Buttons */

#shuffle-button,
#search-button,
#menu-button,
#intro-enter,
#submit-artwork,
#close-tile-modal,
#close-search-modal,
#close-success-modal,
#view-website,
#download-tile-card,
#close-page-modal {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;
}

/* Menu items */

#menu-modal-content a {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;
}

#menu-modal-content a:hover {

  background: #f3f3f3 !important;
}

/* Search results */

.search-result {

  background: #ffffff !important;

  border: 2px solid #000000 !important;
}

.search-result:hover {

  background: #f3f3f3 !important;
}

/* Inputs */

#artist-name,
#artist-handle,
#artist-website,
#artist-comment,
#search-input,
#language-input {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;

  box-shadow: none !important;
}

/* Zoom circles */

.tile-size-option {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;
}

.tile-size-option.active {

  background: #000000 !important;

  color: #ffffff !important;
}

/* Toast */

#reserved-toast {

  background: #ffffff !important;

  color: #000000 !important;

  border: 2px solid #000000 !important;
}

/* Footer */

#copyright-footer {

  color: rgba(0,0,0,.5) !important;
}

/* IMPORTANT:
   Leave tile artwork alone.
   Do NOT override:
   .tile
   .search-thumbnail
   #tile-preview
*/

/* Hide container behind zoom buttons, keep buttons visible */

#tile-size-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Fix tan background around Choose File */

#art-upload {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

#art-upload::file-selector-button {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#art-upload::-webkit-file-upload-button {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

html,
body,
#gallery-grid {
  background: #ffffff !important;
}

/* Coupon modal */

#coupon-modal {

  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,.45);

  z-index: 10000;

  align-items: center;

  justify-content: center;
}

#coupon-modal-content {

  position: relative;

  max-width: 90vw;

  max-height: 90vh;
}

#coupon-image {

  display: block;

  max-width: 90vw;

  max-height: 90vh;

  border-radius: 12px;
}

#close-coupon-modal {

  position: absolute;

  top: -12px;

  right: -12px;

  width: 42px;

  height: 42px;

  border: 2px solid #000;

  background: #fff;

  color: #000;

  border-radius: 50%;

  cursor: pointer;

  font-size: 18px;

  font-weight: 700;

  z-index: 2;
}