/* Conversion Audit — Styles @package GGR_Website_Audit */
.ggrwa-conv-wrap {
    max-width: 1100px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 40px;
}

/* Audit Disabled Notice */

.ggrwa-disabled-card {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 4px solid #f97316;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ggrwa-disabled-card p {
    margin: 0;
    line-height: 1.6;
}

.ggrwa-disabled-card a {
    font-weight: 600;
    text-decoration: none;
}

/* Disabled Audit Buttons */

.sapc-btn-disabled {
    opacity: .45;
    cursor: not-allowed !important;
    filter: grayscale(30%);
}

/* stat row */
.ggrwa-conv-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    padding: 20px 28px;
}

.ggrwa-conv-stat {
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid #e5e7eb;
    flex: 1;
}

.ggrwa-conv-stat:last-child {
    border-right: none;
}

/* yes/no indicators */
.ggrwa-conv-yes {
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
}

.ggrwa-conv-no {
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
}

/* WooCommerce panel */
.ggrwa-conv-woo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ggrwa-conv-woo-item {
    text-align: center;
    padding: 18px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.ggrwa-conv-woo-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ggrwa-conv-woo-bad {
    background: #fef2f2;
    border-color: #fecaca;
}

.ggrwa-conv-woo-warn {
    background: #fffbeb;
    border-color: #fde68a;
}

.ggrwa-conv-woo-num {
    font-size: 28px;
    font-weight: 800;
    color: #1a2332;
}

.ggrwa-conv-woo-good .ggrwa-conv-woo-num {
    color: #16a34a;
}

.ggrwa-conv-woo-bad .ggrwa-conv-woo-num {
    color: #dc2626;
}

.ggrwa-conv-woo-warn .ggrwa-conv-woo-num {
    color: #f59e0b;
}

.ggrwa-conv-woo-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
}

/* reuse content-analyzer table/chip classes */
.ggrwa-ca-table-wrap,
.ggrwa-ca-table,
.ggrwa-ca-grade-bars,
.ggrwa-ca-grade-row,
.ggrwa-ca-hist-label,
.ggrwa-ca-grade-count,
.ggrwa-ca-issue-chips,
.ggrwa-ca-chip,
.ggrwa-ca-chip-active,
.ggrwa-ca-chip-red,
.ggrwa-ca-chip-orange,
.ggrwa-ca-chip-blue,
.ggrwa-ca-search-input,
.ggrwa-ca-select,
.ggrwa-ca-title-cell,
.ggrwa-ca-kw-tag,
.ggrwa-ca-actions,
.ggrwa-ca-issue-badge,
.ggrwa-ca-badge-red,
.ggrwa-ca-badge-orange,
.ggrwa-ca-badge-blue,
.ggrwa-ca-table-footer {
    /* inherits from content-analyzer.css via shared admin.css */
}

@media(max-width:900px) {
    .ggrwa-conv-stat-row {
        flex-wrap: wrap;
    }

    .ggrwa-conv-woo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Shared table/chip styles (duplicated from content-analyzer for standalone use) */
.ggrwa-ca-table-wrap {
    overflow-x: auto;
}

.ggrwa-ca-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ggrwa-ca-table thead tr {
    background: #f9fafb;
}

.ggrwa-ca-table th {
    padding: 9px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.ggrwa-ca-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.ggrwa-ca-table tbody tr:hover {
    background: #f9fafb;
}

.ggrwa-ca-table tbody tr.ggrwa-ca-hidden {
    display: none;
}

.ggrwa-ca-title-cell {
    max-width: 220px;
}

.ggrwa-ca-title-cell strong {
    display: block;
    color: #1a2332;
    font-size: 13px;
    line-height: 1.3;
}

.ggrwa-ca-actions {
    white-space: nowrap;
}

.ggrwa-ca-issue-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin: 1px 2px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ggrwa-ca-badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.ggrwa-ca-badge-orange {
    background: #fef3c7;
    color: #b45309;
}

.ggrwa-ca-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.ggrwa-ca-issue-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ggrwa-ca-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
}

.ggrwa-ca-chip-active,
.ggrwa-ca-chip:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.ggrwa-ca-chip-red {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff0f0;
}

.ggrwa-ca-chip-orange {
    border-color: #fed7aa;
    color: #b45309;
    background: #fffbeb;
}

.ggrwa-ca-chip-blue {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.ggrwa-ca-chip-red.ggrwa-ca-chip-active,
.ggrwa-ca-chip-orange.ggrwa-ca-chip-active,
.ggrwa-ca-chip-blue.ggrwa-ca-chip-active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.ggrwa-ca-search-input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
    width: 200px;
}

.ggrwa-ca-search-input:focus {
    border-color: #7c3aed;
}

.ggrwa-ca-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.ggrwa-ca-grade-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ggrwa-ca-grade-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggrwa-ca-hist-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    min-width: 72px;
}

.ggrwa-ca-grade-count {
    font-size: 12px;
    font-weight: 600;
    color: #1a2332;
    min-width: 60px;
    text-align: right;
}

.ggrwa-ca-grade-count small {
    font-weight: 400;
    color: #9ca3af;
}

.ggrwa-ca-table-footer {
    padding: 10px 0 2px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}