/* supportpro.skin.css — modern, professional popup (v2)  */
/* ---------- Theme Tokens ---------- */
.supportpro-skin {
    --sp-bg: #fff;
    --sp-surface: #ffffff;
    --sp-border: #e6eaf0;
    --sp-muted: #64748b;
    --sp-text: #0f172a;
    --sp-heading: #0b1324;
    --sp-primary: #2563eb;
    --sp-accent: #3f8ed6;
    --sp-ghost: #111827;
    --sp-ring: rgba(37, 99, 235, .28);
    --sp-shadow: 0 16px 44px rgba(2, 6, 23, .20);
    --sp-card-shadow: 0 1px 0 rgba(2, 6, 23, .06) inset;
    --sp-radius: 14px;
    --sp-ctrl-h: 40px;
    color: var(--sp-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scoped Reset (prevents tiny misalignments) ---------- */
.supportpro-skin,
.supportpro-skin * {
    box-sizing: border-box;
}

.supportpro-skin input,
.supportpro-skin textarea,
.supportpro-skin button {
    font: 14px/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    -webkit-appearance: none;
    appearance: none;
}

/* If any legacy Dijit wrapper renders, keep it clean */
.supportpro-skin .dijitDialogPaneContent {
    background: var(--sp-bg) !important;
    padding: 0 !important;
    border: 0 !important;
}

/* ---------- Non-Dijit modal shell ---------- */
.sp-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2147483600;
}

.sp-modal.open {
    display: block;
}

.sp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .45);
    backdrop-filter: blur(2px);
}

.sp-panel {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: min(1100px, 96vw);
    max-height: min(84vh, 820px);
    display: flex;
    flex-direction: column;
    background: var(--sp-surface);
    border-radius: 16px;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

/* Header */
.sp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sp-border);
    background: linear-gradient(180deg, #f9fbff, #eef2ff);
}

.sp-title {
    font: 700 18px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: var(--sp-heading);
}

.sp-close {
    border: 0;
    background: transparent;
    font-size: 35px !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #475569;
}

.sp-close:hover {
    color: #0f172a;
}

/* Body grid */
.supportpro-skin .sp-body {
    padding: 18px;
    overflow: auto;
}

.supportpro .sp-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}


/* When two <header> blocks live in the same card, visually separate them */
.supportpro .sp-card-head--sub {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--sp-border);
  }
  
  /* Tighter spacing after headers in cards */
  .supportpro .sp-card-head + p { margin-top: 6px; }
  
  /* Button spacing in cards feels nicer with a little top margin */
  .supportpro .sp-card .sp-button { margin-top: 6px; }
  
@media (max-width: 980px) {
    .supportpro .sp-body {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.supportpro .sp-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 16px;
    box-shadow: var(--sp-card-shadow);
}

.supportpro .sp-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.supportpro .sp-card-head h2 {
    font: 800 16px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: var(--sp-heading);
    margin: 0;
}

.supportpro .sp-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--sp-primary);
}

.supportpro .sp-card p {
    margin: 8px 0;
    color: var(--sp-muted);
}

/* ---------- Form & Controls ---------- */
.supportpro .sp-form {
    margin-top: 10px;
}

.supportpro .sp-field {
    margin-bottom: 12px;
}

.supportpro .sp-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

/* Consistent control sizing */
.supportpro .sp-field input,
.supportpro .sp-field textarea {
    width: 100%;
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    padding: 8px 12px;
    height: var(--sp-ctrl-h);
    line-height: calc(var(--sp-ctrl-h) - 2px);
    background: #fff;
    outline: none;
    transition: box-shadow .12s, border-color .12s, background .12s;
}

.supportpro .sp-field textarea {
    height: 120px;
    line-height: 1.45;
    resize: vertical;
    min-height: 94px;
}

.supportpro .sp-field input:hover,
.supportpro .sp-field textarea:hover {
    background: #fcfdff;
}

.supportpro .sp-field input:focus,
.supportpro .sp-field textarea:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px var(--sp-ring);
}

/* Placeholder color */
.supportpro .sp-field ::placeholder {
    color: #94a3b8;
}

/* Buttons */
.supportpro .sp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--sp-ctrl-h);
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: transform .06s, filter .12s, background .12s, border-color .12s, color .12s;
}

.supportpro .sp-button:active {
    transform: translateY(1px);
}

.supportpro .sp-button-primary {
    background: var(--sp-primary);
    color: #fff;
    border-color: #1f48cf;
}

.supportpro .sp-button-primary:hover {
    filter: brightness(1.07);
}

.supportpro .sp-button-accent {
    background: var(--sp-accent);
    color: #fff;
    border-color: #2571c7;
}

.supportpro .sp-button-accent:hover {
    filter: brightness(1.07);
}

.supportpro .sp-button-ghost {
    background: #fff;
    color: var(--sp-ghost);
    border-color: var(--sp-border);
    text-decoration: none !important;
}

.supportpro .sp-button-ghost:hover {
    background: #f6f7fb;
}

.supportpro .sp-inline-contact {
    margin-top: 10px;
    font-size: 12px;
}

.supportpro .sp-inline-contact a {
    color: var(--sp-primary);
    text-decoration: none;
    font-weight: 700;
}

.supportpro .sp-inline-contact a:hover {
    text-decoration: underline;
}

.supportpro .sp-hours {
    margin-top: 8px;
    color: var(--sp-muted);
}

/* ---------- Chat loading state (if you show it) ---------- */
.sp-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--sp-accent);
}

.sp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #c6f6d5;
    border-top-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
    animation: sp-spin .8s linear infinite;
}

@keyframes sp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Prevent ProvideSupport image/toggle from flashing ---------- */
#sc6IYp .ps_messenger__toggle-content {
    display: none !important;
}

#sc6IYp a.chat-button-6IYp,
#sc6IYp img[name^="ps"] {
    display: none !important;
}

#sc6IYp .ps_messenger__wrap {
    z-index: 2147483647 !important;
}

.sp-card-actions .sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.sp-card-actions .sp-meta {
    margin-top: 10px;
    color: var(--sp-muted);
    font-size: 12px;
}