.tesserina-tab-nav {
    margin: 16px 0 0;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #c3c4c7;
    flex-wrap: wrap;
}

.tesserina-tab-nav a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #1d2327;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    background: #f0f0f1;
    border-radius: 3px 3px 0 0;
}

.tesserina-tab-nav a.active {
    background: #fff;
    border-color: #c3c4c7;
    color: #135e96;
    font-weight: 600;
}

.tesserina-tab-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 24px;
    display: none;
}

.tesserina-tab-panel table {
    width: 100%;
}

.tesserina-shop-connected {
    background: #f0f6fc;
    border: 1px solid #72aee6;
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tesserina-shop-connected .dashicons {
    color: #2271b1;
    font-size: 24px;
}

.tesserina-logo-preview {
    max-width: 160px;
    max-height: 80px;
    margin-top: 8px;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tesserina-logo-group {
    margin-bottom: 20px;
}

.tesserina-logo-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.tesserina-use-branding-notice,
.tesserina-warning-box,
.tsr-note {
    background: #fff8e5;
    border-left: 4px solid #f0b849;
    padding: 10px 14px;
    font-size: 13px;
}

.tesserina-use-branding-notice {
    margin-top: 8px;
}

.tesserina-warning-box {
    margin-bottom: 16px;
}

.tesserina-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin-top: 16px;
}

@media (max-width: 780px) {
    .tesserina-promo-grid {
        grid-template-columns: 1fr;
    }
}

.tesserina-promo-box {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
}

.tesserina-promo-box h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

#tesserina-promo-message {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.tesserina-char-count {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.tesserina-char-count.over {
    color: #d63638;
    font-weight: 600;
}

.tesserina-customer-list {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
}

.tesserina-customer-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
}

.tesserina-customer-list label:last-child {
    border-bottom: none;
}

.tesserina-customer-list label:hover {
    background: #f6f7f7;
}

.tesserina-customer-list .customer-meta {
    color: #777;
    font-size: 12px;
}

.tesserina-select-all-row {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}

.tesserina-promo-submit {
    margin-top: 20px;
}

.tsr-guide {
    max-width: 860px;
    margin-top: 24px;
}

.tsr-guide h2 {
    font-size: 17px;
    margin: 32px 0 8px;
    border-bottom: 2px solid #38b695;
    padding-bottom: 6px;
    color: #1d2327;
}

.tsr-guide h2:first-of-type {
    margin-top: 4px;
}

.tsr-guide h3 {
    font-size: 14px;
    margin: 20px 0 6px;
    color: #1d2327;
}

.tsr-step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.tsr-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #38b695;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.tsr-step-body {
    flex: 1;
}

.tsr-step-body p {
    margin: 4px 0 0;
    color: #3c434a;
    font-size: 13px;
}

.tsr-step-body strong {
    font-size: 13px;
}

.tsr-note,
.tsr-tip {
    margin: 8px 0;
    border-radius: 0 3px 3px 0;
}

.tsr-tip {
    background: #edf7f4;
    border-left: 4px solid #38b695;
    padding: 8px 12px;
    font-size: 13px;
}

.tsr-tag {
    display: inline-block;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: monospace;
}

.tsr-badge {
    display: inline-block;
    background: #dff0d8;
    color: #3c763d;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
}

.tsr-section-intro {
    color: #555;
    font-size: 14px;
    margin: 0 0 16px;
}

.tsr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 10px 0;
}

.tsr-table th {
    background: #f6f7f7;
    text-align: left;
    padding: 7px 10px;
    border: 1px solid #dcdcde;
}

.tsr-table td {
    padding: 7px 10px;
    border: 1px solid #dcdcde;
    vertical-align: top;
}

.tsr-table tr:nth-child(even) td {
    background: #fafafa;
}

.tsr-img-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
    align-items: flex-start;
}

.tsr-img-card {
    text-align: center;
}

.tsr-img-card img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    max-height: 320px;
    width: auto;
}

.tsr-img-card span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.tsr-img-arrow {
    align-self: center;
    font-size: 22px;
    color: #38b695;
    flex-shrink: 0;
}

.tsr-img-single img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    max-height: 400px;
    width: auto;
    margin: 14px 0;
}

.tsr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tsr-kpi-box {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px 12px 12px;
    text-align: center;
}

.tsr-kpi-box .kpi-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.tsr-kpi-box .kpi-val {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.1;
}

.tsr-kpi-box .kpi-lbl {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
}

.tsr-kpi-box.kpi-primary {
    border-color: #38b695;
    background: #edf7f4;
}

.tsr-kpi-box.kpi-primary .kpi-val {
    color: #38b695;
}

.tsr-bar-chart-wrap {
    margin-bottom: 24px;
}

.tsr-bar-chart-wrap h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.tsr-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    padding-bottom: 22px;
    overflow-x: auto;
}

.tsr-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 16px;
    flex: 1;
    height: 100%;
    position: relative;
}

.tsr-bar {
    width: 100%;
    min-height: 3px;
    background: #38b695;
    border-radius: 3px 3px 0 0;
}

.tsr-bar--scans {
    background: #1d2327;
}

.tsr-bar-lbl {
    position: absolute;
    bottom: -20px;
    font-size: 8px;
    color: #999;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: top left;
}

.tsr-no-data {
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
