/* nop4all theme demo: bar at the top of the demo stores, device preview, QR code and colour panel.
   Everything is prefixed with n4td- and uses its own fonts and sizes, so the theme does not change it. */
.n4td-bar, .n4td-bar *, .n4td-panel, .n4td-panel *, .n4td-overlay, .n4td-overlay *, .n4td-reopen {
    box-sizing: border-box;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
html.n4td-in-frame .n4td-bar, html.n4td-in-frame .n4td-panel, html.n4td-in-frame .n4td-reopen { display: none !important; }

.n4td-bar {
    position: relative;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 0 0 20px;
    background: #2f3338;
    color: #c9ced4;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
}
html.n4td-closed .n4td-bar { display: none; }

.n4td-bar .n4td-logo {
    display: flex;
    align-items: baseline;
    gap: 1px;
    padding-right: 18px;
    border-right: 1px solid #454a50;
    height: 60px;
    line-height: 60px;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    text-decoration: none;
    white-space: nowrap;
}
.n4td-bar .n4td-logo b { font-weight: 700; color: #4ab2f1; }
.n4td-bar .n4td-logo small { margin-left: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8b939b; }

.n4td-browse { display: flex; align-items: center; gap: 10px; min-width: 0; }
.n4td-browse label { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8b939b; white-space: nowrap; font-weight: 400; }
.n4td-bar select {
    height: 32px;
    max-width: 330px;
    padding: 0 30px 0 10px;
    border: 0;
    border-radius: 3px;
    background: #454a50 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9ced4' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.n4td-bar select option, .n4td-bar select optgroup { color: #222; background: #fff; }

.n4td-devices { display: flex; height: 60px; margin-left: auto; border-left: 1px solid #454a50; }
.n4td-devices button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 60px;
    padding: 0;
    border: 0;
    border-right: 1px solid #454a50;
    background: transparent;
    color: #c9ced4;
    cursor: pointer;
}
.n4td-devices button:hover, .n4td-devices button.n4td-active { background: #3c4147; color: #fff; }
.n4td-devices svg, .n4td-panel-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.n4td-actions { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.n4td-bar .n4td-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.n4td-bar .n4td-btn-ghost { background: #6b737c; color: #fff; }
.n4td-bar .n4td-btn-ghost:hover { background: #7d8690; color: #fff; }
.n4td-bar .n4td-btn-primary { background: #4ab2f1; color: #fff; }
.n4td-bar .n4td-btn-primary:hover { background: #248ece; color: #fff; }
.n4td-bar .n4td-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c9ced4;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.n4td-bar .n4td-close:hover { color: #fff; }

.n4td-reopen {
    display: none;
    position: fixed;
    top: 0;
    right: 16px;
    z-index: 100000;
    padding: 6px 12px;
    border: 0;
    border-radius: 0 0 4px 4px;
    background: #2f3338;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    opacity: .85;
}
html.n4td-closed .n4td-reopen { display: block; }

/* QR code */
.n4td-qr {
    position: absolute;
    top: 64px;
    z-index: 100002;
    width: 230px;
    padding: 16px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    color: #333;
    font-size: 13px;
    text-align: center;
}
.n4td-qr img, .n4td-qr canvas { display: block; width: 198px; height: 198px; margin: 0 auto 10px; image-rendering: pixelated; }

/* device preview */
.n4td-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 30px 20px 40px;
    background: #eceef1;
}
.n4td-device {
    flex: 0 0 auto;
    padding: 46px 14px 56px;
    border-radius: 36px;
    background: #1f2226;
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.n4td-device.n4td-landscape { padding: 14px 56px 14px 46px; }
.n4td-device iframe { display: block; border: 0; border-radius: 4px; background: #fff; }

/* colour and style panel */
.n4td-panel {
    position: fixed;
    top: 180px;
    left: 0;
    z-index: 99998;
    display: flex;
    align-items: flex-start;
    transform: translateX(-250px);
    transition: transform .25s ease;
}
.n4td-panel.n4td-open { transform: none; }
html.n4td-closed .n4td-panel { top: 120px; }
@media (max-width: 600px) { html.n4td-closed .n4td-panel { top: auto; } }
.n4td-panel-body {
    width: 250px;
    max-height: calc(100vh - 200px);
    overflow: auto;
    padding: 18px 18px 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    color: #333;
    font-size: 13px;
    text-align: left;
}
.n4td-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-left: -1px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: 4px 4px 14px rgba(0,0,0,.14);
    color: #555;
    cursor: pointer;
    order: 2;
}
.n4td-panel-toggle:hover { color: #000; }
.n4td-panel h4 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.n4td-panel h4 ~ h4 { margin-top: 18px; }
.n4td-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-items: center; }
.n4td-swatches button {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.n4td-swatches button.n4td-selected::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 10px;
    height: 17px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 1px rgba(0,0,0,.6));
}
.n4td-picker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 400; }
.n4td-picker input { width: 44px; height: 32px; padding: 0; border: 1px solid #ddd; border-radius: 4px; background: #fff; cursor: pointer; }
.n4td-panel select {
    width: 100%;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 13px;
}
.n4td-panel .n4td-reset {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f6f7f8;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}
.n4td-panel .n4td-reset:hover { background: #eceef1; }
.n4td-panel .n4td-note { margin: 10px 0 0; color: #888; font-size: 11px; line-height: 1.4; text-align: center; }

@media (max-width: 1200px) {
    .n4td-hide-sm, .n4td-browse label { display: none; }
}
@media (max-width: 900px) {
    .n4td-devices { display: none; }
    .n4td-browse { margin-right: auto; }
    .n4td-bar .n4td-logo small { display: none; }
}
@media (max-width: 600px) {
    .n4td-panel { top: auto; bottom: 90px; transform: translateX(-250px); }
    .n4td-panel-toggle { width: 40px; height: 40px; opacity: .85; }
    .n4td-panel-toggle svg { width: 20px; height: 20px; }
    .n4td-bar { gap: 8px; padding-left: 10px; }
    .n4td-bar .n4td-logo { padding-right: 10px; font-size: 18px; }
    .n4td-bar select { max-width: 150px; }
    .n4td-bar .n4td-btn { padding: 0 10px; font-size: 12px; }
    .n4td-bar .n4td-btn-ghost { display: none; }
}
@media print {
    .n4td-bar, .n4td-panel, .n4td-reopen, .n4td-overlay { display: none !important; }
}
