/**
 * Admin CSS styles for Add as Preferred Source
 *
 * @since      1.0.0
 *
 * @package    Add_As_Preferred_Source
 * @subpackage Add_As_Preferred_Source/admin/css
 */

/* Settings Page Layout */
.add-as-preferred-source-settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.add-as-preferred-source-settings-content {
    flex: 2;
    margin-right: 20px;
    min-width: 500px;
}

.add-as-preferred-source-preview {
    flex: 1;
    min-width: 350px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.add-as-preferred-source-sidebar {
    flex: 1;
    min-width: 250px;
}

/* Mobile Preview */
.preview-container {
    margin: 20px 0;
}

.mobile-device {
    border: 8px solid #333;
    border-radius: 20px;
    padding: 10px 5px;
    margin: 0 auto;
    max-width: 400px;
    background: #fff;
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.preferred-source-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.banner-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.google-button-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.google-button-image img {
    height: 28px;
    width: auto;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
    color: inherit;
}

/* Demo content */
.demo-content {
    padding: 60px 20px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.demo-content h3 {
    margin-top: 0;
    color: #333;
}

/* Sidebar Box */
.add-as-preferred-source-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.add-as-preferred-source-box h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.add-as-preferred-source-box ul {
    margin-left: 20px;
    list-style-type: disc;
}

/* Rating & Support Card */
.adasprso-rate-box {
    background: linear-gradient(160deg, #fffbf0 0%, #ffffff 100%);
    border-color: #f0c040;
    text-align: center;
}

.adasprso-rate-box h3 {
    border-bottom-color: #fae99a;
    color: #3d3000;
}

.adasprso-rate-stars {
    font-size: 26px;
    color: #f0c040;
    letter-spacing: 3px;
    margin-bottom: 6px;
    display: block;
}

.adasprso-rate-link {
    display: inline-block;
    background: #f0c040;
    color: #3d3000;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    margin: 10px 0 4px;
    transition: background-color 0.2s, color 0.2s;
    border: none;
}

.adasprso-rate-link:hover {
    background: #d4a800;
    color: #1a1400;
    text-decoration: none;
}

.adasprso-rate-support {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.adasprso-rate-support a {
    color: #2271b1;
    text-decoration: underline;
}

.adasprso-rate-support a:hover {
    color: #135e96;
}

@media screen and (max-width: 1100px) {
    .add-as-preferred-source-settings-wrapper {
        flex-direction: column;
    }

    .add-as-preferred-source-settings-content,
    .add-as-preferred-source-preview,
    .add-as-preferred-source-sidebar {
        min-width: 100%;
        margin-right: 0;
    }
}

/* Tabs */
.adasprso-nav-tab-wrapper {
    margin-bottom: 20px !important;
    padding-top: 10px;
}

.adasprso-new-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #1a73e8;
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 2px;
}

/* ── Implementation Method cards ─────────────────────────────────────────── */
.adasprso-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 10px 0 0;
}

@media screen and (max-width: 900px) {
    .adasprso-method-grid {
        grid-template-columns: 1fr;
    }
}

.adasprso-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.adasprso-method-card:hover {
    border-color: #2271b1;
}

.adasprso-method-card.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.adasprso-method-radio-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.adasprso-method-radio-input:focus-visible ~ .adasprso-method-card-top .adasprso-method-radio {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.adasprso-method-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.adasprso-method-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #c3c4c7;
    flex-shrink: 0;
    position: relative;
}

.adasprso-method-card.is-selected .adasprso-method-radio {
    border-color: #2271b1;
}

.adasprso-method-card.is-selected .adasprso-method-radio::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #2271b1;
}

.adasprso-method-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0b4f9e;
    border: 1px solid #bcd6fb;
    white-space: nowrap;
}

.adasprso-method-tag {
    font-size: 11px;
    color: #757575;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.adasprso-method-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1d2327;
}

.adasprso-method-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #646970;
}

.adasprso-method-panel {
    margin-top: 16px;
    border: 1px solid #dcdcde;
    border-left: 4px solid #2271b1;
    border-radius: 0 6px 6px 0;
    background: #fff;
    padding: 16px 18px;
}

.adasprso-method-field-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.adasprso-method-field-row:last-of-type {
    border-bottom: none;
}

.adasprso-method-field-row > label {
    width: 160px;
    flex-shrink: 0;
    font-weight: 600;
}

.adasprso-method-radio-inline {
    display: flex;
    gap: 16px;
    align-items: center;
}

.adasprso-method-radio-inline label {
    width: auto;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.adasprso-method-info {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f6f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    font-size: 12.5px;
    color: #646970;
}

.adasprso-standard-disabled-row td > *:not(.adasprso-standard-inactive-tag) {
    opacity: 0.5;
    pointer-events: none;
}

.adasprso-standard-inactive-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #f0f0f1;
    color: #757575;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 2px 8px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
}

/* Inline Preview */

.adasprso-inline-preview-box {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #72aee6;
    padding: 15px;
}

.adasprso-inline-preview-box h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.adasprso-inline-preview-container {
    padding: 30px !important;
}

/* Layout 2 Preview Styles */
.adasprso-inline-layout-2 {
    /* Gradient Background */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;

    /* Flex box */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
}

.adasprso-inline-text-wrapper {
    flex: 1;
    text-align: left;
}

.adasprso-inline-title-mock {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1c1e21;
    line-height: 1.4;
    margin-bottom: 4px;
}

.adasprso-inline-subtitle-mock {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #515761;
}

.mock-google-btn-wrapper img {
    height: 40px;
    width: auto;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ── Donate Box (Sidebar) ───────────────────────────────── */
.adasprso-donate-box {
    background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 100%);
    border-color: #72aee6;
    text-align: center;
}

.adasprso-donate-box h3 {
    border-bottom-color: #b8d8f8;
    color: #1a3a5c;
}

.adasprso-donate-heart {
    font-size: 28px;
    color: #e05c5c;
    margin-bottom: 6px;
    display: block;
}

.adasprso-donate-btn {
    display: inline-block;
    background: #e05c5c;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    margin: 10px 0 4px;
    transition: background-color 0.2s;
    border: none;
}

.adasprso-donate-btn:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
}

/* ── Supporters List ────────────────────────────────────── */
.adasprso-supporters {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #c2d9f0;
}

.adasprso-supporters-heading {
    font-size: 12px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 2px;
}

.adasprso-supporters-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b8faf;
    font-weight: 600;
    margin: 0 0 10px;
}

.adasprso-supporters-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.adasprso-supporter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f3fd;
    border: 1px solid #b8d8f8;
    border-radius: 20px;
    padding: 4px 12px 4px 6px;
}

.adasprso-supporter-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e05c5c, #c0392b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adasprso-supporter-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a3a5c;
}

/* ── Donate Banner (Analytics Tab) ─────────────────────── */
.aaps-donate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border: 1px solid #f5c6c6;
    border-left: 4px solid #e05c5c;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.aaps-donate-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.aaps-donate-banner-icon {
    font-size: 24px;
    color: #e05c5c;
    flex-shrink: 0;
}

.aaps-donate-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aaps-donate-banner-text strong {
    font-size: 14px;
    color: #1d2327;
}

.aaps-donate-banner-text span {
    font-size: 13px;
    color: #646970;
}

.aaps-donate-banner-btn {
    display: inline-block;
    background: #e05c5c;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.aaps-donate-banner-btn:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
}

.aaps-donate-banner--with-supporters {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.aaps-donate-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.aaps-donate-banner-supporters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #f5c6c6;
}

.aaps-donate-banner-supporters-label {
    font-size: 11px;
    font-weight: 700;
    color: #a94442;
}

.aaps-donate-banner-supporters-divider {
    color: #e09090;
    font-size: 11px;
}

.aaps-donate-banner-supporters-tagline {
    font-size: 11px;
    color: #a94442;
    font-style: italic;
}

.aaps-donate-banner-supporter-chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #f5c6c6;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #a94442;
}

/* ── Analytics Dashboard ────────────────────────────────── */
.aaps-stat-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.aaps-stat-card {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    border-top: 4px solid #ccc;
}

.aaps-stat-impressions { border-top-color: #4f86c6; }
.aaps-stat-clicks      { border-top-color: #3dbd7d; }
.aaps-stat-dismissals  { border-top-color: #f5a623; }
.aaps-stat-ctr         { border-top-color: #9b59b6; }

.aaps-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #1d2327;
}

.aaps-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart */
.aaps-chart-section {
    margin-top: 30px;
}

.aaps-chart-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #444;
}

.aaps-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.aaps-dot-impressions { background: #4f86c6; }
.aaps-dot-clicks      { background: #3dbd7d; }
.aaps-dot-dismissals  { background: #f5a623; }

.aaps-chart-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    padding: 16px 12px 0;
}

.aaps-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 180px;
    min-width: 600px;
}

.aaps-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: default;
}

.aaps-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    width: 100%;
    padding-bottom: 4px;
}

.aaps-bar {
    flex: 1;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    transition: opacity 0.15s;
}

.aaps-chart-col:hover .aaps-bar {
    opacity: 0.75;
}

.aaps-bar-impressions { background: #4f86c6; }
.aaps-bar-clicks      { background: #3dbd7d; }
.aaps-bar-dismissals  { background: #f5a623; }

.aaps-chart-label {
    font-size: 9px;
    color: #999;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
    margin-top: 6px;
    margin-bottom: 8px;
    height: 28px;
    line-height: 28px;
}

/* ── Analytics Mobile Responsive ───────────────────────────────────────── */
@media screen and (max-width: 782px) {

    /* Fix the root overflow — settings content was forcing min 500px */
    .add-as-preferred-source-settings-content {
        min-width: 0;
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }

    .add-as-preferred-source-settings-wrapper {
        flex-direction: column;
    }

    .add-as-preferred-source-preview,
    .add-as-preferred-source-sidebar {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Donate banner stacks vertically */
    .aaps-donate-banner {
        padding: 12px 14px;
    }

    .aaps-donate-banner-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .aaps-donate-banner-btn {
        align-self: flex-start;
        white-space: normal;
    }

    /* Stat cards — 2 per row */
    .aaps-stat-cards {
        gap: 10px;
    }

    .aaps-stat-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    /* Chart legend wraps */
    .aaps-chart-legend {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Chart scrolls horizontally — allow wrapper to contain it */
    .aaps-chart-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .aaps-chart {
        min-width: 480px;
    }

    .aaps-donate-banner-supporters {
        gap: 4px;
    }
}

/* ── Category tag-search widget ─────────────────────────────────────────── */
.adasprso-cat-search {
    position: relative;
    max-width: 420px;
}

.adasprso-cat-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 5px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    cursor: text;
    box-sizing: border-box;
}

.adasprso-cat-tags:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.adasprso-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2271b1;
    color: #fff;
    font-size: 12px;
    padding: 3px 6px 3px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

.adasprso-cat-tag-label {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adasprso-cat-tag-remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    cursor: pointer;
    opacity: 0.75;
    margin: 0;
    min-height: 0;
}

.adasprso-cat-tag-remove:hover {
    opacity: 1;
}

.adasprso-cat-input {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 140px;
    flex: 1;
    font-size: 13px;
    height: 24px;
    background: transparent;
}

.adasprso-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 2px 0 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}

.adasprso-cat-option {
    padding: 7px 12px;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adasprso-cat-option:hover {
    background: #f0f6fc;
    color: #2271b1;
}

.adasprso-cat-option.is-selected {
    color: #646970;
    cursor: default;
    background: none;
}

.adasprso-cat-check {
    color: #2271b1;
    font-size: 13px;
    margin-left: 6px;
}

.adasprso-cat-no-results {
    padding: 8px 12px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Custom badge preview in admin */
.adasprso-custom-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    background: #fff;
    border-radius: 3px;
    padding: 0 8px 0 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    gap: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    white-space: nowrap;
}

.adasprso-custom-badge--mock-inline {
    height: 40px;
    padding: 0 12px 0 9px;
    gap: 7px;
    border-radius: 4px;
}

.adasprso-google-g {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.adasprso-google-g svg {
    width: 14px;
    height: 14px;
    display: block;
}

.adasprso-custom-badge--mock-inline .adasprso-google-g svg {
    width: 20px;
    height: 20px;
}

.adasprso-custom-badge--dark {
    background: #202124;
}

.adasprso-custom-badge--dark .adasprso-custom-badge-text {
    color: #fff;
}

.adasprso-custom-badge-text {
    color: #444;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
}

.adasprso-custom-badge--mock-inline .adasprso-custom-badge-text {
    font-size: 13px;
}

#adasprso_custom_badge_row {
    margin-top: 8px;
}

#adasprso_badge_custom_text {
    width: 320px;
    max-width: 100%;
}

.adasprso-inline-simple-preview {
    display: inline-block;
}

.adasprso-inline-simple-preview .mock-google-btn-wrapper img {
    height: 40px;
    width: auto;
    display: block;
}

/* Strip / Pill / Link / Boxed preview styles */
.adasprso-inline-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-width: 100%;
}

.adasprso-inline-strip-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.adasprso-inline-strip-badge .adasprso-google-g svg {
    width: 20px;
    height: 20px;
}

.adasprso-inline-strip-text {
    font-size: 14px;
    line-height: 1.5;
}

.adasprso-inline-pill-wrap {
    display: flex;
    justify-content: center;
}

.adasprso-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13.5px;
    max-width: 100%;
}

.adasprso-inline-pill-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.adasprso-inline-pill-badge .adasprso-google-g svg {
    width: 16px;
    height: 16px;
}

.adasprso-inline-link {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.adasprso-inline-link-cta {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.adasprso-inline-link-badge {
    display: inline-flex;
    vertical-align: -3px;
    margin: 0 3px;
}

.adasprso-inline-link-badge .adasprso-google-g svg {
    width: 16px;
    height: 16px;
}

.adasprso-inline-boxed {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.adasprso-inline-boxed-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.adasprso-inline-boxed-icon .adasprso-google-g svg {
    width: 22px;
    height: 22px;
}

.adasprso-inline-boxed-text {
    flex: 1;
    text-align: left;
}

.adasprso-inline-boxed-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px;
}

.adasprso-inline-boxed-subtitle {
    display: block;
    font-size: 13px;
    opacity: 0.72;
}

.adasprso-inline-boxed-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #202124;
    color: #fff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.adasprso-inline-boxed-action .adasprso-google-g svg {
    width: 14px;
    height: 14px;
}
/* ── Shortcode tab: usage reference ──────────────────────────────────────── */
.adasprso-usage-box {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #1a73e8;
    padding: 15px;
}

.adasprso-usage-box h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.adasprso-usage-box h4 {
    margin: 22px 0 6px;
    font-size: 14px;
}

.adasprso-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.adasprso-usage-card {
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 14px 16px;
}

.adasprso-usage-card h4 {
    margin: 0 0 6px;
}

.adasprso-usage-card .description {
    margin-top: 0;
}

.adasprso-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
    flex-wrap: wrap;
}

.adasprso-copy-value {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
}

.adasprso-copy-button.adasprso-copied {
    border-color: #1a7f37;
    color: #1a7f37;
}

.adasprso-attribute-table {
    max-width: 860px;
    margin-top: 6px;
}

.adasprso-attribute-table th {
    font-weight: 600;
}

.adasprso-attribute-table td code {
    background: #f0f0f1;
}

.adasprso-example-list {
    max-width: 860px;
    margin: 6px 0 0;
}

.adasprso-example-list li {
    margin-bottom: 14px;
}

.adasprso-example-list .adasprso-copy-row {
    margin-bottom: 2px;
}
