/* ============================================================
   ACF Repeater Widget — ARW
   ============================================================ */

.arw-wrap {
    font-family: inherit;
    width: 100%;
}

/* ── Table layout ─────────────────────────────────────────── */
.arw-table-wrap {
    overflow-x: auto;
}

.arw-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.arw-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.5;
}

.arw-table tr:last-child td {
    border-bottom: none;
}

.arw-table td.arw-label {
    font-weight: 600;
    color: #333333;
    width: 35%;
    white-space: nowrap;
}

.arw-table td.arw-value {
    color: #555555;
}

.arw-table td.arw-value a {
    color: #4a8db5;
    text-decoration: none;
}

.arw-table td.arw-value a:hover {
    text-decoration: underline;
}

.arw-table tr:nth-child(odd) td  { background-color: #f9f9f9; }
.arw-table tr:nth-child(even) td { background-color: #ffffff; }

/* ── Cards layout ─────────────────────────────────────────── */
.arw-cards-wrap {
    display: grid;
    gap: 16px;
}

.arw-cols-1 { grid-template-columns: 1fr; }
.arw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.arw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.arw-cols-4 { grid-template-columns: repeat(4, 1fr); }

.arw-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arw-card-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arw-card-field.arw-card-type-image .arw-card-label {
    margin-bottom: 6px;
}

.arw-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888888;
}

.arw-card-value {
    font-size: 14px;
    color: #222222;
    line-height: 1.5;
}

.arw-card-value a {
    color: #4a8db5;
    text-decoration: none;
}

.arw-card-value a:hover {
    text-decoration: underline;
}

/* ── List layout ──────────────────────────────────────────── */
.arw-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.arw-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
}

.arw-list-item:last-child {
    border-bottom: none;
}

.arw-list-item:nth-child(odd)  { background-color: #f9f9f9; }
.arw-list-item:nth-child(even) { background-color: #ffffff; }

.arw-list-primary {
    font-weight: 500;
    color: #333333;
    flex: 1;
}

.arw-list-secondary {
    color: #777777;
    font-size: 13px;
}

/* ── Shared ───────────────────────────────────────────────── */
.arw-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.arw-empty-val {
    color: #bbbbbb;
}

.arw-no-data {
    color: #999;
    font-size: 13px;
    padding: 12px 0;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .arw-cols-3,
    .arw-cols-4 { grid-template-columns: repeat(2, 1fr); }

    .arw-table td.arw-label { width: auto; white-space: normal; }
}

@media (max-width: 480px) {
    .arw-cols-2,
    .arw-cols-3,
    .arw-cols-4 { grid-template-columns: 1fr; }

    .arw-list-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
