

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding-top: 10vh;
    transition: padding-top 0.25s ease;
}

:root {
    --admin-banner-min-height: 38px;
    --admin-banner-height: var(--admin-banner-min-height);
}

body:has(.admin-banner) {
    padding-top: calc(10vh + var(--admin-banner-height));
}

.main-content {

  position: relative;
  border-radius: var(--site-radius, 8px);
  width: 100%;
  max-width: 1400px;
  min-height: calc(100vh - 20vh);
}

.admin-message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 12px;
}

.admin-message-list:empty {
  display: none;
  margin: 0;
}

.admin-message {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 46px 14px 18px;
  background: #ffeb66;
  color: #000;
  border: 1px solid #d5bd1f;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-message__text {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-message__close {
  appearance: none;
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.admin-message__close:hover,
.admin-message__close:focus-visible {
  background: #f0f0f0;
  color: #000;
  text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:where(body:not(.admin-tools-active), body:not(:has(.admin-banner))) :where(input, select, textarea):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.contact-form-page {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 12px 48px;
}

.contact-form-panel {
  box-sizing: border-box;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
  background: var(--element-bg, #fff);
  color: var(--element-text, #111);
  border: 1px solid var(--element-border, rgba(0, 0, 0, 0.12));
  border-radius: var(--site-radius, 8px);
}

.contact-form-panel h1 {
  margin: 0 0 10px;
  color: inherit;
}

.contact-form-intro {
  margin: 0 0 22px;
  color: inherit;
  opacity: 0.82;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.contact-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form span {
  color: inherit;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  box-sizing: border-box;
  width: 100% !important;
  padding: 11px 12px !important;
  border: 1px solid var(--element-border, rgba(0, 0, 0, 0.2));
  border-radius: min(var(--site-radius, 8px), 10px);
  background: var(--page-bg, #fff);
  color: var(--page-text, #111);
  font-size: 1rem;
  line-height: 1.35;
}

.contact-form select {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 10px;
  padding-right: 38px !important;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-wide,
.contact-form-submit,
.contact-form-status {
  grid-column: 1 / -1;
}

.contact-form-submit {
  justify-self: center;
  min-width: 190px;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 1rem;
  background: var(--button-primary-bg, var(--admin-theme-bg, #111));
  color: var(--button-primary-text, var(--admin-theme-text, #fff));
  border: 0;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
}

.contact-form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: min(var(--site-radius, 8px), 10px);
  font-weight: 600;
}

.contact-form-status--success {
  background: transparent;
  color: var(--element-bg, #249bd6);
}

.contact-form-status--error {
  background: #ffe1df;
  color: #58110c;
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

button,
.button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button-update,
.button-reset,
.button-delete,
.button-primary,
.add-cart-btn,
.tag-add-btn,
.custom-file-label,
.user-login,
.cart-area,
.login-link,
.lang-trigger,
.about-trigger,
.about-trigger--photo,
.contact-trigger {
  appearance: none;
  border: none;
  border-radius: var(--button-radius, 6px);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  min-height: 5vh;
  min-width: 12vh;
  padding: 6px 10px;
  font-family: var(--font-buttons, inherit);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, filter 0.2s ease;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.button-update:hover,
.button-reset:hover,
.button-delete:hover,
.button-primary:hover,
.add-cart-btn:hover,
.tag-add-btn:hover,
.custom-file-label:hover,
.user-login:hover,
.cart-area:hover,
.login-link:hover,
.lang-trigger:hover {
  transform: translateY(-1px);
}

button:active,
.button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.button-update:active,
.button-reset:active,
.button-delete:active,
.button-primary:active,
.add-cart-btn:active,
.tag-add-btn:active,
.custom-file-label:active,
.user-login:active,
.cart-area:active,
.login-link:active,
.lang-trigger:active {
  transform: translateY(0);
}

input[type="file"] {
  font-size: 0.95rem;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: var(--site-radius, 8px);
  padding: 8px;
  width: 100%;
  max-width: 520px;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="file"]:hover {
  background-color: #f2f2f2;
  border-color: #aaa;
}

input[type="file"]:valid {
  border-color: #198754;
  background-color: #f6fffa;
}


input[type="file"]::file-selector-button {
    background: #222;
    color: #fff;
    border: none;
    border-radius: var(--button-radius, 6px);
    padding: 8px 14px;
    margin-right: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.1s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #4CAF50;
  transform: translateY(-1px);
}

input[type="file"]::file-selector-button:active {
  transform: translateY(0);
}


input[type="file"]::-webkit-file-upload-button {
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: var(--button-radius, 6px);
  padding: 8px 14px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.button-group button {
    flex-grow: 1;
    font-size: 16px;
}

.admin-banner {
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  min-height: var(--admin-banner-min-height);
  margin: 0;
  padding: 5px 10px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 6px rgba(0,0,0,0.22);
  white-space: nowrap;
}

.admin-banner a {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-decoration: none;
}

.admin-banner a:hover {
  text-decoration: none;
}

.admin-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.92;
}

.admin-banner-label strong {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .admin-banner-label strong {
    display: inline;
    background: none;
    padding: 0;
    border-radius: 0;
    min-height: 0;
    letter-spacing: normal;
    text-transform: none;
    font-size: inherit;
    font-weight: normal;
  }
}

.admin-banner .admin-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin-left: 0;
  padding: 2px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  background: #242424;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-banner .admin-view-toggle:hover,
.admin-banner .admin-view-toggle:focus-visible {
  background: #303030;
  border-color: rgba(255,255,255,0.42);
  box-shadow: 0 2px 4px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.admin-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 1.15;
  margin-left: 0;
  padding: 2px 11px 2px 9px;
  min-height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
  box-shadow: none;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.admin-mode-indicator--live {
  outline: none;
  border-color: rgba(74, 222, 128, 0.3);
}

.admin-mode-indicator--test {
  outline: none;
  border-color: rgba(248, 113, 113, 0.3);
}

.admin-mode-indicator:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}

.admin-mode-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.admin-mode-indicator--live .admin-mode-dot {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7), 0 0 0 2px rgba(255,255,255,0.15);
}

.admin-mode-indicator--test .admin-mode-dot {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.7), 0 0 0 2px rgba(255,255,255,0.15);
}

.admin-mode-indicator--live .admin-mode-label {
  color: #4ade80;
}

.admin-mode-indicator--test .admin-mode-label {
  color: #f87171;
}

.color-preview {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: var(--site-radius, 6px);
  margin-left: 10px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

#tab-texter {
    max-width: 1100px;
  }

  #settingsTextForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
  }

  .text-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .text-language-buttons {
    display: flex;
    gap: 8px;
    margin: 6px 0 14px;
    justify-content: center;
  }

  .text-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .text-lang-btn img {
    display: block;
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  }

  .text-category-switches {
    margin-bottom: 12px;
  }

  .text-panel-switch {
    appearance: none;
    border: 1px solid rgba(0,0,0,0.32);
    border-radius: var(--button-radius, 6px);
    background: transparent;
    color: #222;
    padding: 8px 14px;
    font-family: var(--font-buttons, inherit);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
  }

  .text-panel-switch:not(.is-active):hover {
    background: #f3f3f3;
  }

  .text-panel-switch.is-active {
    background: #222;
    border-color: #222;
    color: #fff;
  }

  .text-edit-panel {
    display: none;
  }

  .text-edit-panel.is-active {
    display: block;
  }

  .text-edit-panel .form-row {
    margin-bottom: 18px;
  }

  .text-edit-panel .form-row:last-child {
    margin-bottom: 0;
  }

  .text-edit-panel[data-text-category="slogan"].is-active,
  .text-edit-panel[data-text-category="about"].is-active {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 24px;
    border: 1px solid var(--element-border, rgba(0,0,0,0.16));
    border-radius: var(--site-radius, 8px);
    box-sizing: border-box;
  }

  .text-language-section {
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .text-language-section h3 {
    font-size: 22px;
    margin: 0 0 12px;
  }

  .pell-editor {
    margin: 0;
    border: 1px solid #ccc;
    border-radius: var(--site-radius, 10px);
    overflow: hidden;
    background: var(--element-bg, #fff);
  }

  .pell-actionbar {
    background: color-mix(in srgb, var(--element-bg, #fff) 86%, #000 14%);
    border-bottom: 1px solid color-mix(in srgb, var(--element-bg, #fff) 72%, #000 28%);
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pell-button {
    min-width: 36px;
    min-height: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--element-text, #222) 22%, transparent);
    border-radius: var(--button-radius, 6px);
    background: var(--element-bg, #fff);
    color: var(--element-text, #222);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
  }

  .pell-button:hover {
    background: color-mix(in srgb, var(--element-bg, #fff) 88%, var(--element-text, #222) 12%);
  }

  .pell-content {
    min-height: 220px;
    max-height: 500px;
    overflow-y: auto;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    background: var(--element-bg, #fff);
    text-align: left;
  }

  .wysiwyg-content,
  .pell-content {
    font-family: var(--font-base, inherit);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  .wysiwyg-content p,
  .pell-content p {
    font-family: var(--font-base, inherit);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1em;
  }

  .pell-content :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, div) {
    text-align: left !important;
  }

  .wysiwyg-content p *,
  .wysiwyg-content li *,
  .pell-content p *,
  .pell-content li * {
    font-family: var(--font-base, inherit) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }

  .wysiwyg-content h1,
  .pell-content h1 {
    font-family: var(--font-headings, inherit);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.8em;
  }

  .wysiwyg-content h2,
  .pell-content h2 {
    font-family: var(--font-headings, inherit);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 1.35em 0 0.5em;
  }

  .wysiwyg-content ul,
  .wysiwyg-content ol,
  .pell-content ul,
  .pell-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
  }

  .wysiwyg-content li,
  .pell-content li {
    font-family: var(--font-base, inherit);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 0.3em;
  }

  .pell-content:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #c9defc;
  }

  .pell-content h1,
  .pell-content h2,
  .pell-content p,
  .pell-content ul,
  .pell-content ol {
    margin-top: 0;
  }

  .pell-content a {
    color: #0a58ca;
    text-decoration: underline;
  }

  .form-actions {
    margin-top: 8px;
    padding-top: 8px;
  }

  .button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

@media (max-width: 768px) {
  .admin-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 7px 8px;
    min-height: var(--admin-banner-min-height);
    box-sizing: border-box;
    white-space: nowrap;
  }

  .admin-banner-label-full {
    display: none;
  }

  .admin-banner .admin-view-toggle {
    min-height: 18px;
    margin-left: 0;
    padding: 1px 7px;
    font-size: 0.78rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.16);
  }

  .text-switch-row {
    gap: 6px;
  }

  .text-panel-switch {
    flex: 1 1 calc(50% - 6px);
    padding: 8px 9px;
    font-size: 0.88rem;
  }
}

.js-fx .inspect-container {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.js-fx .inspect-container.is-visible {
  opacity: 1;
  transform: none;
}

.js-fx .cart-page {
  opacity: 0;
  transform: scale(0.985);
  transform-origin: top center;
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.js-fx .cart-page.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 680px) {
  .js-fx .cart-page {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.checkout-summary-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.checkout-items-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-item-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkout-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--site-radius, 8px);
  flex-shrink: 0;
}

.checkout-item-summary-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-summary-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  word-break: break-word;
}

.checkout-item-summary-size {
  font-size: 0.85rem;
  color: inherit;
  margin-bottom: 2px;
}

.checkout-item-summary-qty {
  font-size: 0.85rem;
  color: inherit;
}

.checkout-item-summary-price {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .checkout-item-thumb {
    width: 55px;
    height: 55px;
  }

  .checkout-item-summary-name {
    font-size: 0.9rem;
  }
}
