/* Tenant appearance tokens are set from validated public configuration. */
[data-shop-theme] .bg-yellow-400 { background-color: var(--theme-primary) !important; }
[data-shop-theme] .bg-yellow-50 { background-color: var(--theme-primary-soft) !important; }
[data-shop-theme] .bg-yellow-100 { background-color: var(--theme-primary-soft-strong) !important; }
[data-shop-theme] .hover\:bg-yellow-500:hover,
[data-shop-theme] .hover\:bg-yellow-300:hover { background-color: var(--theme-primary-hover) !important; }
[data-shop-theme] .text-yellow-400,
[data-shop-theme] .text-yellow-500 { color: var(--theme-primary) !important; }
[data-shop-theme] .text-yellow-600,
[data-shop-theme] .text-yellow-700,
[data-shop-theme] .text-yellow-800 { color: var(--theme-primary-text-strong) !important; }
[data-shop-theme] .hover\:text-yellow-300:hover,
[data-shop-theme] .hover\:text-yellow-400:hover { color: var(--theme-primary-hover) !important; }
[data-shop-theme] .border-yellow-100 { border-color: var(--theme-primary-soft-strong) !important; }
[data-shop-theme] .border-yellow-200 { border-color: var(--theme-primary-border-soft) !important; }
[data-shop-theme] .border-yellow-400 { border-color: var(--theme-primary) !important; }
[data-shop-theme] .border-yellow-400\/30 { border-color: rgb(var(--theme-primary-rgb) / 0.30) !important; }
[data-shop-theme] .hover\:border-yellow-400\/50:hover { border-color: rgb(var(--theme-primary-rgb) / 0.50) !important; }
[data-shop-theme] .focus\:border-yellow-400:focus { border-color: var(--theme-primary) !important; }
[data-shop-theme] .focus\:ring-yellow-400:focus { --tw-ring-color: var(--theme-primary) !important; }
[data-shop-theme] .focus\:border-zinc-900:focus { border-color: var(--theme-dark) !important; }
[data-shop-theme] .focus\:ring-zinc-900:focus { --tw-ring-color: var(--theme-dark) !important; }
[data-shop-theme] .peer:checked ~ .peer-checked\:bg-yellow-400 { background-color: var(--theme-primary) !important; }
[data-shop-theme] .peer:checked ~ .peer-checked\:border-yellow-400 { border-color: var(--theme-primary) !important; }
[data-shop-theme] .bg-zinc-950 { background-color: var(--theme-dark-deep) !important; }
[data-shop-theme] .bg-zinc-900 { background-color: var(--theme-dark) !important; }
[data-shop-theme] .bg-zinc-800 { background-color: var(--theme-dark-soft) !important; }
[data-shop-theme] .bg-gray-900 { background-color: var(--theme-dark) !important; }
[data-shop-theme] .hover\:bg-zinc-700:hover { background-color: var(--theme-dark-surface) !important; }
[data-shop-theme] .border-zinc-900 { border-color: var(--theme-dark) !important; }
[data-shop-theme] .border-zinc-800,
[data-shop-theme] .border-zinc-700 { border-color: var(--theme-dark-border) !important; }
[data-shop-theme] .border-zinc-600 { border-color: var(--theme-dark-surface) !important; }
[data-shop-theme] .text-zinc-900 { color: var(--theme-dark) !important; }
[data-shop-theme] .bg-yellow-400.text-black,
[data-shop-theme] .bg-yellow-400 .text-black,
[data-shop-theme] .bg-yellow-400.text-zinc-900,
[data-shop-theme] .bg-yellow-400 .text-zinc-900,
[data-shop-theme] .bg-yellow-400.text-gray-900,
[data-shop-theme] .bg-yellow-400 .text-gray-900 {
    color: var(--theme-on-primary) !important;
}



[data-shop-theme] .delivery-banner { background-color:var(--theme-primary); }
[data-shop-theme] .delivery-text-container { color:var(--theme-on-primary); }
[data-shop-theme] .login-bg { background:linear-gradient(135deg,var(--theme-dark),var(--theme-dark-soft),var(--theme-dark)) !important; }
[data-shop-theme] .bg-yellow-400 { color:var(--theme-on-primary); }
#shop-hero-title { overflow-wrap:anywhere; white-space:pre-line; }
.appearance-editor { margin-top:28px;padding-top:28px;border-top:1px solid #e5e7eb;min-width:0; }
.appearance-editor h3 { font-weight:700;font-size:20px;color:#1f2937; }
.appearance-editor p { font-size:14px;line-height:1.5;color:#64748b;margin:6px 0 16px; }
.appearance-group { border:1px solid #e2e8f0;border-radius:16px;padding:20px;margin:20px 0;min-width:0; }
.appearance-group summary { font-size:17px;font-weight:700;cursor:pointer;min-height:44px;display:list-item;align-content:center; }
.appearance-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.appearance-card { border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:16px;min-width:0; }
fieldset.appearance-card { position:relative;padding-top:28px; }
.appearance-card legend { float:left;width:100%;font-size:14px;font-weight:700;color:#334155;margin-bottom:16px; }
.appearance-editor label { display:block;font-weight:600;font-size:14px;color:#475569;margin-bottom:8px; }
.appearance-editor input:not([type=color]),.appearance-editor textarea,.appearance-editor select { width:100%;min-width:0;max-width:100%;border:1px solid #cbd5e1;border-radius:9px;background:white;color:#0f172a;padding:12px;font-size:16px;min-height:46px; }
.appearance-editor textarea { resize:vertical; }
.appearance-editor :is(input,textarea,select,button,summary):focus-visible { outline:2px solid #2563eb;outline-offset:3px; }
.appearance-banner-fields { display:grid;grid-template-columns:1fr;gap:14px;clear:both; }
.appearance-banner-fields input[id$=emoji] { max-width:140px; }
.appearance-colors { grid-template-columns:repeat(4,minmax(0,1fr)); }
.appearance-color { display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:14px; }
.appearance-color input { width:64px;height:48px;border:1px solid #cbd5e1;background:white;border-radius:8px;padding:4px;cursor:pointer; }
.appearance-color output { font-size:14px;color:#475569;font-variant-numeric:tabular-nums; }
.appearance-actions { display:flex;flex-wrap:wrap;gap:12px;margin-top:20px; }
.appearance-actions button,#appearance-retry { border:1px solid #cbd5e1;border-radius:10px;min-height:48px;padding:12px 18px;font-size:14px; }
.appearance-editor button:disabled { opacity:.5;cursor:not-allowed; }
#appearance-status { margin:16px 0 0; }
#appearance-status[data-error=true],#appearance-contrast { color:#b91c1c; }
@media (max-width:767px) {
 .appearance-grid { grid-template-columns:1fr; }
 .appearance-colors { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .appearance-group { padding:16px; }
 .appearance-card { padding:14px; }
 .appearance-actions { flex-direction:column; }
}
@media (max-width:359px) { .appearance-colors { grid-template-columns:1fr; } }

[data-shop-theme] .bg-yellow-200 { background-color:var(--theme-primary-border-soft) !important; }
[data-shop-theme] .bg-yellow-50\/60 { background-color:rgb(var(--theme-primary-rgb) / .08) !important; }
[data-shop-theme] .text-yellow-900 { color:var(--theme-primary-text-strong) !important; }
[data-shop-theme] .border-yellow-300 { border-color:var(--theme-primary-border-soft) !important; }
[data-shop-theme] .border-yellow-500 { border-color:var(--theme-primary-hover) !important; }
[data-shop-theme] .hover\:bg-yellow-400:hover { background-color:var(--theme-primary) !important;color:var(--theme-on-primary) !important; }
[data-shop-theme] .hover\:bg-yellow-50:hover { background-color:var(--theme-primary-soft) !important; }
[data-shop-theme] .hover\:bg-zinc-800:hover { background-color:var(--theme-dark-soft) !important; }
[data-shop-theme] .hover\:border-yellow-300:hover { border-color:var(--theme-primary-border-soft) !important; }
[data-shop-theme] .focus\:ring-yellow-600:focus { --tw-ring-color:var(--theme-primary-hover) !important; }
[data-shop-theme] .focus-visible\:ring-yellow-500:focus-visible,[data-shop-theme] .focus-visible\:ring-yellow-600:focus-visible { --tw-ring-color:var(--theme-primary-hover) !important; }
[data-shop-theme] .peer:checked ~ .peer-checked\:bg-yellow-400 { background-color:var(--theme-primary) !important; }
[data-shop-theme] .file\:bg-yellow-50::file-selector-button,[data-shop-theme] .file\:bg-yellow-100::file-selector-button { background-color:var(--theme-primary-soft) !important; }
[data-shop-theme] .file\:text-yellow-700::file-selector-button { color:var(--theme-primary-text-strong) !important; }

/* Rotate the glyph without changing the banner's movement or text reveal. */
[data-shop-theme] .truck-icon { transform:translateX(-50%) rotate(var(--banner-emoji-rotation,-90deg)) scaleX(var(--banner-emoji-mirror,1));animation-name:truck-progress,appearance-emoji-pulse; }
@keyframes appearance-emoji-pulse {
 0%,100% { transform:translateX(-50%) rotate(var(--banner-emoji-rotation,-90deg)) scaleX(var(--banner-emoji-mirror,1)) scale(1); }
 50% { transform:translateX(-50%) rotate(var(--banner-emoji-rotation,-90deg)) scaleX(var(--banner-emoji-mirror,1)) scale(1.2); }
}
.appearance-orientation-label { display:block;font-weight:600;font-size:14px;color:#475569;margin-bottom:8px; }
.appearance-orientation-actions { display:flex;align-items:center;flex-wrap:wrap;gap:10px; }
.appearance-orientation-actions button { display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:8px 14px;background:#fff;border:1px solid #cbd5e1;border-radius:9px;color:#334155;font-size:14px; }
.appearance-orientation-actions button[aria-pressed=true] { border-color:#334155;background:#e2e8f0; }
.appearance-emoji-glyph { display:inline-block;min-width:28px;line-height:28px;font-size:24px;white-space:nowrap; }
.appearance-orientation-actions output { font-size:13px;color:#475569; }
@media(prefers-reduced-motion:reduce) { [data-shop-theme] .truck-icon { animation-name:truck-progress; } }
