.ironphantom-order-risk-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-left: 4px solid #8c8f94;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #1d2327;
}

/* Risk color on left border */
.ironphantom-risk-low,
.ironphantom-risk-safe,
.ironphantom-risk-clean,
.ironphantom-risk-allow {
    border-left-color: #00a32a;
}

.ironphantom-risk-medium,
.ironphantom-risk-review,
.ironphantom-risk-escrow {
    border-left-color: #dba617;
}

.ironphantom-risk-high,
.ironphantom-risk-alert,
.ironphantom-risk-block,
.ironphantom-risk-deny {
    border-left-color: #d63638;
}

.ironphantom-risk-not_analyzed {
    border-left-color: #8c8f94;
}

.ironphantom-order-risk-card__top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 13px;
}

.ironphantom-order-risk-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1d2327;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ironphantom-order-risk-card__title strong {
    display: block;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.25;
}

.ironphantom-order-risk-card__title span {
    display: block;
    color: #646970;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.35;
}

/* Badge with colored dot */
.ironphantom-order-risk-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f0f1;
    color: #50575e;
    border: 1px solid #c3c4c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.ironphantom-order-risk-card__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8c8f94;
    flex-shrink: 0;
}

/* Green */
.ironphantom-risk-allow .ironphantom-order-risk-card__badge,
.ironphantom-risk-low .ironphantom-order-risk-card__badge,
.ironphantom-risk-safe .ironphantom-order-risk-card__badge,
.ironphantom-risk-clean .ironphantom-order-risk-card__badge {
    background: #edfaef;
    color: #0a6b2b;
    border-color: #b8e6c1;
}

.ironphantom-risk-allow .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-low .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-safe .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-clean .ironphantom-order-risk-card__badge::before {
    background: #00a32a;
}

/* Yellow */
.ironphantom-risk-review .ironphantom-order-risk-card__badge,
.ironphantom-risk-medium .ironphantom-order-risk-card__badge,
.ironphantom-risk-escrow .ironphantom-order-risk-card__badge {
    background: #fff8e5;
    color: #7a4d00;
    border-color: #f2d675;
}

.ironphantom-risk-review .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-medium .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-escrow .ironphantom-order-risk-card__badge::before {
    background: #dba617;
}

/* Red */
.ironphantom-risk-alert .ironphantom-order-risk-card__badge,
.ironphantom-risk-block .ironphantom-order-risk-card__badge,
.ironphantom-risk-high .ironphantom-order-risk-card__badge,
.ironphantom-risk-deny .ironphantom-order-risk-card__badge {
    background: #fcf0f1;
    color: #b32d2e;
    border-color: #f0b8bc;
}

.ironphantom-risk-alert .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-block .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-high .ironphantom-order-risk-card__badge::before,
.ironphantom-risk-deny .ironphantom-order-risk-card__badge::before {
    background: #d63638;
}

/* Grey pending */
.ironphantom-risk-not_analyzed .ironphantom-order-risk-card__badge {
    background: #f6f7f7;
    color: #50575e;
    border-color: #dcdcde;
}

.ironphantom-risk-not_analyzed .ironphantom-order-risk-card__badge::before {
    background: #8c8f94;
}

.ironphantom-order-risk-card__section {
    border-top: 1px solid #f0f0f1;
    padding-top: 10px;
    margin-top: 10px;
}

.ironphantom-order-risk-card__section span {
    display: block;
    color: #646970;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ironphantom-order-risk-card__section strong {
    color: #1d2327;
    font-size: 13px;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.ironphantom-order-risk-card__section p {
    color: #50575e;
    font-size: 12px;
    margin: 4px 0 0;
    line-height: 1.4;
    word-break: break-word;
}

/* Suggested checks and lists */
.ironphantom-order-risk-card__signals ul,
.ironphantom-order-risk-card__details ul {
    margin: 0;
    padding-left: 16px;
}

.ironphantom-order-risk-card__signals li,
.ironphantom-order-risk-card__details li {
    color: #1d2327;
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ironphantom-order-risk-card__signals p {
    background: #f6f7f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    color: #50575e;
    font-size: 12px;
}

/* Accordion details */
.ironphantom-order-risk-card__details {
    margin-top: 10px;
    padding: 9px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
}

.ironphantom-order-risk-card__details summary {
    cursor: pointer;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.ironphantom-order-risk-card__details summary:hover {
    color: #2271b1;
}

.ironphantom-order-risk-card__details p {
    margin: 8px 0 0;
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

/* Sections inside details need to be compact */
.ironphantom-order-risk-card__details .ironphantom-order-risk-card__section {
    margin-top: 8px;
    padding-top: 8px;
}

.ironphantom-order-risk-card__details .ironphantom-order-risk-card__section strong {
    font-size: 12px;
}

/* Footer hint */
.ironphantom-order-risk-card__hint {
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f6f7f7;
    border: 1px solid #e5e7eb;
    color: #646970;
    font-size: 12px;
    line-height: 1.4;
}

/* Review score dot */
.ironphantom-order-risk-card__score strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ironphantom-review-score-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    background: #8c8f94;
    flex-shrink: 0;
}

/* Score-based colors */
.ironphantom-score-green .ironphantom-review-score-dot {
    background: #00a32a;
}

.ironphantom-score-yellow .ironphantom-review-score-dot {
    background: #dba617;
}

.ironphantom-score-red .ironphantom-review-score-dot {
    background: #d63638;
}
