<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * @return void
 */
function elementsell_render_admin_styles() {
    static $done = false;

    if ( $done ) {
        return;
    }

    $done = true;
    ?>
    <style>
        .elementsell-admin {
            --es-admin-bg: #f6f7f7;
            --es-admin-card: #fff;
            --es-admin-border: #dcdcde;
            --es-admin-text: #1d2327;
            --es-admin-muted: #646970;
            --es-admin-accent: #2271b1;
            --es-admin-radius: 12px;
            --es-admin-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
        }

        .elementsell-admin > h1 {
            font-size: 23px;
            font-weight: 600;
            letter-spacing: -0.02em;
            margin-bottom: 18px;
        }

        .elementsell-admin-card {
            margin-top: 24px;
            padding: 22px 24px;
            border: 1px solid var(--es-admin-border);
            border-radius: var(--es-admin-radius);
            background: var(--es-admin-card);
            box-shadow: var(--es-admin-shadow);
        }

        .elementsell-admin-card--form .form-table th {
            padding-top: 16px;
            padding-bottom: 16px;
            color: var(--es-admin-text);
        }

        .elementsell-admin-card--form .form-table td {
            padding-top: 14px;
            padding-bottom: 14px;
        }

        .elementsell-admin-card--form .regular-text,
        .elementsell-admin-card--form textarea {
            border-radius: 8px;
        }

        .elementsell-admin-card--form .button-primary {
            border-radius: 8px;
            padding: 6px 18px;
            min-height: 38px;
        }

        #elementsell-gmail-smtp {
            padding: 14px 18px;
        }

        #elementsell-gmail-smtp .elementsell-admin-section-title {
            margin-bottom: 10px;
        }

        #elementsell-gmail-smtp .elementsell-gmail-settings {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            max-width: 520px;
        }

        #elementsell-gmail-smtp .is-hidden {
            display: none !important;
        }

        #elementsell-gmail-smtp .elementsell-gmail-connected {
            max-width: 520px;
            margin: 0 0 8px;
            padding: 12px 14px;
            border: 1px solid #dcdcde;
            border-radius: 8px;
            background: #f6f7f7;
        }

        #elementsell-gmail-smtp .elementsell-gmail-connected-label {
            margin: 0 0 6px;
            color: #646970;
            font-size: 12px;
        }

        #elementsell-gmail-smtp .elementsell-gmail-connected-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
        }

        #elementsell-gmail-smtp .elementsell-gmail-connected-email {
            font-size: 14px;
            word-break: break-all;
        }

        #elementsell-gmail-smtp .elementsell-gmail-app-password-hint,
        #elementsell-gmail-smtp .elementsell-gmail-change-hint {
            max-width: 520px;
            margin: 4px 0 0;
        }

        #elementsell-gmail-smtp .elementsell-gmail-settings .regular-text {
            flex: 1 1 200px;
            min-width: 0;
        }

        #elementsell-gmail-smtp .elementsell-password-field {
            display: flex;
            align-items: center;
            gap: 6px;
            flex: 1 1 200px;
            min-width: 0;
        }

        #elementsell-gmail-smtp .elementsell-password-field .regular-text {
            flex: 1;
        }

        #elementsell-gmail-smtp .elementsell-password-field .elementsell-toggle-password {
            flex: 0 0 auto;
            min-width: 36px;
            padding: 0 8px;
        }

        #elementsell-gmail-smtp .elementsell-password-field .elementsell-toggle-password .dashicons {
            margin-top: 3px;
        }

        #elementsell-gmail-smtp .notice {
            margin: 0 0 10px;
        }

        #elementsell-gmail-smtp .submit {
            margin-top: 6px;
            padding-top: 0;
        }

        #elementsell-gmail-smtp .elementsell-gmail-test-form {
            margin-top: 4px;
            padding-top: 10px;
            border-top: 1px solid var(--es-admin-border);
        }

        #elementsell-gmail-smtp .elementsell-gmail-test-row {
            margin: 0;
        }

        #elementsell-gmail-smtp .elementsell-gmail-notification-pref {
            margin: 8px 0 0;
            font-size: 13px;
            line-height: 1.4;
        }

        #elementsell-gmail-smtp .elementsell-gmail-notification-pref label {
            display: inline-flex;
            align-items: flex-start;
            gap: 6px;
            cursor: pointer;
        }

        #elementsell-gmail-smtp .elementsell-gmail-notification-pref input[type="checkbox"] {
            margin: 2px 0 0;
        }

        .elementsell-admin-section-title {
            margin: 0 0 18px;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--es-admin-text);
        }

        .elementsell-accounting-export {
            margin-top: 24px;
            font-size: 12px;
            color: var(--es-admin-muted);
        }

        .elementsell-accounting-export summary {
            cursor: pointer;
            display: inline-block;
            user-select: none;
        }

        .elementsell-accounting-export summary:hover {
            color: var(--es-admin-text);
        }

        .elementsell-accounting-export form {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }

        .elementsell-accounting-export select {
            font-size: 12px;
            max-width: 150px;
            min-height: 28px;
        }

        .elementsell-accounting-export .button-small {
            font-size: 12px;
            min-height: 28px;
            line-height: 26px;
            padding: 0 10px;
        }

        .elementsell-footer-links {
            margin-top: 24px;
            font-size: 12px;
            color: var(--es-admin-muted);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }

        .elementsell-footer-links a {
            color: inherit;
            text-decoration: none;
        }

        .elementsell-footer-links a:hover {
            color: var(--es-admin-text);
        }

        .elementsell-automation-blacklist-quick {
            margin: 0 0 16px;
        }

        .elementsell-automation-blacklist-quick__main {
            min-width: 0;
        }

        .elementsell-automation-blacklist-quick__actions {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 10px;
        }

        .elementsell-automation-blacklist-quick__form {
            display: inline-flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 8px;
            margin: 0;
            flex: 0 0 auto;
        }

        .elementsell-automation-blacklist-quick__label {
            flex: 0 0 auto;
            margin: 0;
            white-space: nowrap;
        }

        .elementsell-automation-blacklist-quick__form .regular-text {
            width: 250px;
            max-width: 250px;
            flex: 0 0 250px;
        }

        .elementsell-automation-blacklist-quick__form .button {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .elementsell-automation-blacklist-quick__mailing-link {
            flex: 0 0 auto;
        }

        .elementsell-automation-blacklist-quick__main .description {
            margin: 8px 0 0;
        }

        @media (max-width: 782px) {
            .elementsell-automation-blacklist-quick__actions {
                flex-wrap: wrap;
            }

            .elementsell-automation-blacklist-quick__form {
                flex-wrap: wrap;
            }
        }

        .elementsell-admin-quick-link {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
            color: var(--es-admin-accent);
            text-decoration: none;
            background: #fff;
            border: 1px solid var(--es-admin-accent);
            border-radius: 4px;
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
            white-space: nowrap;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }

        .elementsell-admin-quick-link:hover,
        .elementsell-admin-quick-link:focus {
            color: #135e96;
            border-color: #135e96;
            background: #f0f6fc;
            box-shadow: 0 1px 2px rgba(34, 113, 177, 0.15);
        }

        .elementsell-invoices-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 12px;
            margin: 16px 0 0;
        }

        .elementsell-invoices-filter,
        .elementsell-billing-invoices-filter {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 12px;
            margin: 0;
        }

        .elementsell-invoices-filter label,
        .elementsell-billing-invoices-filter label {
            font-weight: 600;
        }

        .elementsell-invoices-zip-form {
            margin: 0 0 0 4px;
        }

        .elementsell-admin-stats__header h2 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--es-admin-text);
        }

        .elementsell-admin-stats__highlight {
            margin-top: 6px;
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.03em;
            color: var(--es-admin-accent);
        }

        .elementsell-admin-stats__layout {
            display: flex;
            align-items: stretch;
            gap: 24px;
            margin-top: 20px;
        }

        .elementsell-admin-stats__chart {
            flex: 1 1 auto;
            min-height: 320px;
            max-width: 760px;
            padding: 12px;
            border-radius: 10px;
            background: var(--es-admin-bg);
        }

        .elementsell-record-search--metrics {
            max-width: 100%;
        }

        .elementsell-stats-search {
            margin-top: 14px;
        }

        .elementsell-record-search {
            display: block;
            width: 100%;
            max-width: 260px;
        }

        .elementsell-record-search__control {
            display: flex;
            align-items: stretch;
            width: 100%;
            border: 1px solid #dcdcde;
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
            transition: border-color 0.15s ease;
        }

        .elementsell-record-search__control:hover {
            border-color: #c3c4c7;
        }

        .elementsell-record-search__control:focus-within {
            border-color: var(--es-admin-accent);
        }

        .elementsell-record-search__submit {
            flex: 0 0 36px;
            width: 36px;
            min-height: 36px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #a7aaad;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            outline: none;
        }

        .elementsell-record-search__submit:hover,
        .elementsell-record-search__control:focus-within .elementsell-record-search__submit {
            color: var(--es-admin-accent);
        }

        .elementsell-record-search__submit:focus,
        .elementsell-record-search__submit:focus-visible {
            outline: none;
            box-shadow: none;
        }

        .elementsell-record-search__submit svg {
            display: block;
            width: 15px;
            height: 15px;
        }

        .elementsell-record-search__input {
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
            margin: 0;
            padding: 8px 10px 8px 2px;
            font-size: 13px;
            line-height: 1.4;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: var(--es-admin-text);
            box-shadow: none;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .elementsell-record-search__input::placeholder {
            color: #a7aaad;
        }

        .elementsell-record-search__input:hover,
        .elementsell-record-search__input:focus,
        .elementsell-record-search__input:focus-visible {
            border: 0;
            outline: none;
            box-shadow: none;
        }

        .elementsell-record-search__input::-webkit-search-decoration,
        .elementsell-record-search__input::-webkit-search-results-button,
        .elementsell-record-search__input::-webkit-search-results-decoration {
            -webkit-appearance: none;
            appearance: none;
        }

        .elementsell-record-search__input::-webkit-search-cancel-button {
            margin-right: 2px;
        }

        .elementsell-record-search--metrics {
            max-width: 100%;
        }

        .elementsell-admin-stats__metrics {
            flex: 0 0 280px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .elementsell-admin-metric {
            padding: 14px 16px;
            border: 1px solid var(--es-admin-border);
            border-radius: 10px;
            background: var(--es-admin-bg);
        }

        .elementsell-admin-metric strong {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--es-admin-muted);
        }

        .elementsell-admin-metric span {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--es-admin-text);
        }

        .elementsell-stats-detail-link {
            margin: 16px 0 0;
            font-size: 12px;
        }

        .elementsell-stats-detail-link a {
            color: var(--es-admin-muted);
            text-decoration: none;
        }

        .elementsell-stats-detail-link a:hover {
            color: var(--es-admin-text);
        }

        .elementsell-sales-stats-summary__amount {
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.03em;
            color: var(--es-admin-accent);
        }

        .elementsell-sales-stats-summary__count {
            margin: 10px 0 0;
            color: var(--es-admin-muted);
            font-size: 14px;
        }

        .elementsell-sales-stats-summary__count strong {
            color: var(--es-admin-text);
            font-weight: 700;
        }

        .elementsell-sales-stats-month__title {
            margin: 0 0 14px;
            font-size: 16px;
            font-weight: 600;
            color: var(--es-admin-text);
        }

        .elementsell-sales-stats-month__total {
            font-weight: 600;
            color: var(--es-admin-muted);
        }

        .elementsell-sales-stats-table__number {
            text-align: right;
            white-space: nowrap;
            width: 140px;
        }

        .elementsell-sales-stats-table th.elementsell-sales-stats-table__number {
            text-align: right;
        }

        .elementsell-sales-stats-month + .elementsell-sales-stats-month {
            margin-top: 20px;
        }

        .elementsell-sales-stats-products-total {
            margin-top: 24px;
        }

        .elementsell-admin table {
            margin-top: 0;
            font-size: 14px;
        }

        .elementsell-admin .status-paid {
            color: #1e8f4c;
            font-size: 16px;
            font-weight: 700;
        }

        .elementsell-admin .status-not-paid {
            color: #d63638;
            font-size: 16px;
            font-weight: 700;
        }

        .elementsell-admin .status-text {
            font-weight: 600;
            color: var(--es-admin-muted);
            font-size: 13px;
        }

        .elementsell-admin .amount {
            white-space: nowrap;
            font-weight: 600;
        }

        .elementsell-admin .delete-link {
            color: #b32d2e;
            text-decoration: none;
            font-weight: 600;
        }

        .elementsell-admin .delete-link:hover {
            color: #d63638;
            text-decoration: underline;
        }

        .elementsell-bulk-form {
            margin-top: 4px;
        }

        .elementsell-bulk-header-actions {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 4px;
            width: auto;
            max-width: 100%;
            white-space: nowrap;
        }

        .elementsell-bulk-delete-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
            padding: 0 7px;
            border: 1px solid #c62828;
            border-radius: 5px;
            background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            line-height: 1.3;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(198, 40, 40, 0.2);
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            white-space: nowrap;
        }

        .elementsell-bulk-delete-btn:hover:not(:disabled),
        .elementsell-bulk-delete-btn:focus:not(:disabled) {
            border-color: #b71c1c;
            background: linear-gradient(180deg, #ef5350 0%, #d32f2f 100%);
            color: #fff;
            box-shadow: 0 2px 8px rgba(198, 40, 40, 0.24);
        }

        .elementsell-bulk-delete-btn:disabled {
            border-color: #dcdcde;
            background: #f0f0f1;
            color: #a7aaad;
            cursor: not-allowed;
            box-shadow: none;
        }

        .elementsell-bulk-table tbody tr.elementsell-order-row:nth-child(4n+1) {
            background: #fff;
        }

        .elementsell-bulk-table tbody tr.elementsell-order-row:nth-child(4n+1) + tr.elementsell-order-detail-row td,
        .elementsell-bulk-table tbody tr.elementsell-order-row:nth-child(4n+3) {
            background: #f8fafc;
        }

        .elementsell-bulk-table tbody tr.elementsell-order-row:nth-child(4n+3) + tr.elementsell-order-detail-row td {
            background: #f3f6fa;
        }

        .elementsell-bulk-checkbox-col {
            width: 1%;
            white-space: nowrap;
            padding-left: 6px !important;
            padding-right: 6px !important;
            text-align: center;
            vertical-align: middle;
        }

        .elementsell-bulk-table thead th.elementsell-bulk-checkbox-col {
            width: 1%;
            min-width: 0;
            max-width: 88px;
            padding: 4px 6px !important;
            text-align: right;
            background: #eef2f7;
        }

        .elementsell-bulk-table tbody td.elementsell-bulk-checkbox-col {
            width: 1%;
            min-width: 28px;
            max-width: 32px;
            padding: 4px 4px !important;
        }

        .elementsell-bulk-checkbox-label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            margin: 0;
            cursor: pointer;
        }

        .elementsell-bulk-checkbox-label--header {
            width: 24px;
            height: 24px;
        }

        .elementsell-bulk-checkbox-input {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            margin: 0;
            border: 2px solid #c3c4c7;
            border-radius: 5px;
            background: #fff;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }

        .elementsell-bulk-checkbox-label--header .elementsell-bulk-checkbox-input {
            width: 20px;
            height: 20px;
        }

        .elementsell-bulk-checkbox-input:hover {
            border-color: var(--es-admin-accent);
        }

        .elementsell-bulk-checkbox-input:focus {
            outline: none;
            border-color: var(--es-admin-accent);
            box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
        }

        .elementsell-bulk-checkbox-input:checked {
            border-color: var(--es-admin-accent);
            background-color: var(--es-admin-accent);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 12px 12px;
        }

        .elementsell-bulk-checkbox-input:indeterminate {
            border-color: var(--es-admin-accent);
            background-color: var(--es-admin-accent);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8h8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 12px 12px;
        }

        .elementsell-bulk-checkbox-placeholder {
            display: inline-block;
            width: 18px;
            height: 18px;
            border-radius: 5px;
            background: #f0f0f1;
            opacity: 0.55;
        }

        .elementsell-bulk-form .elementsell-table-scroll {
            margin-top: 0;
        }

        .elementsell-table-scroll {
            max-height: 520px;
            overflow: auto;
            border: 1px solid var(--es-admin-border);
            border-radius: var(--es-admin-radius);
            background: var(--es-admin-card);
            box-shadow: var(--es-admin-shadow);
            margin-top: 16px;
        }

        .elementsell-table-scroll--compact {
            max-height: 240px;
        }

        .elementsell-table-scroll table {
            margin-top: 0;
            border: none;
            border-radius: var(--es-admin-radius);
        }

        .elementsell-table-scroll thead th {
            position: sticky;
            top: 0;
            background: #f6f7f7;
            z-index: 10;
            border-bottom: 1px solid var(--es-admin-border);
            font-weight: 600;
        }

        .elementsell-orders-table {
            min-width: 1200px;
        }

        .elementsell-orders-table .elementsell-order-date-cell {
            white-space: nowrap;
        }

        .elementsell-orders-table .elementsell-order-method-cell {
            width: 1%;
            white-space: nowrap;
            max-width: 72px;
            padding-left: 6px;
            padding-right: 6px;
        }

        .elementsell-orders-table .elementsell-order-paid-cell {
            width: 1%;
            white-space: nowrap;
            padding-left: 4px;
            padding-right: 4px;
            text-align: center;
        }

        .elementsell-orders-table th.elementsell-order-paid-cell {
            font-size: 12px;
            line-height: 1.2;
            max-width: 4.5em;
            white-space: normal;
        }

        .elementsell-orders-table .elementsell-order-status-cell {
            width: 1%;
            white-space: nowrap;
            padding-left: 6px;
            padding-right: 6px;
            text-align: center;
        }

        .elementsell-orders-table .elementsell-order-product-cell {
            max-width: 160px;
            width: 160px;
            white-space: normal;
            line-height: 1.35;
            word-break: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .elementsell-orders-table .elementsell-order-detail-cell {
            width: 1%;
            white-space: nowrap;
            padding-left: 6px;
            padding-right: 6px;
            text-align: center;
        }

        .elementsell-orders-table .elementsell-order-detail-cell .button {
            padding: 0 8px;
            min-height: 26px;
            line-height: 24px;
        }

        .elementsell-order-detail-row td {
            background: #f8fafc;
            padding-top: 0;
            border-top: none;
        }

        .elementsell-order-detail-panel {
            margin: 0 0 12px;
            padding: 16px 18px;
            border: 1px solid #dbe4f0;
            border-radius: 10px;
            background: #fff;
        }

        .elementsell-order-detail-item dd a {
            font-weight: 600;
            text-decoration: none;
        }

        .elementsell-order-detail-item dd a:hover {
            text-decoration: underline;
        }

        .elementsell-order-detail-title {
            margin: 0 0 12px;
            font-size: 13px;
            font-weight: 700;
            color: #1d2327;
        }

        .elementsell-order-detail-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px 20px;
            margin: 0;
        }

        .elementsell-order-detail-item {
            margin: 0;
        }

        .elementsell-order-detail-item dt {
            margin: 0 0 4px;
            font-size: 12px;
            font-weight: 600;
            color: #646970;
            text-transform: none;
        }

        .elementsell-order-detail-item dd {
            margin: 0;
            font-size: 14px;
            line-height: 1.45;
            color: #1d2327;
            word-break: break-word;
        }

        .elementsell-orders-table .elementsell-order-detail-cell,
        .elementsell-orders-table th.elementsell-order-detail-cell {
            position: sticky;
            right: 0;
            min-width: 64px;
            background: #fff;
            z-index: 11;
            box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.08);
        }

        .elementsell-orders-table thead th.elementsell-order-detail-cell {
            background: #f6f7f7;
            z-index: 13;
        }

        .elementsell-reminder-actions {
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: stretch;
        }

        .elementsell-reminder-actions .button {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

        .elementsell-reminder-actions form {
            margin: 0;
        }

        .elementsell-demo-badge {
            display: inline-block;
            margin-left: 4px;
            padding: 1px 6px;
            border-radius: 4px;
            background: #fff3cd;
            color: #856404;
            font-size: 11px;
            font-weight: 700;
            vertical-align: middle;
        }

        .elementsell-table-scroll tbody tr:hover {
            background: #f9fafb;
        }

        .elementsell-admin-empty {
            margin: 0;
            padding: 18px 4px;
            color: var(--es-admin-muted);
        }

        .elementsell-billing-card {
            margin-top: 24px;
            max-width: 640px;
            padding: 22px 24px;
            border: 1px solid var(--es-admin-border);
            border-radius: var(--es-admin-radius);
            background: var(--es-admin-card);
            box-shadow: var(--es-admin-shadow);
        }

        .elementsell-billing-card h2 {
            margin: 0 0 14px;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .elementsell-billing-alert {
            margin: 0 0 14px;
            padding: 12px 14px;
            border-radius: 10px;
            line-height: 1.5;
        }

        .elementsell-billing-alert--error {
            background: #fcf0f1;
            border: 1px solid #f1aeb5;
            color: #8a1f2d;
        }

        .elementsell-billing-alert--warning {
            background: #fff8e5;
            border: 1px solid #f0d58b;
            color: #6b4f00;
        }

        .elementsell-billing-success {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0;
            color: #1e602f;
        }

        .elementsell-billing-success .dashicons {
            color: #1e602f;
        }

        .elementsell-billing-note {
            margin: 0 0 14px;
            color: var(--es-admin-muted);
            line-height: 1.55;
        }

        .elementsell-billing-note--warning {
            color: #8a5b00;
        }

        .elementsell-billing-button {
            height: auto !important;
            padding: 10px 18px !important;
            border-radius: 8px !important;
        }

        @media (max-width: 960px) {
            .elementsell-admin-stats__layout {
                flex-direction: column;
            }

            .elementsell-admin-stats__metrics {
                flex: 1 1 auto;
            }

            .elementsell-orders-table .elementsell-order-product-cell {
                max-width: 150px;
                width: 150px;
            }
        }
    </style>
    <?php
}
