.oro-history-wrapper {
    margin-top: 28px;
}

.oro-history-inner {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid #e9ecef;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.oro-history-header {
    margin-bottom: 24px;
}

.oro-history-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f7f8fa;
    border: 1px solid #eceff3;
    border-radius: 999px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.oro-history-eyebrow-icon {
    width: 20px;
    height: 20px;
    color: #c89b3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oro-history-eyebrow-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oro-history-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.oro-history-subtitle {
    margin: 0;
    max-width: 900px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.oro-history-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.oro-history-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.oro-history-stat-card--participants {
    background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
    border-color: #dfe8f6;
}

.oro-history-stat-card--winners {
    background: linear-gradient(135deg, #fffaf0 0%, #fff4dd 100%);
    border-color: #f0dfb7;
}

.oro-history-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oro-history-stat-card--participants .oro-history-stat-icon {
    background: #eaf2ff;
    color: #3b82f6;
}

.oro-history-stat-card--winners .oro-history-stat-icon {
    background: #fff1cc;
    color: #c89b3c;
}

.oro-history-stat-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.oro-history-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
    margin-bottom: 6px;
}

.oro-history-stat-label {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.oro-history-table-box {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #eceef2;
    background: #ffffff;
}

.oro-history-table {
    width: 100%;
    border-collapse: collapse;
}

.oro-history-table thead th {
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid #eceef2;
}

.oro-history-table tbody td {
    padding: 18px;
    border-bottom: 1px solid #f1f3f6;
    color: #374151;
    font-size: 15px;
    vertical-align: middle;
}

.oro-history-table tbody tr:last-child td {
    border-bottom: none;
}

.oro-history-table tbody tr:nth-child(even) {
    background: #fcfcfd;
}

.oro-history-table tbody tr:hover {
    background: #f9fafb;
}

.oro-history-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.oro-history-badge-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.oro-history-badge-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oro-badge-win {
    background: #ecfdf3;
    color: #0f8a4b;
    border: 1px solid #b8ebcb;
}

.oro-badge-lose {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.oro-history-pagination {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.oro-history-pagination a,
.oro-history-pagination strong {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.oro-history-pagination a {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.oro-history-pagination a:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.oro-history-pagination strong {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.oro-history-footer-note {
    margin-top: 22px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.oro-history-footer-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #10b981;
    margin-top: 1px;
}

.oro-history-footer-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oro-history-empty {
    margin: 0;
    padding: 18px 20px;
    background: #f9fafb;
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #6b7280;
}

.oro-history-loading {
    position: relative;
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.oro-history-loading::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-top-color: #111827;
    border-radius: 50%;
    animation: oro-history-spin 0.7s linear infinite;
}

@keyframes oro-history-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .oro-history-inner {
        padding: 22px;
    }

    .oro-history-title {
        font-size: 26px;
    }

    .oro-history-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .oro-history-inner {
        padding: 18px;
        border-radius: 18px;
    }

    .oro-history-title {
        font-size: 23px;
    }

    .oro-history-subtitle {
        font-size: 14px;
    }

    .oro-history-table-box {
        border: none;
        background: transparent;
        overflow: visible;
    }

    .oro-history-table,
    .oro-history-table thead,
    .oro-history-table tbody,
    .oro-history-table tr,
    .oro-history-table th,
    .oro-history-table td {
        display: block;
        width: 100%;
    }

    .oro-history-table thead {
        display: none;
    }

    .oro-history-table tbody tr {
        background: #ffffff !important;
        border: 1px solid #eceef2;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 14px;
        box-shadow: 0 4px 12px rgba(17, 24, 39, 0.03);
    }

    .oro-history-table tbody td {
        border-bottom: 1px solid #f1f3f6;
        padding: 14px 16px;
        position: relative;
    }

    .oro-history-table tbody td:last-child {
        border-bottom: none;
    }

    .oro-history-table tbody td::before {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #9ca3af;
    }

    .oro-history-table tbody td:nth-child(1)::before {
        content: "Date";
    }

    .oro-history-table tbody td:nth-child(2)::before {
        content: "Commande";
    }

    .oro-history-table tbody td:nth-child(3)::before {
        content: "Email";
    }

    .oro-history-table tbody td:nth-child(4)::before {
        content: "Résultat";
    }

    .oro-history-pagination {
        justify-content: flex-start;
    }

    .oro-history-pagination a,
    .oro-history-pagination strong {
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 13px;
    }

    .oro-history-footer-note {
        font-size: 13px;
    }
}