/* =============================================
   NS Cookie Consent — Outdoor & Offroad
   ============================================= */

/* ── Banner ── */
.ns-cb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0 20px 20px;
    animation: ns-cb-slide-up .4s cubic-bezier(.22,.61,.36,1);
}
@keyframes ns-cb-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.ns-cb-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 -4px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ns-cb-text {
    flex: 1;
}
.ns-cb-text strong {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
}
.ns-cb-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.ns-cb-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ns-cb-btn {
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: none;
    white-space: nowrap;
}

.ns-cb-btn-accept {
    background: #1A6338;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,99,56,.25);
}
.ns-cb-btn-accept:hover {
    background: #14502d;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26,99,56,.3);
}

.ns-cb-btn-reject {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e0e0e0;
}
.ns-cb-btn-reject:hover {
    background: #eee;
    color: #333;
}

.ns-cb-btn-settings {
    background: transparent;
    color: #1A6338;
    border: 1px solid #1A6338;
}
.ns-cb-btn-settings:hover {
    background: #f0f7f0;
}


/* ── Overlay ── */
.ns-co {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999999;
    animation: ns-cb-fade .2s ease;
}
@keyframes ns-cb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ── Settings Modal ── */
.ns-cs {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 540px;
    max-width: 92vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 60px rgba(0,0,0,.15);
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    animation: ns-cs-pop .25s cubic-bezier(.22,.61,.36,1);
}
@keyframes ns-cs-pop {
    from { transform: translate(-50%, -50%) scale(.95); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.ns-cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.ns-cs-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}
.ns-cs-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s;
    padding: 0;
}
.ns-cs-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ns-cs-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.ns-cs-intro {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* ── Cookie groups ── */
.ns-cs-group {
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}
.ns-cs-group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.ns-cs-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ns-cs-group-info strong {
    font-size: 14px;
    color: #222;
}

.ns-cs-always {
    display: inline-block;
    margin-left: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1A6338;
    background: #edf7ed;
    padding: 2px 10px;
    border-radius: 20px;
}

.ns-cs-group-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 8px 0 0;
}

/* ── Toggle switch ── */
.ns-cs-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.ns-cs-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ns-cs-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: all .25s;
}
.ns-cs-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.ns-cs-toggle input:checked + .ns-cs-slider {
    background: #1A6338;
}
.ns-cs-toggle input:checked + .ns-cs-slider::before {
    transform: translateX(22px);
}

/* ── Footer ── */
.ns-cs-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}


/* ── Manage button (floating) ── */
#ns-cookie-manage {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99998;
}
#ns-cookie-manage button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: all .2s;
    padding: 0;
}
#ns-cookie-manage button:hover {
    background: #1A6338;
    color: #fff;
    border-color: #1A6338;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(26,99,56,.25);
}


/* ── Cookie Policy (shortcode) ── */
.ns-cookie-policy h2 { margin-top: 0; }
.ns-cookie-policy h3 { margin-top: 32px; }
.ns-cookie-policy h4 { margin-top: 20px; color: #1A6338; }

.ns-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 13px;
}
.ns-cookie-table th {
    background: #f8faf8;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #1A6338;
}
.ns-cookie-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    color: #555;
}
.ns-cookie-table tr:hover td {
    background: #fafcfa;
}


/* ── Responsive ── */
@media (max-width: 700px) {
    .ns-cb-inner {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    .ns-cb-buttons {
        width: 100%;
        flex-direction: column;
    }
    .ns-cb-btn {
        text-align: center;
    }
    .ns-cs {
        width: 95vw;
        max-height: 90vh;
        border-radius: 16px;
    }
}
