/* Lightweight styles; theme/Flatsome controls the main typography and colors. */
.refernix-dashboard {
    margin: 0 0 30px;
}

.refernix-dashboard h2,
.refernix-dashboard h3 {
    margin-top: 0;
}

.refernix-header {
    margin-bottom: 20px;
}

.refernix-header p {
    margin: 5px 0 0;
    opacity: .75;
}

.refernix-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.refernix-card,
.refernix-share-box,
.refernix-products,
.refernix-history {
    border: 1px solid rgba(0,0,0,.10);
    padding: 18px;
    border-radius: 6px;
    background: #fff;
}

.refernix-card strong {
    display: block;
    margin-top: 7px;
    font-size: 1.35em;
}

.refernix-label {
    display: block;
    font-size: .85em;
    opacity: .7;
}

.refernix-share-box,
.refernix-products,
.refernix-history {
    margin-bottom: 20px;
}

.refernix-code-row,
.refernix-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.refernix-code-row input,
.refernix-link-box input {
    flex: 1;
    min-width: 0;
}

.refernix-product-row {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(300px, 1.2fr);
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,.08);
}

.refernix-product-row:first-child {
    border-top: 0;
}

.refernix-product-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.refernix-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin: 0;
}

.refernix-price {
    margin-top: 4px;
}

.refernix-table-wrap {
    overflow-x: auto;
}

.refernix-dashboard table {
    width: 100%;
}

@media (max-width: 700px) {
    .refernix-stats {
        grid-template-columns: 1fr;
    }

    .refernix-product-row {
        grid-template-columns: 1fr;
    }

    .refernix-code-row,
    .refernix-link-box {
        flex-direction: column;
        align-items: stretch;
    }
}

.refernix-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: .82em;
	font-weight: 600;
}
.refernix-status-pending { background: #fff3cd; color: #856404; }
.refernix-status-paid { background: #d1e7dd; color: #0f5132; }
.refernix-status-refunded,
.refernix-status-cancelled { background: #f8d7da; color: #842029; }
