/* Container */
.sps-specs-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    max-width: 100%;
}

/* Title */
.sps-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
    color: #2c3338;
}

/* Table */
.sps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.sps-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.sps-table tr:last-child {
    border-bottom: none;
}

.sps-table tr:nth-child(odd) {
    background-color: #fcfcfc;
}

.sps-table td {
    padding: 10px 5px;
    vertical-align: top;
    color: #3c434a;
}

.sps-label {
    width: 35%;
    font-weight: 600;
    color: #646970;
    background: rgba(0, 0, 0, 0.01);
}

.sps-value {
    width: 65%;
    font-weight: 400;
}

/* Toggle Button */
.sps-toggle-btn {
    text-align: center;
    margin-top: 15px;
}

.dashicons {
    width: 20px;
    height: auto !important;
    font-size: 20px;
}

td:first-child,
th:first-child {
    padding-left: 9px !important;
}

.sps-open-modal-btn .dashicons {
    width: 20px;
    height: auto !important;
    font-size: 20px;
}

#sps-open-modal-btn {
    padding: 5px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: rgb(60 64 67 / 10%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 2px 6px 2px;
    width: 100%;
    text-transform: inherit;
    font-weight: 300;
    font-size: 15px;
    margin: 0;
    border: 1px solid #bbddfd;
    background-color: #f1f8fe;
    color: #2a83e9;
}

/* MODAL STYLES */
/* MODAL STYLES */
.sps-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 999999;
    /* Higher index */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    /* Flex centering */
    justify-content: center;
    /* Flex centering */
}

.sps-modal.open {
    display: flex;
    opacity: 1;
}

.sps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.sps-modal-content {
    top: 6%;
    background-color: #fefefe;
    position: relative;
    z-index: 1000000;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    /* Less than viewport height */
    display: flex;
    flex-direction: column;
    animation: spsSlideIn 0.3s ease-out;
    margin: auto;
    /* Fallback centering */
}

@keyframes spsSlideIn {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.sps-modal-close {
    color: #888;
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sps-modal-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.sps-modal-title {
    margin: 0;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #1d2327;
    font-weight: 700;
}

.sps-modal-body {
    padding: 0;
    overflow-y: auto;
    /* Scrollable content */
    flex: 1;
}

/* Custom Scrollbar for Wrapper and Modal Body */
.sps-table-wrapper::-webkit-scrollbar,
.sps-modal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sps-table-wrapper::-webkit-scrollbar-track,
.sps-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sps-table-wrapper::-webkit-scrollbar-thumb,
.sps-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sps-table-wrapper::-webkit-scrollbar-thumb:hover,
.sps-modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Adjust table in modal */
.sps-modal-body .sps-table tr:last-child {
    border-bottom: 1px solid #f0f0f1;
}

.sps-modal-body .sps-table td {
    padding: 15px 25px;
}