/* Shared file list (public tool and owner editor) */ .menu-import-files { margin: 0.75rem 0 0; padding: 0; list-style: none; } .menu-import-files li { display: flex; justify-content: space-between; align-items: center; overflow-wrap: anywhere; } .menu-import-files button { border: none; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; } /* Public upload tool (/l/menu-apo-foto) */ .menu-import-tool { margin: 1rem 0 2.5rem; padding: 1.5rem; border: 1px solid var(--border, #e9e1d6); border-radius: var(--radius-lg, 20px); background: var(--bg-brand-soft, #f7f1e8); box-shadow: var(--shadow-lg); } .menu-import-tool svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .menu-import-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 2rem 1.25rem; border: 2px dashed #d9b9a5; border-radius: var(--radius, 12px); background: var(--bg-white, #fff); text-align: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; } .menu-import-drop:hover, .menu-import-drop.is-dragover { border-color: var(--brand-primary, #b96a46); background: #fffaf6; } .menu-import-drop:focus-within { border-color: var(--brand-primary, #b96a46); box-shadow: 0 0 0 4px rgba(185, 106, 70, 0.18); } /* Covers the whole zone, so a click opens the picker and a drop lands on the input. */ .menu-import-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } .menu-import-drop-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0.5rem; padding: 0.8rem; border-radius: 50%; background: var(--brand-accent-light, #f5e3d7); color: var(--brand-primary, #b96a46); transition: transform 0.2s; } .menu-import-drop:hover .menu-import-drop-icon, .menu-import-drop.is-dragover .menu-import-drop-icon { transform: translateY(-3px); } .menu-import-drop-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark, #2e2a26); } .menu-import-drop-hint { color: var(--text-muted, #7a736a); } .menu-import-browse { margin-top: 0.6rem; padding: 0.45rem 1.1rem; border: 1.5px solid var(--brand-primary, #b96a46); border-radius: 999px; color: var(--brand-primary-dark, #9a5535); font-weight: 600; font-size: 0.95rem; } .menu-import-drop-limits { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-muted, #7a736a); } @media (hover: none) { .menu-import-drop-hint { display: none; } } .menu-import-tool .menu-import-files li { gap: 0.6rem; margin-top: 0.5rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border: 1px solid var(--border, #e9e1d6); border-radius: 10px; background: var(--bg-white, #fff); color: var(--text-dark, #2e2a26); font-size: 0.95rem; } .menu-import-tool .menu-import-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .menu-import-tool .menu-import-file-name::before { content: ''; display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.55rem; vertical-align: -0.2em; background: var(--brand-primary, #b96a46); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat; } .menu-import-tool .menu-import-file-remove { display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; color: var(--text-muted, #7a736a); } .menu-import-tool .menu-import-file-remove:hover { background: var(--bg-brand-soft, #f7f1e8); color: var(--brand-accent-dark, #8a3f1d); } .menu-import-submit { display: flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%; margin-top: 1.25rem; padding: 0.95rem 1.5rem; border: none; border-radius: var(--radius, 12px); background: var(--brand-primary, #b96a46); box-shadow: 0 6px 16px rgba(185, 106, 70, 0.3); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; } .menu-import-submit:hover { background: var(--brand-primary-dark, #9a5535); box-shadow: 0 8px 20px rgba(185, 106, 70, 0.38); color: #fff; transform: translateY(-1px); } .menu-import-submit svg { width: 1.25em; height: 1.25em; fill: currentColor; stroke: none; } .menu-import-tool button[disabled] { opacity: 0.8; cursor: progress; transform: none; } .menu-import-error, .menu-import-warning { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: var(--radius, 12px); line-height: 1.5; } .menu-import-error { border: 1px solid #f3c7c0; background: #fdf0ee; color: #8a1c13; } .menu-import-warning { border: 1px solid #f1d9a8; background: #fdf6e7; color: #7a5310; } .menu-import-alert-icon { width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; } .menu-import-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* Preview of the imported menu (/import-menu/preview) */ .menu-import-preview-container { max-width: 980px; } .menu-import-preview svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .menu-import-preview-header { padding: 2.5rem 0 1.75rem; text-align: center; } .menu-import-preview-header h1 { margin-bottom: 0.9rem; font-size: 2.4rem; line-height: 1.2; color: var(--text-dark, #2e2a26); } .menu-import-summary { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.4rem 1rem; border-radius: 999px; background: var(--brand-accent-light, #f5e3d7); color: var(--brand-accent-dark, #8a3f1d); font-weight: 600; } .menu-import-summary svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.5; } .menu-import-preview-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3rem; align-items: start; } .menu-import-claim { position: sticky; top: calc(var(--header-height, 72px) + 1.5rem); padding: 1.75rem; border: 1px solid var(--border, #e9e1d6); border-radius: var(--radius-lg, 20px); background: var(--bg-white, #fff); box-shadow: var(--shadow-xl); } .menu-import-claim-text { margin: 0; color: var(--text-body, #57514a); line-height: 1.6; } .menu-import-claim .menu-import-submit { margin-top: 1.25rem; } .menu-import-expires { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.85rem 0 0; font-size: 0.85rem; color: var(--text-muted, #7a736a); } .menu-import-expires svg { width: 1rem; height: 1rem; } .menu-import-secondary { display: block; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border, #e9e1d6); color: var(--brand-primary-dark, #9a5535); font-weight: 600; text-align: center; text-decoration: none; } .menu-import-secondary:hover { color: var(--brand-primary-darker, #7c4325); text-decoration: underline; } @media (max-width: 760px) { .menu-import-tool { padding: 1rem; } .menu-import-submit { padding: 0.9rem 1rem; font-size: 1rem; } .menu-import-preview-header { padding: 1.75rem 0 1.25rem; } .menu-import-preview-header h1 { font-size: 1.8rem; } .menu-import-preview-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; } .menu-import-preview .preview-phone { --preview-screen-height: 560px; width: 320px; } .menu-import-claim { position: static; padding: 1.25rem; } } /* Owner editor (Bulma) */ .menu-import-backend summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; } .menu-import-backend summary::-webkit-details-marker { display: none; } .menu-import-backend .menu-import-chevron { margin-left: auto; transition: transform 0.2s; } .menu-import-backend[open] .menu-import-chevron { transform: rotate(180deg); } .menu-import-backend .menu-import-picker .file-cta { padding: 1.25rem 2rem; border: 2px dashed #b96a46; background: #fbf6ef; color: #4b3621; } .menu-import-backend .menu-import-picker .file-label:hover .file-cta { background: #f4eee1; } .menu-import-backend .menu-import-picker .file-icon { color: #b96a46; } .menu-import-backend .menu-import-files { max-width: 480px; margin: 0.75rem auto 0; } .menu-import-backend .menu-import-files li { gap: 0.5rem; margin-bottom: 0.5rem; padding: 0.5rem 0.75rem; border: none; border-radius: 0.5rem; background: #f9fafb; color: #374151; font-size: 0.95rem; } .menu-import-backend .menu-import-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .menu-import-backend .menu-import-file-name::before { content: '\f0c6'; margin-right: 0.5rem; color: #9ca3af; font-family: 'Font Awesome 6 Free'; font-weight: 900; } .menu-import-backend .menu-import-icon { color: #b96a46; } /* Upload button while the files are being sent */ .menu-import-busy { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; } .menu-import-busy::before { content: ''; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: menu-import-spin 0.8s linear infinite; } /* "Reading your menu" loader (public preview and owner import page) */ .menu-import-loader { max-width: 30rem; margin: 1.5rem auto; text-align: center; color: #4b3621; } .menu-import-scan { position: relative; width: 150px; height: 190px; margin: 0 auto 1.75rem; } .menu-import-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; padding: 18px 16px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(75, 54, 33, 0.18); transform: rotate(-2deg); } .menu-import-row { display: flex; align-items: center; gap: 10px; } .menu-import-line, .menu-import-price { position: relative; display: block; overflow: hidden; height: 7px; border-radius: 4px; background: #ece2d2; } .menu-import-row .menu-import-line { flex: 1; } .menu-import-line.is-short { flex: 0 0 60%; } .menu-import-price { flex: 0 0 18px; background: #e2c8b5; } .menu-import-line.is-title { width: 55%; height: 11px; margin: 0 auto 4px; background: #d9c3a5; } .menu-import-line.is-heading { width: 40%; height: 9px; margin-top: 4px; background: #d9c3a5; } .menu-import-line::after, .menu-import-price::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent); transform: translateX(-100%); animation: menu-import-shimmer 1.8s ease-in-out infinite; } .menu-import-beam { position: absolute; top: 6px; left: -10px; right: -10px; height: 3px; border-radius: 2px; background: #b96a46; box-shadow: 0 0 14px 4px rgba(185, 106, 70, 0.45); animation: menu-import-scan 2.4s ease-in-out infinite alternate; } .menu-import-loader-title { margin: 0 0 0.5rem; font-size: 1.4rem; font-weight: 700; } .menu-import-loader-text, .menu-import-loader-slow { margin: 0 0 1rem; color: #6b5a48; } .menu-import-steps { display: inline-block; margin: 0.5rem auto 0; padding: 0; list-style: none; text-align: left; } .menu-import-steps li { position: relative; margin: 0.5rem 0; padding-left: 1.9rem; color: #a39684; } .menu-import-steps li::before { content: ''; position: absolute; top: 0.15em; left: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 1.2em; height: 1.2em; border: 2px solid #d9c3a5; border-radius: 50%; font-size: 0.95em; } .menu-import-steps li.is-done, .menu-import-steps li.is-active { color: #4b3621; } .menu-import-steps li.is-active { font-weight: 600; } .menu-import-steps li.is-done::before { content: '✓'; border-color: #b96a46; background: #b96a46; color: #fff; font-size: 0.75em; width: 1.6em; height: 1.6em; } .menu-import-steps li.is-active::before { border-color: #b96a46; border-right-color: transparent; animation: menu-import-spin 0.8s linear infinite; } .menu-import-progress { max-width: 18rem; height: 6px; margin: 1.25rem auto 0.75rem; overflow: hidden; border-radius: 3px; background: #ece2d2; } .menu-import-progress span { display: block; width: 8%; height: 100%; border-radius: 3px; background: #b96a46; transition: width 1s linear; } @keyframes menu-import-spin { to { transform: rotate(360deg); } } @keyframes menu-import-scan { to { top: calc(100% - 9px); } } @keyframes menu-import-shimmer { to { transform: translateX(100%); } } @media (prefers-reduced-motion: reduce) { .menu-import-busy::before, .menu-import-beam, .menu-import-line::after, .menu-import-price::after, .menu-import-steps li.is-active::before { animation: none; } }