.gd-sr-wrap {
    max-width: 1320px;
}

.gd-sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.gd-sr-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.gd-sr-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.gd-sr-input {
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
}

.gd-sr-textarea {
    margin-bottom: 10px;
}

.gd-sr-test-form {
    margin-top: 10px;
}

.gd-sr-btn-main {
    background: #108440 !important;
    border-color: #108440 !important;
}

.gd-sr-btn-main:hover,
.gd-sr-btn-main:focus {
    background: #0d7036 !important;
    border-color: #0d7036 !important;
}

.gd-sr-btn-secondary {
    border-color: #ff8e00 !important;
    color: #ff8e00 !important;
}

.gd-sr-btn-secondary:hover,
.gd-sr-btn-secondary:focus {
    background: #ff8e00 !important;
    color: #fff !important;
}

.gd-sr-inline-form,
.gd-sr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-sr-favicon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    min-width: 0;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.gd-sr-frontend-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.gd-sr-frontend-wrapper.gd-sr-table-block {
    margin: 0;
}

.gd-sr-mobile-list {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.gd-sr-mobile-card {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: #fff;
}

.gd-sr-mobile-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.gd-sr-mobile-card__rank {
    flex-shrink: 0;
}

.gd-sr-mobile-card__shop {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.gd-sr-mobile-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin: 0;
}

.gd-sr-mobile-card__metric {
    margin: 0;
    min-width: 0;
}

.gd-sr-mobile-card__metric dt {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7785;
}

.gd-sr-mobile-card__metric dd {
    margin: 0;
    font-size: 14px;
}

.gd-sr-mobile-card__more {
    margin-top: 10px;
}

.gd-sr-mobile-card__more summary {
    font-size: 13px;
    font-weight: 600;
    color: #108440;
    cursor: pointer;
    list-style: none;
}

.gd-sr-mobile-card__more summary::-webkit-details-marker {
    display: none;
}

.gd-sr-mobile-card__more[open] summary {
    margin-bottom: 10px;
}

.gd-sr-mobile-card__metrics--more {
    grid-template-columns: 1fr;
}

.gd-sr-frontend-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid #ebeff2;
    border-radius: 12px;
    overflow: hidden;
}

.gd-sr-frontend-table th,
.gd-sr-frontend-table td {
    border-bottom: 1px solid #ebeff2;
    padding: 12px 14px;
    text-align: left;
}

.gd-sr-frontend-card .gd-sr-frontend-table th,
.gd-sr-frontend-card .gd-sr-frontend-table td {
    padding: 9px 10px;
}

.gd-sr-frontend-table tbody tr:hover {
    background: #fafcfa;
}

.gd-sr-frontend-card .gd-sr-frontend-table tbody tr:last-child td {
    padding-bottom: 8px;
}

.gd-sr-store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #121a22;
    text-decoration: none;
    font-weight: 600;
}

.gd-sr-store-link:hover {
    color: #108440;
}

.gd-sr-frontend-card .gd-sr-store-link {
    color: #d97706;
}

.gd-sr-frontend-card .gd-sr-store-link:hover {
    color: #b45309;
}

.gd-sr-frontend-card .gd-sr-store-link .gd-sr-favicon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    min-width: 0;
    flex-shrink: 0;
    object-fit: contain;
}

.gd-sr-frontend-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px 18px 0;
    background: #fff;
    overflow: visible;
}

.gd-sr-table-controls,
.gd-sr-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gd-sr-report-intro {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eeea;
}

.gd-sr-report-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #1d2730;
    font-weight: 700;
}

.gd-sr-report-meta {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #4f5d69;
}

.gd-sr-report-legend {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7785;
}

.gd-sr-trend-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gd-sr-trend-filter {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #d8e3dc;
    border-radius: 999px;
    background: #fff;
    color: #4f5d69;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gd-sr-trend-filter:hover {
    border-color: #108440;
    color: #108440;
}

.gd-sr-trend-filter.is-active {
    border-color: #108440;
    background: #108440;
    color: #fff;
}

.gd-sr-trend-filter:focus-visible {
    outline: 2px solid #108440;
    outline-offset: 2px;
}

.gd-sr-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gd-sr-highlight-card {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbf9 0%, #f3f7f5 100%);
}

.gd-sr-highlight-card__title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #108440;
}

.gd-sr-highlight-card__shop {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.gd-sr-highlight-card__shop a {
    color: #d97706;
    text-decoration: none;
}

.gd-sr-highlight-card__shop a:hover {
    color: #b45309;
    text-decoration: underline;
}

.gd-sr-highlight-card__value {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1d2730;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.gd-sr-highlight-card .gd-sr-metric-inline-yoy {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.gd-sr-highlight-card__value > .gd-sr-metric-inline-yoy {
    margin-top: 0;
    font-size: inherit;
    font-weight: inherit;
}

.gd-sr-table-controls {
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gd-sr-yoy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f5d69;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.gd-sr-frontend-card .gd-sr-yoy-toggle input {
    margin: 0;
    accent-color: #108440;
}

.gd-sr-frontend-card .gd-sr-table-after {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 -18px 0;
    padding: 12px 18px 16px;
    border-top: 1px solid #e5ebe7;
    background: #f9faf9;
}

.gd-sr-sync-meta {
    margin: 0;
    font-size: 13px;
    color: #5b6773;
    line-height: 1.4;
    flex: 1 1 12rem;
}

.gd-sr-btn-report-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    background: #ff8e00 !important;
    border: 1px solid #e57f00;
    transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.gd-sr-btn-report-shop:hover,
.gd-sr-btn-report-shop:focus {
    background: #e57f00 !important;
    border-color: #cc7200;
    color: #fff !important;
    filter: brightness(1.02);
}

.gd-sr-table-footer {
    margin: 14px -18px 0;
    padding: 12px 18px 14px;
    border-top: 1px solid #e5ebe7;
    background: linear-gradient(to bottom, #fbfdfc, #f5f8f6);
    align-items: center;
}

.gd-sr-table-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f5d69;
    font-size: 13px;
}

.gd-sr-frontend-card .gd-sr-table-controls label {
    font-size: 12px;
    gap: 5px;
}

.gd-sr-frontend-card .gd-sr-page-size,
.gd-sr-frontend-card .gd-sr-search-input {
    border: 1px solid #d0d6dc !important;
    border-radius: 6px !important;
    min-height: 28px !important;
    padding: 3px 9px !important;
    background: #fff !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.gd-sr-frontend-card .gd-sr-search-input {
    min-width: 180px;
}

.gd-sr-frontend-table thead th {
    background: #108440;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    padding: 12px 26px 12px 10px;
    line-height: 1.22;
}

.gd-sr-frontend-table thead th .gd-sr-th-inner {
    display: inline-block;
    max-width: 9.5rem;
    text-align: center;
}

.gd-sr-frontend-table thead th:nth-child(2) {
    text-align: left;
    padding-left: 12px;
}

.gd-sr-frontend-table thead th:nth-child(2) .gd-sr-th-inner {
    text-align: left;
    max-width: none;
}

.gd-sr-frontend-table thead th:first-child {
    padding-right: 10px;
}

.gd-sr-frontend-table thead th .gd-sr-th-l1,
.gd-sr-frontend-table thead th .gd-sr-th-l2 {
    display: block;
}

.gd-sr-frontend-table thead th .gd-sr-th-l2 {
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 3px;
    opacity: 0.95;
}

.gd-sr-th-with-tip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.gd-sr-th-info {
    font-size: 0.62em;
    font-weight: 700;
    color: #108440;
    margin-left: 1px;
    vertical-align: super;
    line-height: 0;
    text-transform: none;
    letter-spacing: 0;
}

.gd-sr-th-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1d2730;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.gd-sr-th-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1d2730;
}

.gd-sr-th-with-tip:hover .gd-sr-th-tip,
.gd-sr-th-with-tip:focus-within .gd-sr-th-tip {
    opacity: 1;
    visibility: visible;
}

.gd-sr-frontend-table .gd-sr-metric-td {
    text-align: center;
    vertical-align: middle;
}

.gd-sr-frontend-table .gd-sr-rank-td {
    text-align: center;
    vertical-align: middle;
    min-width: 86px;
}

.gd-sr-sortable {
    cursor: pointer;
    position: relative;
    padding-right: 26px !important;
}

.gd-sr-sortable::after {
    content: "↕";
    opacity: 0.6;
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -0.55em;
    line-height: 1;
    font-size: 11px;
}

.gd-sr-sortable.is-sorted-asc::after {
    content: "↑";
    opacity: 1;
}

.gd-sr-sortable.is-sorted-desc::after {
    content: "↓";
    opacity: 1;
}

.gd-sr-metric {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.gd-sr-metric-main {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gd-sr-metric-inline-yoy {
    display: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gd-sr-metric-inline-yoy.is-always-visible,
.gd-sr-frontend-card.is-yoy-visible .gd-sr-metric-inline-yoy {
    display: block;
}

.gd-sr-metric-inline-yoy--up {
    color: #1a9f5c;
}

.gd-sr-metric-inline-yoy--down {
    color: #c9372c;
}

.gd-sr-metric-inline-yoy--flat {
    color: #8c959f;
}

.gd-sr-metric-current {
    font-weight: 700;
    color: #1d2730;
    line-height: 1.2;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gd-sr-metric-trend-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

/* Span zamiast button — unikamy globalnych styli Elementor / motywu na przyciskach */
.gd-sr-frontend-card .gd-sr-metric-arrow {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: help;
    vertical-align: baseline;
}

.gd-sr-frontend-card .gd-sr-metric-arrow:focus-visible {
    outline: 2px solid #108440;
    outline-offset: 2px;
    border-radius: 2px;
}

.gd-sr-metric-arrow--up {
    color: #1a9f5c !important;
}

.gd-sr-metric-arrow--down {
    color: #c9372c !important;
}

.gd-sr-metric-arrow--flat {
    color: #8c959f !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    cursor: help;
}

.gd-sr-metric-tip {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: 11rem;
    max-width: 16rem;
    padding: 9px 11px;
    border-radius: 8px;
    background: #1d2730;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

.gd-sr-rank-td .gd-sr-metric-tip {
    left: 0;
    transform: translateX(0) translateY(4px);
}

.gd-sr-frontend-table tbody tr:first-child .gd-sr-metric-tip {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.gd-sr-frontend-table tbody tr:first-child .gd-sr-rank-td .gd-sr-metric-tip {
    transform: translateX(0) translateY(-4px);
}

.gd-sr-metric-tip-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 5px;
}

.gd-sr-metric-tip-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.gd-sr-metric-tip-line {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .gd-sr-metric-trend-wrap:hover .gd-sr-metric-tip,
    .gd-sr-metric-trend-wrap:focus-within .gd-sr-metric-tip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: none;
    }

    .gd-sr-rank-td .gd-sr-metric-trend-wrap:hover .gd-sr-metric-tip,
    .gd-sr-rank-td .gd-sr-metric-trend-wrap:focus-within .gd-sr-metric-tip {
        transform: translateX(0) translateY(0);
    }

    .gd-sr-frontend-table tbody tr:first-child .gd-sr-metric-trend-wrap:hover .gd-sr-metric-tip,
    .gd-sr-frontend-table tbody tr:first-child .gd-sr-metric-trend-wrap:focus-within .gd-sr-metric-tip {
        transform: translateX(-50%) translateY(0);
    }

    .gd-sr-frontend-table tbody tr:first-child .gd-sr-rank-td .gd-sr-metric-trend-wrap:hover .gd-sr-metric-tip,
    .gd-sr-frontend-table tbody tr:first-child .gd-sr-rank-td .gd-sr-metric-trend-wrap:focus-within .gd-sr-metric-tip {
        transform: translateX(0) translateY(0);
    }
}

@media (hover: none), (max-width: 782px) {
    .gd-sr-frontend-card .gd-sr-metric-arrow {
        cursor: pointer;
    }

    .gd-sr-metric-trend-wrap.is-open .gd-sr-metric-tip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .gd-sr-rank-td .gd-sr-metric-trend-wrap.is-open .gd-sr-metric-tip {
        transform: translateX(0) translateY(0);
    }

    .gd-sr-frontend-table tbody tr:first-child .gd-sr-metric-trend-wrap.is-open .gd-sr-metric-tip {
        transform: translateX(-50%) translateY(0);
    }

    .gd-sr-frontend-table tbody tr:first-child .gd-sr-rank-td .gd-sr-metric-trend-wrap.is-open .gd-sr-metric-tip {
        transform: translateX(0) translateY(0);
    }
}

.gd-sr-table-info {
    margin: 0 !important;
    padding: 0 !important;
    color: #5b6773;
    font-size: 13px;
    line-height: 1.3;
}

.gd-sr-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
}

.gd-sr-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #8c959f;
    user-select: none;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn {
    box-sizing: border-box;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 32px;
    min-height: 32px;
    height: auto !important;
    padding: 6px 11px !important;
    border: 1px solid #e0e5ea !important;
    background: #fff !important;
    color: #2c3338 !important;
    border-radius: 999px;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn--next {
    border-radius: 8px;
    padding: 6px 12px !important;
    min-width: auto;
    font-size: 12px !important;
    letter-spacing: 0.02em;
    color: #5b6773 !important;
    font-weight: 600 !important;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn:hover:not(.is-active) {
    border-color: #108440;
    background: #f4faf6 !important;
    color: #108440 !important;
    box-shadow: none;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn:focus {
    outline: none;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn:focus-visible {
    outline: 2px solid #108440;
    outline-offset: 2px;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn:active:not(.is-active) {
    background: #eaf5ee !important;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn.is-active {
    background: #108440 !important;
    border-color: #108440 !important;
    color: #fff !important;
    box-shadow: none;
    cursor: default;
}

.gd-sr-frontend-card .gd-sr-pagination .gd-sr-page-btn.is-active:hover {
    background: #0d7036 !important;
    border-color: #0d7036 !important;
    color: #fff !important;
}

/* --- Panel admina: lista sklepow (nowy uklad) --- */
.gd-sr-inline-code {
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f0f2f4;
    font-size: 12px;
}

.gd-sr-card--list-detail {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #dde3e8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gd-sr-list-head {
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, #f6faf7 0%, #ffffff 55%);
    border-bottom: 1px solid #e8eef0;
}

.gd-sr-list-head__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.gd-sr-list-head__meta {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.gd-sr-subcard {
    margin: 0;
    padding: 18px 22px 20px;
    border-bottom: 1px solid #eef2f5;
    background: #fbfcfd;
}

.gd-sr-subcard__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.gd-sr-subcard__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
    max-width: 52rem;
    line-height: 1.45;
}

.gd-sr-textarea--bulk {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    border-color: #c9d2dc !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.gd-sr-bulk-form .gd-sr-btn-main {
    margin-top: 10px;
}

.gd-sr-shops-panel {
    padding: 18px 22px 22px;
}

.gd-sr-shops-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 14px;
}

.gd-sr-shops-toolbar__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.gd-sr-shops-toolbar__hint {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.gd-sr-admin-search-wrap {
    margin: 0;
}

.gd-sr-admin-search-wrap--toolbar {
    flex: 1 1 240px;
    max-width: 360px;
}

.gd-sr-admin-search {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #c9d2dc;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: none;
    background: #fff;
}

.gd-sr-admin-search:focus {
    border-color: #108440;
    box-shadow: 0 0 0 1px rgba(16, 132, 64, 0.15);
    outline: none;
}

.gd-sr-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e9ed;
    background: #fff;
}

.gd-sr-items-table {
    margin: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}

.gd-sr-items-table thead th {
    font-weight: 600;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #475569;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef0;
    vertical-align: bottom;
    white-space: nowrap;
}

.gd-sr-items-table thead th.gd-sr-admin-sortable {
    cursor: pointer;
    position: relative;
    padding-right: 26px;
}

.gd-sr-items-table thead th.gd-sr-admin-sortable::after {
    content: "↕";
    opacity: 0.45;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-size: 11px;
    color: #64748b;
}

.gd-sr-items-table thead th.gd-sr-admin-sortable.is-sorted-asc::after {
    content: "↑";
    opacity: 1;
    color: #108440;
}

.gd-sr-items-table thead th.gd-sr-admin-sortable.is-sorted-desc::after {
    content: "↓";
    opacity: 1;
    color: #108440;
}

.gd-sr-items-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f5;
    font-size: 13px;
}

.gd-sr-items-table tbody tr:last-child td {
    border-bottom: none;
}

.gd-sr-items-table tbody tr:hover td {
    background: #fafefd;
}

.gd-sr-items-empty td {
    padding: 28px 16px !important;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.gd-sr-col-shop {
    min-width: 220px;
}

.gd-sr-shop-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gd-sr-shop-cell__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gd-sr-shop-cell__name {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
}

.gd-sr-shop-cell__url {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    word-break: break-word;
}

.gd-sr-shop-cell__url:hover,
.gd-sr-shop-cell__url:focus {
    color: #108440;
    text-decoration: underline;
}

.gd-sr-num-cell {
    text-align: center;
}

.gd-sr-sync-cell {
    text-align: center;
}

.gd-sr-col-actions {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.gd-sr-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-sr-action-form {
    display: inline-block;
    margin: 0;
}

.gd-sr-icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #d5dde4 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.gd-sr-icon-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    color: #334155;
}

.gd-sr-icon-btn:hover,
.gd-sr-icon-btn:focus {
    border-color: #108440 !important;
    background: #f4faf6 !important;
}

.gd-sr-icon-btn--senuto .dashicons {
    color: #b45309;
}

.gd-sr-icon-btn--senuto:hover .dashicons,
.gd-sr-icon-btn--senuto:focus .dashicons {
    color: #92400e;
}

.gd-sr-icon-btn--danger {
    border-color: #f1d4d4 !important;
}

.gd-sr-icon-btn--danger .dashicons {
    color: #b91c1c;
}

.gd-sr-icon-btn--danger:hover,
.gd-sr-icon-btn--danger:focus {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.gd-sr-favicon--admin {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    min-width: 0;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid #e5e9ed;
    padding: 5px;
    background: #fff;
    object-fit: contain;
}

.gd-sr-favicon-missing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.gd-sr-edit-forms-store {
    display: none;
}

.gd-sr-item-edit-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
}

.gd-sr-item-edit-box .gd-sr-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #334155;
}

.gd-sr-input-admin {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
}

.gd-sr-input-admin:focus {
    border-color: #108440;
    box-shadow: 0 0 0 1px rgba(16, 132, 64, 0.15);
    outline: none;
}

.gd-sr-favicon-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gd-sr-favicon-field-row .gd-sr-favicon-url-input {
    flex: 1 1 200px;
    min-width: 0;
}

.gd-sr-item-edit-box .gd-sr-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: normal;
    color: #475569;
    cursor: pointer;
}

.gd-sr-item-edit-box .gd-sr-check input {
    margin-top: 3px;
}

.gd-sr-btn-admin-save {
    align-self: flex-start;
    margin-top: 4px;
}

.gd-sr-shop-drawer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    pointer-events: none;
}

.gd-sr-shop-drawer.is-open {
    pointer-events: auto;
}

.gd-sr-shop-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gd-sr-shop-drawer.is-open .gd-sr-shop-drawer__backdrop {
    opacity: 1;
}

.gd-sr-shop-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(440px, 100vw);
    max-width: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}

.gd-sr-shop-drawer.is-open .gd-sr-shop-drawer__panel {
    transform: translateX(0);
}

.gd-sr-shop-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f5;
}

.gd-sr-shop-drawer__title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.25;
    padding-right: 8px;
}

.gd-sr-shop-drawer__close {
    flex-shrink: 0;
    padding: 4px !important;
    color: #64748b !important;
}

.gd-sr-shop-drawer__close:hover,
.gd-sr-shop-drawer__close:focus {
    color: #0f172a !important;
}

.gd-sr-shop-drawer__body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

body.gd-sr-drawer-open {
    overflow: hidden;
}

@media (max-width: 782px) {
    .gd-sr-frontend-card .gd-sr-table-block {
        display: none;
    }

    .gd-sr-frontend-card .gd-sr-mobile-list {
        display: flex;
    }

    .gd-sr-trend-filters {
        gap: 6px;
    }

    .gd-sr-trend-filter {
        padding: 6px 12px;
        font-size: 12px;
    }

    .gd-sr-shops-toolbar {
        align-items: stretch;
    }

    .gd-sr-admin-search-wrap--toolbar {
        max-width: none;
    }
}

.gd-sr-admin-metric {
    line-height: 1.25;
}

.gd-sr-admin-metric-val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.gd-sr-admin-metric-delta {
    display: block;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

.gd-sr-admin-metric-delta-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
}

.gd-sr-admin-metric-delta-line {
    display: block;
}

.gd-sr-admin-metric-delta--up {
    color: #15803d;
}

.gd-sr-admin-metric-delta--down {
    color: #b91c1c;
}

.gd-sr-admin-metric-delta--flat {
    color: #64748b;
}

.gd-sr-nowrap {
    white-space: nowrap;
    font-size: 12px;
    color: #475569;
}
