/* Unique container for AJAX handling */
.sp-wrapper {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #fcfcfc;
}
.sp-card {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}
.sp-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.sp-title-row h3 {
	margin: 0px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.sp-content p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}


/* popup */
/* Title row */
.sp-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Info icon */
#sp-info-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}

#sp-info-trigger svg,
#sp-info-trigger * {
    pointer-events: none; /* clicks span tak bubble hone do */
}

/* Overlay */
.sp-popup-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999; /* high z-index for WooCommerce pages */
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.sp-popup-overlay.sp-active {
    display: flex;
}

/* Modal box */
.sp-popup-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px 28px;
    max-width: 580px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Brand header */
.sp-popup-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Close button */
.sp-popup-close {
    position: absolute !important;
    top: 14px !important;
    right: 18px !important;
    background: none !important;
    border: none !important;
    font-size: 26px !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: color 0.2s !important;
}
.sp-popup-close:hover {
    color: #333 !important;
    background: #f5f5f5 !important;
}

/* Heading */
.sp-popup-heading {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
}
.sp-popup-subheading {
    font-size: 15px;
    color: #444;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* Features list */
.sp-popup-features {
    list-style: disc !important;
    padding-left: 20px !important;
    margin: 0 0 24px !important;
}
.sp-popup-features li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.sp-popup-features li strong {
    font-weight: 700;
    color: #111;
    margin-right: 4px;
}
.sp-popup-features li span {
    color: #555;
}

/* Divider */
.sp-popup-divider {
    border: none !important;
    border-top: 1px solid #e8e8e8 !important;
    margin: 0 0 16px !important;
}

/* Legal text */
.sp-popup-legal {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Footer links */
.sp-popup-footer {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.sp-popup-link {
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}
.sp-popup-link:hover {
    color: #1a73e8 !important;
}
.sp-popup-overlay.sp-active {
    display: flex !important;
}