.promo-shell {
    display: grid;
    gap: 18px;
}

.promo-header {
    display: block;
}

.promo-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d8e2ee;
}

.promo-title-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--waker-blue, #2563ff);
    box-shadow: 0 10px 22px rgba(37, 99, 255, 0.22);
}

.promo-title-icon svg,
.promo-header-button svg,
.promo-icon-button svg,
.promo-usage-toggle svg,
.promo-actions svg,
.promo-editor-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.promo-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
}

.promo-header-button {
    min-width: 176px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.promo-table-card {
    min-width: 0;
}

.promo-card-header {
    align-items: center;
    justify-content: space-between;
}

.promo-table-wrap {
    overflow-x: auto;
}

.promo-table {
    min-width: 860px;
}

.promo-table td,
.promo-table th {
    vertical-align: middle;
}

.promo-muted {
    display: block;
    margin-top: 4px;
    color: var(--waker-muted, #697896);
    font-size: 12px;
    line-height: 1.35;
}

.promo-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    border: 1px solid #d8e2f0;
    background: #f3f6fb;
    color: #405174;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-status--active,
.promo-status--redeemed {
    border-color: #bde7cf;
    background: #eafaf1;
    color: #177245;
}

.promo-status--scheduled {
    border-color: #bdd7ff;
    background: #edf5ff;
    color: #1e5fb8;
}

.promo-status--expired,
.promo-status--inactive,
.promo-status--maxed_out,
.promo-status--reversed {
    border-color: #eed0d0;
    background: #fff1f1;
    color: #b33333;
}

.promo-icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.promo-inline-form {
    display: inline-flex;
    margin: 0;
}

.promo-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-empty-cell {
    color: var(--waker-muted, #697896);
    text-align: center;
    padding: 24px !important;
}

.promo-notice {
    border-radius: 8px;
    border: 1px solid #c9d8f0;
    background: #f4f8ff;
    color: #1f3f77;
    padding: 12px 14px;
    font-weight: 700;
}

.promo-notice--danger {
    border-color: #f0caca;
    background: #fff2f2;
    color: #9b1c1c;
}

.promo-editor-panel {
    width: min(640px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.promo-editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: auto;
}

.promo-editor-field--wide {
    grid-column: 1 / -1;
}

body.page-promo .trips-editor-field input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #b8c8dc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0c2757;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

body.page-promo .trips-editor-field input:hover {
    border-color: #8fa8c8;
    background-color: #fbfdff;
}

body.page-promo .trips-editor-field input:focus {
    outline: none;
    border-color: #2f6df6;
    box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.16);
}

body.page-promo .promo-code-input {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0;
}

.promo-editor-switch-field {
    align-content: start;
}

.promo-editor-switch-field .wk-switch {
    margin-top: 2px;
}

.promo-editor-actions {
    grid-column: 1 / -1;
}

.promo-editor-actions button {
    min-width: 126px;
}

.promo-editor-actions .trips-editor-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 168px;
}

.promo-mobile-only {
    display: none;
}

@media (max-width: 760px) {
    .promo-usage-detail {
        padding: 12px;
    }

    .promo-mobile-only {
        display: block;
    }

    .promo-shell {
        padding: 16px;
    }

    .promo-header-actions {
        width: 100%;
    }

    .promo-header-button {
        width: 100%;
    }

    .promo-editor-form {
        grid-template-columns: 1fr;
    }
}
.promo-expand-col {
    width: 54px;
}

.promo-expand-cell {
    width: 54px;
    text-align: center;
}

.promo-usage-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d7ea;
    border-radius: 6px;
    background: #ffffff;
    color: #174ea6;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.promo-usage-toggle:hover,
.promo-usage-toggle:focus-visible {
    border-color: #8fb0ea;
    background: #f1f6ff;
    color: #0b58d8;
    outline: none;
}

.promo-usage-toggle svg {
    transition: transform 140ms ease;
}

.promo-usage-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.promo-code-row.is-expanded > td {
    background: #f8fbff;
}

.promo-usage-detail-row[hidden] {
    display: none !important;
}

.promo-usage-detail-row > td {
    padding: 0 !important;
    border-top: 0;
    background: #f8fbff;
}

.promo-usage-detail {
    padding: 14px 18px 18px 72px;
    border-top: 1px solid #e1e9f3;
}

.promo-nested-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.promo-nested-table th,
.promo-nested-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6edf6;
    text-align: left;
}

.promo-nested-table th {
    background: #eef3fa;
    color: #0b2757;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-nested-table tbody tr:last-child td {
    border-bottom: 0;
}

.promo-empty-cell--nested {
    border: 1px dashed #cbd8e9;
    border-radius: 8px;
    background: #ffffff;
}
@media (max-width: 760px) {
    body.page-promo .promo-usage-detail {
        padding: 12px;
    }
}

/* Alerts-style promo table */
body.page-promo .promo-table-card {
    overflow: hidden;
    border-color: #c9d4df;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
}

body.page-promo .promo-table-card .wk-card__body {
    padding: 0;
}

body.page-promo .promo-table-wrap {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.page-promo .promo-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: #17315f;
}

body.page-promo .promo-table thead th {
    padding: 12px 14px;
    border-bottom: 1px solid #cdd7e3;
    background: #e9eef5;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-promo .promo-table thead th + th {
    border-left: 1px solid #d7e0ea;
}

body.page-promo .promo-code-row > td {
    padding: 10px 14px;
    border-bottom: 1px solid #dce4ee;
    background: #ffffff;
    color: #17315f;
    vertical-align: middle;
}

body.page-promo .promo-code-row > td + td {
    border-left: 1px solid #edf2f7;
}

body.page-promo .promo-code-row:hover > td,
body.page-promo .promo-code-row.is-expanded > td {
    background: #f8fafc;
}

body.page-promo .promo-expand-col,
body.page-promo .promo-expand-cell {
    width: 42px;
    min-width: 42px;
}

body.page-promo .promo-expand-cell {
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}

body.page-promo .promo-usage-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border: 1px solid #cad6e3;
    border-radius: 6px;
    background: #ffffff;
    color: #17315f;
}

body.page-promo .promo-usage-toggle:hover,
body.page-promo .promo-usage-toggle:focus-visible {
    border-color: #9fb0c4;
    background: #f8fafc;
    color: #2b63e4;
}

body.page-promo .promo-usage-toggle svg {
    width: 16px;
    height: 16px;
}

body.page-promo .promo-icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
}

body.page-promo .promo-row-actions {
    gap: 6px;
}

body.page-promo .promo-status {
    min-height: 26px;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

body.page-promo .promo-muted {
    color: #61728a;
    font-weight: 600;
}

body.page-promo .promo-empty-cell {
    padding: 20px !important;
    color: #6f84a7;
}

body.page-promo .promo-usage-detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid #dce4ee;
    background: #ffffff;
}

body.page-promo .promo-usage-detail {
    padding: 0;
    border-top: 0;
    background: #ffffff;
}

body.page-promo .promo-nested-table {
    width: 100%;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
}

body.page-promo .promo-nested-table th,
body.page-promo .promo-nested-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d9e4f0;
    background: transparent;
    color: #17315f;
    text-align: left;
    vertical-align: middle;
}

body.page-promo .promo-nested-table thead th {
    padding-top: 12px;
    padding-bottom: 10px;
    color: #223652;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-promo .promo-nested-table tbody tr:last-child td {
    border-bottom: 0;
}

body.page-promo .promo-nested-table tbody tr:hover td {
    background: #f8fafc;
}

body.page-promo .promo-empty-cell--nested {
    border: 0;
    border-radius: 0;
    background: #ffffff;
    text-align: left;
}

@media (max-width: 760px) {
    body.page-promo .promo-table {
        min-width: 980px;
    }

    body.page-promo .promo-usage-detail {
        padding: 0;
    }
}

/* Promo page modern Alerts alignment */
body.page-promo #main-content {
    padding: 18px;
}

body.page-promo th,
body.page-promo td {
    border: 0;
    padding: 0;
}

body.page-promo input,
body.page-promo select,
body.page-promo button {
    font: inherit;
}

body.page-promo .promo-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.page-promo .promo-header,
body.page-promo .promo-table-card {
    border: 1px solid #c9d4df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(18, 38, 68, 0.05);
}

body.page-promo .promo-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 16px 12px;
}

body.page-promo .promo-top-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

body.page-promo .promo-top-title {
    flex: 1 1 auto;
    min-width: 0;
}

body.page-promo .promo-title-row {
    padding: 0;
    border-bottom: 0;
    gap: 10px;
}

body.page-promo .promo-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(180deg, #2d63ea 0%, #426fff 100%);
    box-shadow: 0 1px 3px rgba(32, 77, 176, 0.18);
}

body.page-promo .promo-title-icon svg {
    width: 18px;
    height: 18px;
}

body.page-promo .promo-title {
    margin: 0;
    color: #10254d;
    font-size: 30px;
    line-height: 1;
}

body.page-promo .promo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    min-width: 560px;
}

body.page-promo .promo-stat-card {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d6dee8;
    border-radius: 6px;
    background: #f6f8fb;
}

body.page-promo .promo-stat-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f7ea8;
}

body.page-promo .promo-stat-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-promo .promo-stat-card--codes .promo-stat-icon {
    color: #4b73da;
}

body.page-promo .promo-stat-card--active .promo-stat-icon {
    color: #3e9560;
}

body.page-promo .promo-stat-card--redemptions .promo-stat-icon {
    color: #6c7fa3;
}

body.page-promo .promo-stat-card--credits .promo-stat-icon {
    color: #bf7c18;
}

body.page-promo .promo-stat-label {
    display: block;
    margin-bottom: 4px;
    color: #7085a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

body.page-promo .promo-stat-value {
    display: block;
    color: #10254d;
    font-size: 18px;
    line-height: 1.1;
}

body.page-promo .promo-header-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d9e2ec;
}

body.page-promo .promo-header-button {
    height: 44px;
    min-height: 44px;
    min-width: 0;
    padding: 0 15px;
    border: 1px solid #1d56dc;
    border-radius: 6px;
    background: #1462ff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
}

body.page-promo .promo-header-button:hover,
body.page-promo .promo-header-button:focus-visible {
    border-color: #164bc4;
    background: #1156e4;
    color: #ffffff;
}

body.page-promo .promo-table-card {
    overflow: hidden;
}

body.page-promo .promo-table-card > .wk-card__header {
    display: none;
}

body.page-promo .promo-table-card .wk-card__body {
    padding: 0;
}

body.page-promo .promo-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
}

body.page-promo .promo-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: #17315f;
    font-size: 14px;
}

body.page-promo .promo-table thead th {
    padding: 12px 14px;
    border-bottom: 1px solid #cdd7e3;
    background: #e9eef5;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-promo .promo-code-row > td {
    padding: 10px 14px;
    border-bottom: 1px solid #dce4ee;
    background: #ffffff;
    color: #17315f;
}

body.page-promo .promo-code-row > td + td,
body.page-promo .promo-table thead th + th {
    border-left: 1px solid #edf2f7;
}

body.page-promo .promo-code-row:hover > td,
body.page-promo .promo-code-row.is-expanded > td {
    background: #f8fafc;
}

body.page-promo .promo-muted {
    color: #61728a;
    font-size: 12px;
    font-weight: 600;
}

body.page-promo .promo-status {
    min-height: 26px;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

body.page-promo .promo-usage-detail-row > td,
body.page-promo .promo-usage-detail,
body.page-promo .promo-nested-table {
    background: #ffffff;
}

body.page-promo .promo-usage-detail-row > td {
    padding: 0 !important;
    border-bottom: 1px solid #dce4ee;
}

body.page-promo .promo-usage-detail {
    padding: 0;
    border-top: 0;
}

body.page-promo .promo-nested-table {
    width: 100%;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

body.page-promo .promo-nested-table th,
body.page-promo .promo-nested-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d9e4f0;
    background: transparent;
    color: #17315f;
    text-align: left;
    vertical-align: middle;
}

body.page-promo .promo-nested-table thead th {
    color: #223652;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-promo .promo-nested-table tbody tr:last-child td {
    border-bottom: 0;
}

body.page-promo .promo-empty-cell--nested {
    border: 0;
    border-radius: 0;
    text-align: left;
}

@media (max-width: 1220px) {
    body.page-promo .promo-top-main,
    body.page-promo .promo-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-promo .promo-stats-grid {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.page-promo #main-content {
        padding: 0;
    }

    body.page-promo .promo-shell {
        padding: 16px;
    }

    body.page-promo .promo-stats-grid {
        grid-template-columns: 1fr;
    }

    body.page-promo .promo-header-button {
        width: 100%;
    }
}

/* Promo status filters */
body.page-promo .promo-header-actions {
    align-items: center;
    justify-content: space-between;
}

body.page-promo .promo-filter-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

body.page-promo .promo-header-button,
body.page-promo .promo-filter-chip {
    height: 44px;
    min-height: 44px;
}

body.page-promo .promo-header-button {
    padding: 0 15px;
    font-weight: 400;
}

body.page-promo .promo-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    border: 1px solid #d5dfec;
    border-radius: 6px;
    background: #ffffff;
    color: #546b8e;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.page-promo .promo-filter-chip--active {
    border-color: #bfd9c4;
    color: #2f8a55;
}

body.page-promo .promo-filter-chip--inactive {
    border-color: #e3c0c0;
    color: #c45a5a;
}

body.page-promo .promo-filter-chip:hover,
body.page-promo .promo-filter-chip:focus-visible {
    outline: none;
    background: #f8fafc;
    border-color: #aebbd0;
}

body.page-promo .promo-filter-chip--active:hover,
body.page-promo .promo-filter-chip--active:focus-visible,
body.page-promo .promo-filter-chip--active.is-active {
    border-color: #94c69f;
    background: #edf8f0;
    color: #237446;
}

body.page-promo .promo-filter-chip--inactive:hover,
body.page-promo .promo-filter-chip--inactive:focus-visible,
body.page-promo .promo-filter-chip--inactive.is-active {
    border-color: #d99d9d;
    background: #fff3f3;
    color: #ad4444;
}

body.page-promo .promo-filter-chip.is-active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(40, 76, 130, 0.08);
}

body.page-promo .promo-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.page-promo .promo-chip-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-promo .promo-code-row[hidden],
body.page-promo .promo-filter-empty-row[hidden] {
    display: none !important;
}

body.page-promo .promo-filter-empty-row > td {
    border-bottom: 1px solid #dce4ee;
    background: #ffffff;
}

@media (max-width: 1220px) {
    body.page-promo .promo-filter-group {
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    body.page-promo .promo-filter-group {
        width: 100%;
    }

    body.page-promo .promo-filter-chip {
        flex: 1 1 150px;
    }
}

/* Promo controls final Alerts parity */
body.page-promo .promo-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

body.page-promo .promo-filter-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 44px;
    margin-left: 0;
}

body.page-promo .promo-header-button,
body.page-promo .promo-filter-chip {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    line-height: 1;
}

body.page-promo .promo-header-button {
    min-width: 150px;
    padding: 0 16px;
    gap: 9px;
    font-size: 16px;
    font-weight: 400;
}

body.page-promo .promo-header-button svg {
    width: 18px;
    height: 18px;
}

body.page-promo .promo-filter-chip {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 400;
}

body.page-promo .promo-chip-icon {
    width: 18px;
    height: 18px;
}

body.page-promo .promo-chip-icon svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1220px) {
    body.page-promo .promo-header-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 760px) {
    body.page-promo .promo-header-actions {
        align-items: stretch;
    }

    body.page-promo .promo-header-button {
        width: auto;
    }

    body.page-promo .promo-filter-group {
        width: auto;
    }

    body.page-promo .promo-filter-chip {
        flex: 0 0 auto;
    }
}