#nts-popup-widget {
    position: fixed;
    bottom: 40px;
    left: 22px;
    z-index: 9999;
}

body.nts-popup-open #nts-popup-widget,
body.nts-popup-open #nts-chat-widget,
body.nts-popup-open #ormau-mobile-buy-bar,
body.nts-popup-open .ct-drawer-canvas {
    display: none !important;
}

@media (max-width: 767px) {
    body.single-product #nts-popup-widget {
        position: fixed;
        bottom: 110px;
        left: 22px;
        z-index: 9999;
    }
}

body.woocommerce-checkout #nts-popup-widget,
body[data-panel] #nts-popup-widget {
    display: none !important;
}

#nts-popup-toggle {
    background: #385543;
    color: white;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(56, 85, 67, 0.3);
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}
#nts-popup-toggle:hover {
    background: #2b4234;
}

#nts-popup-overlay {
    position: fixed;
    top: var(--nts-vv-top, 0px);
    left: var(--nts-vv-left, 0px);
    width: var(--nts-vw, 100vw);
    height: var(--nts-vh, 100dvh);
    min-height: var(--nts-vh, 100vh);
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@supports not (height: 100dvh) {
    #nts-popup-overlay {
        height: var(--nts-vh, 100vh);
        min-height: var(--nts-vh, 100vh);
    }
}

@media (max-width: 768px) {
    #nts-popup-overlay {
        padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) 12px;
    }
}

.nts-popup-container {
    width: 800px;
    max-width: 90%;
    background: white;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2147483001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nts-popup-left {
    width: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4;
}

.nts-popup-right {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#nts-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #000000;
    transition: 0.2s;
}
#nts-popup-close:hover {
    color: #333;
}
@media (max-width: 768px) {
    #nts-popup-close {
        color: #ffffff;
    }
}

.nts-popup-top-sub {
    font-size: 14px;
    color: #385543;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nts-popup-main-title {
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.nts-popup-sub {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.nts-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.nts-popup-form input {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.nts-popup-form button {
    background: #385543;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}
.nts-popup-form button:hover {
    background: #2b4234;
}

.nts-popup-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nts-popup-bullets li {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .nts-popup-container {
        flex-direction: column;
        width: 90%;
        max-height: calc(var(--nts-vh, 100vh) - 24px);
        overflow: auto;
    }
    .nts-popup-left {
        width: 100%;
        height: 200px;
    }
    .nts-popup-right {
        width: 100%;
        padding: 25px;
    }
    .nts-popup-main-title {
        font-size: 24px;
    }
    .nts-popup-form {
        flex-direction: column;
    }
    .nts-popup-form input,
    .nts-popup-form button {
        padding: 10px;
    }
}
/* Inline Subscription Shortcode */
.nts-inline-subscription-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.nts-inline-subscription-form {
    display: flex;
    width: 100%;
    height: 48px;
}

.nts-inline-subscription-form input[type="email"] {
    flex: 1;
    border: 1px solid #737b86;
    border-right: none;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    min-width: 0; /* fixes flex shrink issues */
}

.nts-inline-subscription-form button {
    background-color: #385543;
    color: #fff;
    border: 1px solid #385543;
    padding: 0 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0;
    margin: 0;
    font-weight: 500;
}

.nts-inline-subscription-form button:hover {
    background-color: #2b4234;
    border-color: #2b4234;
}


.nts-inline-subscription-form * { box-sizing: border-box; }

.nts-inline-subscription-form button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix heights explicitly for theme overrides */
.nts-inline-subscription-form input[type="email"],
.nts-inline-subscription-form button {
    height: 48px !important;
    min-height: 48px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

/* Prevent iOS Safari auto-zoom on focus by enforcing 16px font-size */
@media screen and (max-width: 768px) {
    .nts-popup-form input,
    .nts-inline-subscription-form input[type="email"] {
        font-size: 16px !important;
    }
}
