/* Netlab_SupportWidget — "Klantenservice" button + message panel, both shops.
   Colours follow the theme. Trend: the gold of the logo (--tj-link, #BE9E75) with dark text
   (white on that gold is only 2.5:1). Mostert: its green ($puerto-rico-500/600) with white text. */
.nsw {
    --nsw-accent: var(--tj-link, #27a595);
    --nsw-accent-hover: var(--tj-link-hover, #1d8479);
    --nsw-on-accent: var(--tj-text, #fff);
    --nsw-text: var(--tj-text, #222);
    --nsw-muted: var(--tj-text-muted, #666);
    --nsw-border: var(--tj-border, #d6d6d6);
    --nsw-error: var(--tj-error, #a94442);
    --nsw-font: var(--font-sans, var(--tj-font-sans, inherit));
    font-family: var(--nsw-font);
}

/* Vertical tab on the right edge, the same place as the old chat button */
.nsw-trigger {
    position: fixed;
    right: 0;
    top: 75%;
    transform: translateY(-50%);
    z-index: 400; /* $z-floating: above content, below overlays/drawers */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    border: 0;
    padding: 16px 10px;
    border-radius: 8px 0 0 8px;
    background-color: var(--nsw-accent);
    color: #fff; /* label: white on both shops (Randy, 25-11-2026), also on the Trend gold */
    font-family: var(--nsw-font);
    font-size: 14px; /* exactly the old Zopim side label (#chat-trigger), which this replaces */
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0, 0, 0, .15);
    transition: background-color .2s ease;
}
.nsw-trigger:hover,
.nsw--open .nsw-trigger { background-color: var(--nsw-accent-hover); }
.nsw-trigger:focus-visible { outline: 2px solid var(--nsw-text); outline-offset: 2px; }

.nsw-panel {
    position: fixed;
    right: 56px;
    bottom: 24px;
    z-index: 401;
    display: flex;
    flex-direction: column;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    color: var(--nsw-text);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    font-size: var(--text-small, 13px);
    line-height: 1.5;
    text-align: left;
}
.nsw-panel[hidden] { display: none; }

.nsw-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--nsw-accent);
    color: var(--nsw-on-accent);
    border-radius: 12px 12px 0 0;
}
.nsw-panel__title {
    margin: 0;
    color: inherit;
    font-family: var(--nsw-font);
    font-size: var(--text-base, 16px);
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
.nsw-panel__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nsw-view { padding: 16px; }
.nsw-view[hidden] { display: none; }
.nsw-intro { margin: 0 0 12px; color: var(--nsw-muted); }

.nsw-field { margin: 0 0 12px; }
.nsw-field label {
    display: block;
    margin: 0 0 4px;
    color: var(--nsw-text);
    font-weight: 600;
    font-size: var(--text-small, 13px);
}
.nsw-required { color: var(--nsw-error); }
.nsw-optional { color: var(--nsw-muted); font-weight: 400; }
.nsw-field input,
.nsw-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--nsw-border);
    border-radius: 6px;
    background: #fff;
    color: var(--nsw-text);
    font-family: var(--nsw-font);
    font-size: var(--text-base, 16px); /* 16px: no iOS zoom on focus */
    line-height: 1.4;
    height: auto;
}
.nsw-field textarea { resize: vertical; min-height: 110px; }
.nsw-field input:focus,
.nsw-field textarea:focus { outline: 0; border-color: var(--nsw-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nsw-accent) 30%, transparent); }
.nsw-field [aria-invalid="true"] { border-color: var(--nsw-error); }
.nsw-error,
.nsw-status { margin: 4px 0 0; color: var(--nsw-error); font-size: var(--text-small, 13px); }
.nsw-status { margin: 0 0 12px; }
.nsw-error[hidden],
.nsw-status[hidden] { display: none; }

/* Honeypot: out of sight for people, still in the form for bots */
.nsw-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nsw-submit {
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--nsw-accent);
    color: var(--nsw-on-accent);
    font-family: var(--nsw-font);
    font-size: var(--text-base, 16px);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}
.nsw-submit:hover { background: var(--nsw-accent-hover); }
.nsw-submit:disabled { opacity: .6; cursor: wait; }
.nsw-submit--secondary { margin-top: 12px; }
.nsw-privacy { margin: 10px 0 0; color: var(--nsw-muted); font-size: var(--text-tiny, 11px); }
.nsw-done { margin: 0; font-size: var(--text-base, 16px); outline: 0; }

@media (max-width: 767px) {
    .nsw-trigger { padding: 12px 8px; font-size: 12px; } /* as the old side label on mobile */
    /* bottom sheet on mobile */
    .nsw-panel {
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
    }
}
