/* ============================================
   ATTRIBUTES TAB — v1.4.5 design system
   All classes prefixed weam-ab-
   ============================================ */

/* --- Warning banner --- */
.weam-ab-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--weam-error-light);
    border: 1px solid #FECACA;
    border-radius: var(--weam-r-pill);
    margin-bottom: 16px;
}
.weam-ab-warning-icon {
    font-size: var(--weam-text-2xl);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.weam-ab-warning-title {
    font-weight: 600;
    font-size: var(--weam-text-lg);
    color: var(--weam-error-dark);
    margin-bottom: 4px;
}
.weam-ab-warning-text {
    font-size: var(--weam-text-md);
    color: var(--weam-error-dark);
    line-height: 1.5;
}
.weam-ab-warning-text a {
    color: var(--weam-error-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Card --- */
.weam-ab-card {
    background: white;
    border: 1px solid var(--weam-border, #E2E8F0);
    border-radius: var(--weam-r-pill);
    overflow: hidden;
}
.weam-ab-card-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--weam-border, #E2E8F0);
}
.weam-ab-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--weam-purple-50, #EEF2FF);
    border-radius: 10px;
    font-size: var(--weam-text-xl);
    flex-shrink: 0;
}
.weam-ab-card-title {
    font-weight: 600;
    font-size: var(--weam-text-lg);
    color: var(--weam-slate-700, #334155);
    margin: 0;
}
.weam-ab-card-desc {
    font-size: var(--weam-text-md);
    color: var(--weam-slate-500, #64748B);
    margin: 2px 0 0 0;
}

/* --- Table --- */
.weam-ab-table {
    width: 100%;
    border-collapse: collapse;
}
.weam-ab-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: var(--weam-text-sm);
    font-weight: 600;
    color: var(--weam-slate-400, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--weam-border, #E2E8F0);
    white-space: nowrap;
}
.weam-ab-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--weam-border, #E2E8F0);
    font-size: var(--weam-text-md);
    vertical-align: middle;
}
.weam-ab-table tr:last-child td { border-bottom: none; }
.weam-ab-table tr:hover td { background: var(--weam-slate-50, #F8FAFC); }
.weam-ab-table tr.weam-ab-disabled td { opacity: 0.5; }

/* Attribute name cell */
.weam-ab-name {
    font-weight: 500;
    color: var(--weam-slate-700, #334155);
}
.weam-ab-meta {
    font-size: var(--weam-text-base);
    color: var(--weam-slate-400, #94A3B8);
    margin-top: 2px;
}
.weam-ab-meta code {
    font-family: var(--weam-font-mono);
    font-size: var(--weam-text-sm);
    background: var(--weam-slate-100, #F1F5F9);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--weam-slate-500, #64748B);
}
.weam-ab-terms-warn {
    color: var(--weam-amber-600);
    font-size: var(--weam-text-base);
    cursor: help;
}

/* Badges */
.weam-ab-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: var(--weam-text-sm);
    font-weight: 500;
    border-radius: 999px;
}
.weam-ab-badge-radio { background: var(--weam-purple-100, #E0E7FF); color: var(--weam-purple-600, #4F46E5); }
.weam-ab-badge-checkbox { background: #DBEAFE; color: var(--weam-info); }
.weam-ab-badge-dropdown { background: var(--weam-amber-100, #FEF3C7); color: var(--weam-amber-600); }
.weam-ab-badge-woo_default { background: var(--weam-slate-100, #F1F5F9); color: var(--weam-slate-600, #475569); }
.weam-ab-badge-image { background: #FCE7F3; color: var(--weam-error); }
.weam-ab-badge-sorting { background: var(--weam-slate-100, #F1F5F9); color: var(--weam-slate-600, #475569); }
.weam-ab-badge-layout { background: var(--weam-slate-100, #F1F5F9); color: var(--weam-slate-600, #475569); }
.weam-ab-badge-validation { background: var(--weam-slate-100, #F1F5F9); color: var(--weam-slate-600, #475569); }
.weam-ab-badge-notset { opacity: 0.55; }

/* Status */
.weam-ab-status-active {
    color: var(--weam-success, #10B981);
    font-weight: 500;
    font-size: var(--weam-text-base);
}
.weam-ab-status-inactive {
    color: var(--weam-slate-400, #94A3B8);
    font-size: var(--weam-text-base);
}

/* Configure button */
.weam-ab-action {
    display: inline-block;
    padding: 5px 14px;
    font-size: var(--weam-text-base);
    font-weight: 600;
    color: var(--weam-purple-600, #4F46E5) !important;
    background: transparent;
    border: 1px solid var(--weam-purple-300, #A5B4FC);
    border-radius: var(--weam-r-md);
    cursor: pointer;
    text-decoration: none !important;
    transform: none !important;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}
.weam-ab-action:hover,
.weam-ab-action:focus {
    background: var(--weam-purple-50, #EEF2FF);
    border-color: var(--weam-purple-500, #6366F1);
    color: var(--weam-purple-700, #4338CA) !important;
    transform: none !important;
    text-decoration: none !important;
}

/* Pro badge inline */
.weam-ab-pro-badge {
    display: inline-block;
    font-size: var(--weam-text-2xs);
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--weam-purple-500, #6366F1);
    color: white;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
}

/* --- Empty state --- */
.weam-ab-empty {
    text-align: center;
    padding: 48px 20px;
}
.weam-ab-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--weam-slate-100, #F1F5F9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--weam-text-3xl);
}
.weam-ab-empty-title {
    font-weight: 600;
    font-size: var(--weam-text-lg);
    margin-bottom: 4px;
}
.weam-ab-empty-text {
    font-size: var(--weam-text-md);
    color: var(--weam-slate-500, #64748B);
    margin-bottom: 16px;
}
.weam-ab-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: var(--weam-text-md);
    font-weight: 500;
    color: white;
    background: var(--weam-purple-500, #6366F1);
    border-radius: var(--weam-r-lg);
    text-decoration: none;
    transition: background 0.15s;
}
.weam-ab-empty-link:hover { background: var(--weam-purple-700, #4338CA); color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .weam-ab-table th.weam-ab-col-layout,
    .weam-ab-table td.weam-ab-col-layout,
    .weam-ab-table th.weam-ab-col-sorting,
    .weam-ab-table td.weam-ab-col-sorting,
    .weam-ab-table th.weam-ab-col-validation,
    .weam-ab-table td.weam-ab-col-validation {
        display: none;
    }
}

/* ============================================
   INSTALL CTA — Get Started Banner
   ============================================ */
.weam-ab-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--weam-slate-800) 0%, var(--weam-slate-700) 100%);
    border-radius: var(--weam-r-pill);
    margin-bottom: 16px;
    color: white;
}
.weam-ab-cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.weam-ab-cta-icon {
    font-size: var(--weam-text-3xl);
    flex-shrink: 0;
}
.weam-ab-cta-title {
    font-weight: 600;
    font-size: var(--weam-text-xl);
    margin-bottom: 4px;
}
.weam-ab-cta-desc {
    font-size: var(--weam-text-md);
    color: var(--weam-slate-400);
    line-height: 1.5;
}
.weam-ab-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.weam-ab-cta-dismiss {
    background: none;
    border: none;
    color: var(--weam-slate-500);
    font-size: var(--weam-text-base);
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}
.weam-ab-cta-dismiss:hover {
    color: var(--weam-slate-400);
}

/* CTD button inside CTA (dark context — hero CTA, stays filled) */
.weam-ab-cta .weam-ctd-socket {
    display: block;
    background: var(--weam-slate-800);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 1;
}
.weam-ab-cta .weam-ctd-dot {
    opacity: 1;
    width: 16px !important;
    height: 16px !important;
    left: 4px;
}
.weam-ab-cta .weam-ctd-wrap:hover .weam-ctd-dot {
    width: 20px !important;
    height: 20px !important;
    left: 2px;
    opacity: 1;
}
.weam-ab-cta .weam-ctd-wrap .weam-ctd {
    color: var(--weam-slate-800) !important; background: white !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px;
    margin-left: 12px;
    padding: 10px 18px;
}
.weam-ab-cta .weam-ctd-wrap:hover .weam-ctd {
    background: var(--weam-slate-100) !important;
}
