/* ============================================================
   SSIT Customer Service – Frontend Embed Styles
   ============================================================ */

.ssit-cs-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.ssit-cs-portal-title {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: inherit;
}

/* Loading indicator */
.ssit-cs-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    gap: 16px;
    color: #6b7280;
    font-size: 0.92rem;
}

.ssit-cs-loader p {
    margin: 0;
}

/* Spinner */
.ssit-cs-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ssit-cs-spin 0.8s linear infinite;
}

@keyframes ssit-cs-spin {
    to { transform: rotate(360deg); }
}

/* Iframe itself */
.ssit-cs-iframe {
    box-sizing: border-box;
    max-width: 100%;
    display: block;
    background: transparent;
}

/* Config error shown only to admins */
.ssit-cs-error {
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.9rem;
}

.ssit-cs-error a {
    color: #b91c1c;
    font-weight: 600;
}
