/* SailWP AI Co-pilot — admin styles */

.sailwp-copilot-wrap {
    --sw-accent: #e8845c;
    --sw-accent-soft: #fdebe2;
    --sw-text: #1a1a1a;
    --sw-text-soft: #6b7280;
    --sw-border: #e5e7eb;
    --sw-bg-card: #ffffff;
    --sw-radius: 10px;
    max-width: 880px;
}

.sailwp-copilot-header {
    margin: 16px 0 20px;
}

.sailwp-copilot-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--sw-text);
}

.sailwp-copilot-tagline {
    color: var(--sw-text-soft);
    margin: 0;
    font-size: 14px;
}

.sailwp-copilot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    margin-bottom: 24px;
    font-size: 14px;
}

.sailwp-copilot-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.sailwp-copilot-status.is-connected .sailwp-copilot-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.sailwp-copilot-status.is-disconnected .sailwp-copilot-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.sailwp-copilot-card {
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.sailwp-copilot-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--sw-text);
}

.sailwp-copilot-card .description {
    margin: 0 0 16px;
    color: var(--sw-text-soft);
}

.sailwp-copilot-card .form-table {
    margin-top: 0;
}

.sailwp-copilot-card .form-table th {
    padding-left: 0;
    width: 180px;
}

.sailwp-copilot-card input[type="text"],
.sailwp-copilot-card input[type="url"] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

/* === Hero CTA — prominent upgrade prompt or Pro confirmation === */
.swcp-hero-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
    border-radius: 16px;
    margin: 24px 0 28px;
    box-shadow: 0 8px 32px rgba(232, 132, 92, 0.10);
}
.swcp-hero-cta.is-free {
    background: linear-gradient(135deg, #fffcf6 0%, #fbf6ee 100%);
    border: 1px solid #f0c5ad;
}
.swcp-hero-cta.is-pro {
    background: linear-gradient(135deg, #fffcf6 0%, #f3e8d8 100%);
    border: 1px solid #c8e0a8;
}
.swcp-hero-mark {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(232, 132, 92, 0.18);
    font-size: 28px;
    color: #5e7a3f;
    font-weight: 700;
}
.swcp-hero-mark img { width: 44px; height: 44px; display: block; }
.swcp-hero-body { flex: 1; min-width: 0; }
.swcp-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 600;
    color: #7d6e60;
    margin-bottom: 4px;
}
.swcp-hero-cta h2 {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #3a2e24 !important;
    line-height: 1.25;
}
.swcp-hero-cta p {
    margin: 0 0 8px !important;
    color: #6c5d52;
    font-size: 14px;
    line-height: 1.55;
}
.swcp-hero-price {
    font-size: 24px;
    font-weight: 700;
    color: #3a2e24;
    margin-top: 6px;
}
.swcp-hero-price .per {
    font-size: 13px;
    font-weight: 400;
    color: #7d6e60;
}
.swcp-hero-actions { flex-shrink: 0; }
.swcp-btn-primary {
    display: inline-block;
    background: #e8845c !important;
    color: #ffffff !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.15s ease;
    box-shadow: 0 2px 8px rgba(232, 132, 92, 0.25);
}
.swcp-btn-primary:hover {
    background: #d36e47 !important;
    color: #ffffff !important;
}
.swcp-btn-secondary {
    display: inline-block;
    background: transparent !important;
    color: #3a2e24 !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1px solid #c8e0a8 !important;
    transition: background 0.15s ease;
}
.swcp-btn-secondary:hover {
    background: #f3e8d8 !important;
}

/* Collapsible advanced settings */
.sailwp-copilot-details {
    margin-top: 12px;
}
.sailwp-copilot-details > summary {
    cursor: pointer;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sw-text-soft);
    list-style: none;
}
.sailwp-copilot-details > summary::-webkit-details-marker { display: none; }
.sailwp-copilot-details > summary:hover { color: var(--sw-text); }
.sailwp-copilot-details[open] > summary {
    margin-bottom: 16px;
}

/* Coupon redeem card */
.swcp-coupon-card {
    background: linear-gradient(180deg, #fffcf6 0%, #fff8ed 100%);
    border-color: #f0c5ad;
    padding: 22px 24px;
}
.swcp-coupon-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.swcp-coupon-badge {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.swcp-coupon-headtext h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2a1f17;
}
.swcp-coupon-headtext .description {
    margin: 0;
    color: #5d4a3d;
    font-size: 13px;
    line-height: 1.55;
}
.swcp-coupon-label {
    display: block;
    margin: 8px 0 6px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6e533f;
}
.swcp-coupon-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.swcp-coupon-row input[type="text"] {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 1px solid #d8b59e;
    border-radius: 6px;
    background: #fff;
}
.swcp-coupon-row input[type="text"]:focus {
    border-color: #c4593a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 89, 58, 0.18);
}
.swcp-coupon-row .button {
    padding: 8px 18px;
    height: auto;
    min-height: 38px;
    font-weight: 600;
}
.swcp-coupon-hint {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #8a7060;
    font-style: italic;
}
.swcp-coupon-result {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.swcp-coupon-result.is-success { background: #ecf5e1; color: #3f5e1f; border: 1px solid #c8e0a8; }
.swcp-coupon-result.is-error   { background: #fdecea; color: #8b2a1a; border: 1px solid #f5b9ad; }

@media (max-width: 720px) {
    .swcp-hero-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }
    .swcp-hero-actions { width: 100%; }
    .swcp-btn-primary, .swcp-btn-secondary { width: 100%; box-sizing: border-box; }
}

/* Quieter status pill — readability without screaming "warning". */
.sailwp-copilot-status--quiet {
    background: transparent;
    border: none;
    padding: 6px 0 18px;
    color: var(--sw-text-soft);
    font-size: 13px;
}

/* Capabilities grid: orient new users to what the co-pilot does, sit
   between the plan-hero and the (now collapsed-by-default) advanced
   block. Lightweight cards, no photos — keeps the page calm and free
   of AI-generated-looking imagery. */
.swcp-capabilities {
    margin: 4px 0 28px;
}
.swcp-capabilities__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sw-text-soft);
    font-weight: 600;
    margin: 0 0 12px;
}
.swcp-capabilities__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.swcp-capability {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 16px 18px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.swcp-capability:hover {
    border-color: var(--sw-accent);
    transform: translateY(-1px);
}
.swcp-capability__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sw-accent-soft);
    color: var(--sw-accent);
    border-radius: 9px;
    flex-shrink: 0;
    grid-row: span 2;
}
.swcp-capability h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-text);
}
.swcp-capability p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sw-text-soft);
}
@media (max-width: 720px) {
    .swcp-capabilities__grid { grid-template-columns: 1fr; }
}


/* ---- Brand profile (Settings) ---- */
.swcp-brand-profile { margin-top: 16px; }
.swcp-brand-profile h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-text);
}
.swcp-bp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 12px 0 18px;
}
@media (max-width: 720px) {
    .swcp-bp-grid { grid-template-columns: 1fr; }
}
.swcp-bp-block {
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.swcp-bp-fields { display: grid; gap: 8px; }
.swcp-bp-row, .swcp-bp-color-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    align-items: center;
}
.swcp-bp-color-row { grid-template-columns: 140px 44px 1fr; }
.swcp-bp-row-full { grid-template-columns: 1fr; gap: 6px; }
.swcp-bp-slug, .swcp-bp-label {
    font-size: 12px;
    color: var(--sw-text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.swcp-bp-label { font-family: inherit; }
.swcp-bp-hex { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.swcp-bp-details summary { cursor: pointer; color: var(--sw-text-soft); font-size: 13px; margin: 4px 0 8px; }
.swcp-bp-samples { margin: 0 0 8px 18px; font-size: 13px; color: var(--sw-text-soft); }
.swcp-bp-samples li { margin: 2px 0; }
.swcp-bp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.swcp-bp-status { font-size: 13px; }
.swcp-bp-status.is-success { color: #1f7a3a; }
.swcp-bp-status.is-error   { color: #b00020; }


/* ---- Brand profile: horizontal palette ---- */
.swcp-bp-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.swcp-bp-swatch {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--sw-border);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}
.swcp-bp-swatch:hover {
    transform: translateY(-1px);
    border-color: var(--sw-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.swcp-bp-swatch:focus-visible {
    outline: 2px solid var(--sw-accent);
    outline-offset: 2px;
}
.swcp-bp-swatch.is-copied {
    border-color: #1f7a3a;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.22);
}
.swcp-bp-swatch-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
}

/* ---- Privacy details collapsed ---- */
.sailwp-copilot-privacy > summary {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 14px 16px;
    margin: -14px -16px;
    border-radius: var(--sw-radius);
}
.sailwp-copilot-privacy > summary::-webkit-details-marker { display: none; }
.sailwp-copilot-privacy > summary::after {
    content: '›';
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 22px;
    color: var(--sw-text-soft);
    transition: transform 0.15s ease;
}
.sailwp-copilot-privacy[open] > summary::after { transform: rotate(90deg); }
.sailwp-copilot-privacy { position: relative; }
.swcp-privacy-summary-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--sw-text);
}
.swcp-privacy-summary-hint {
    font-size: 12.5px;
    color: var(--sw-text-soft);
}
.sailwp-copilot-privacy[open] > ul,
.sailwp-copilot-privacy[open] > p {
    margin-top: 14px;
}
