.digibuds-bas-dashboard {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 24px;
}

.digibuds-bas-card {
    background: var(--digibuds-bas-bg, #fffaf7);
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: var(--digibuds-bas-radius, 8px);
    color: var(--digibuds-bas-text, #2b2527);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    min-height: 142px;
    padding: 16px;
}

.digibuds-bas-card__body {
    display: grid;
    gap: 7px;
}

.digibuds-bas-card__eyebrow {
    color: var(--digibuds-bas-primary, #7a1f2b);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.digibuds-bas-card__title {
    color: var(--digibuds-bas-text, #2b2527);
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.digibuds-bas-card__text {
    color: #655d59;
    font-size: 13px;
    line-height: 1.45;
}

.digibuds-bas-card__link,
.digibuds-bas-button {
    align-items: center;
    background: var(--digibuds-bas-primary, #7a1f2b);
    border: 1px solid var(--digibuds-bas-primary, #7a1f2b);
    border-radius: calc(var(--digibuds-bas-radius, 8px) / 1.5);
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    padding: 9px 12px;
    text-decoration: none;
}

.digibuds-bas-card__link:hover,
.digibuds-bas-button:hover {
    background: #5f1721;
    border-color: #5f1721;
    color: #fff;
    text-decoration: none;
}

.digibuds-bas-badge {
    align-items: center;
    background: #ece7e3;
    border: 1px solid #d5ccc6;
    border-radius: 999px;
    color: #4b4542;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 3px 9px;
    white-space: nowrap;
    width: max-content;
}

.digibuds-bas-badge--complete {
    background: #dceedd;
    border-color: #b9d8bd;
    color: #285b32;
}

.digibuds-bas-badge--processing {
    background: #f6e1c7;
    border-color: #edc28e;
    color: #74420d;
}

.digibuds-bas-badge--refunded {
    background: #dfecf7;
    border-color: #abcde9;
    color: #1b5d8f;
}

.digibuds-bas-badge--attention {
    background: #f3dada;
    border-color: #e5bcbc;
    color: #6f2d2d;
}

.digibuds-bas-badge--pending,
.digibuds-bas-badge--neutral {
    background: #ece7e3;
    border-color: #d5ccc6;
    color: #4b4542;
}

.digibuds-bas-notice {
    background: var(--digibuds-bas-notice-bg, #f7efe8);
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: var(--digibuds-bas-radius, 8px);
    color: var(--digibuds-bas-text, #2b2527);
    margin: 0 0 16px;
    padding: 12px 14px;
}

.digibuds-bas-notice p {
    margin: 0 0 8px;
}

.digibuds-bas-notice p:last-child {
    margin-bottom: 0;
}

.digibuds-bas-secondary-orders {
    margin-top: 24px;
}

.digibuds-bas-secondary-orders__toggle {
    align-items: center;
    background: #f7f4f1;
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: var(--digibuds-bas-radius, 8px);
    color: var(--digibuds-bas-text, #2b2527);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    padding: 13px 14px;
}

.digibuds-bas-secondary-orders__toggle::-webkit-details-marker {
    display: none;
}

.digibuds-bas-secondary-orders__toggle:after {
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.digibuds-bas-secondary-orders[open] .digibuds-bas-secondary-orders__toggle:after {
    content: '-';
}

.digibuds-bas-secondary-orders__count {
    margin-left: auto;
}

.digibuds-bas-secondary-orders__content {
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: 0 0 var(--digibuds-bas-radius, 8px) var(--digibuds-bas-radius, 8px);
    border-top: 0;
    padding: 14px;
}

.digibuds-bas-secondary-orders__note {
    margin-bottom: 14px;
}


.digibuds-bas-order-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.digibuds-bas-order-filter__item {
    background: #f7f4f1;
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: calc(var(--digibuds-bas-radius, 8px) / 1.5);
    color: var(--digibuds-bas-text, #2b2527);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 12px;
    text-decoration: none;
}

.digibuds-bas-order-filter__item:hover,
.digibuds-bas-order-filter__item--active {
    background: var(--digibuds-bas-primary, #7a1f2b);
    border-color: var(--digibuds-bas-primary, #7a1f2b);
    color: #fff;
    text-decoration: none;
}

.sales-order-view .column.main .order-details-items,
.sales-order-view .column.main .block-order-details-view {
    border-radius: var(--digibuds-bas-radius, 8px);
}

.sales-order-view .column.main .order-details-items .table-wrapper,
.sales-order-view .column.main .block-order-details-view .block-content {
    border-radius: var(--digibuds-bas-radius, 8px);
    overflow: hidden;
}

.sales-order-view .column.main .order-details-items .data.table,
.sales-order-view .column.main .block-order-details-view .box {
    border-radius: var(--digibuds-bas-radius, 8px);
}

.sales-order-view .column.main .order-links .item {
    border-radius: var(--digibuds-bas-radius, 8px) var(--digibuds-bas-radius, 8px) 0 0;
}

.digibuds-bas-timeline {
    background: var(--digibuds-bas-bg, #fffaf7);
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: var(--digibuds-bas-radius, 8px);
    margin: 0 0 20px;
    padding: 16px;
}

.digibuds-bas-timeline__list {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.digibuds-bas-timeline__step {
    color: #7a716c;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
    position: relative;
    text-align: center;
}

.digibuds-bas-timeline__step:before {
    background: var(--digibuds-bas-border, #ded6d1);
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 14px;
    z-index: 0;
}

.digibuds-bas-timeline__step:first-child:before {
    left: 50%;
}

.digibuds-bas-timeline__step:last-child:before {
    right: 50%;
}

.digibuds-bas-timeline__marker {
    align-items: center;
    background: #fff;
    border: 2px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: 999px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
    z-index: 1;
}

.digibuds-bas-timeline__number {
    font-size: 12px;
    font-weight: 800;
}

.digibuds-bas-timeline__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.digibuds-bas-timeline__step--completed {
    color: var(--digibuds-bas-primary, #7a1f2b);
}

.digibuds-bas-timeline__step--completed .digibuds-bas-timeline__marker {
    background: var(--digibuds-bas-primary, #7a1f2b);
    border-color: var(--digibuds-bas-primary, #7a1f2b);
    color: #fff;
}

.digibuds-bas-timeline__step--current {
    color: var(--digibuds-bas-text, #2b2527);
}

.digibuds-bas-timeline__step--current .digibuds-bas-timeline__marker {
    background: var(--digibuds-bas-accent, #c89b5b);
    border-color: var(--digibuds-bas-accent, #c89b5b);
    color: #241a15;
}

.digibuds-bas-support-box {
    align-items: center;
    background: var(--digibuds-bas-bg, #fffaf7);
    border: 1px solid var(--digibuds-bas-border, #ded6d1);
    border-radius: var(--digibuds-bas-radius, 8px);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 20px 0;
    padding: 16px;
}

.digibuds-bas-support-box__title {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.digibuds-bas-support-box__text {
    margin: 0;
}

.digibuds-bas-downloads-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: space-between;
}

.digibuds-bas-downloads-intro a {
    font-weight: 700;
}


.digibuds-bas-topic-help {
    margin-top: 20px;
}

.table-wrapper.orders-history .col.actions,
.table-wrapper.orders-recent .col.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.table-wrapper.orders-history .col.actions .action,
.table-wrapper.orders-recent .col.actions .action {
    white-space: nowrap;
}

.digibuds-bas-empty-state {
    border-radius: var(--digibuds-bas-radius, 8px);
}

@media (max-width: 900px) {
    .digibuds-bas-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .digibuds-bas-dashboard,
    .digibuds-bas-timeline__list {
        grid-template-columns: 1fr;
    }

    .digibuds-bas-timeline__step {
        align-items: center;
        grid-template-columns: 30px 1fr;
        justify-items: start;
        text-align: left;
    }

    .digibuds-bas-timeline__step:before {
        bottom: -8px;
        height: auto;
        left: 14px;
        right: auto;
        top: 30px;
        width: 2px;
    }

    .digibuds-bas-timeline__step:first-child:before {
        left: 14px;
    }

    .digibuds-bas-timeline__step:last-child:before {
        display: none;
    }

    .digibuds-bas-support-box {
        align-items: stretch;
        flex-direction: column;
    }
}


/* =========================================================
   BLACKBRIAR ACCOUNT POLISH - 2026-05-19
   Revert by removing this block only.
   Aligns account cards, CTA buttons, and order filters with the store palette.
   ========================================================= */
body.account {
    --digibuds-bas-primary: #d00000 !important;
    --digibuds-bas-accent: #111111 !important;
    --digibuds-bas-text: #171717 !important;
    --digibuds-bas-border: #e4e4e4 !important;
    --digibuds-bas-bg: #ffffff !important;
    --digibuds-bas-notice-bg: #f7f7f7 !important;
}

body.account .digibuds-bas-card {
    background: #ffffff;
    border-color: #e4e4e4;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .035);
}

body.account .digibuds-bas-card__eyebrow {
    color: #d00000;
    letter-spacing: .02em;
}

body.account .digibuds-bas-card__text {
    color: #5f5f5f;
}

body.account .digibuds-bas-card__link,
body.account .digibuds-bas-button {
    background: #d00000;
    border-color: #d00000;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(208, 0, 0, .16);
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.account .digibuds-bas-card__link:visited,
body.account .digibuds-bas-button:visited {
    color: #ffffff !important;
}

body.account .digibuds-bas-card__link:hover,
body.account .digibuds-bas-card__link:focus,
body.account .digibuds-bas-card__link:focus-visible,
body.account .digibuds-bas-button:hover,
body.account .digibuds-bas-button:focus,
body.account .digibuds-bas-button:focus-visible {
    background: #a90000;
    border-color: #a90000;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(208, 0, 0, .22);
    text-decoration: none;
    transform: translateY(-1px);
}

body.account .digibuds-bas-card__link:active,
body.account .digibuds-bas-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(208, 0, 0, .18);
}

body.account .digibuds-bas-order-filter {
    gap: 9px;
}

body.account .digibuds-bas-order-filter__item {
    background: #ffffff;
    border-color: #dedede;
    color: #171717;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .035);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.account .digibuds-bas-order-filter__item:visited {
    color: #171717;
}

body.account .digibuds-bas-order-filter__item:hover,
body.account .digibuds-bas-order-filter__item:focus,
body.account .digibuds-bas-order-filter__item:focus-visible {
    background: #fff5f5;
    border-color: rgba(208, 0, 0, .42);
    color: #d00000;
    box-shadow: 0 4px 12px rgba(208, 0, 0, .09);
    text-decoration: none;
    transform: translateY(-1px);
}

body.account .digibuds-bas-order-filter__item--active,
body.account .digibuds-bas-order-filter__item--active:visited,
body.account .digibuds-bas-order-filter__item--active:hover,
body.account .digibuds-bas-order-filter__item--active:focus,
body.account .digibuds-bas-order-filter__item--active:focus-visible {
    background: #d00000;
    border-color: #d00000;
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(208, 0, 0, .18);
    transform: none;
}

body.account .digibuds-bas-secondary-orders__toggle {
    background: #ffffff;
    border-color: #e1e1e1;
    color: #171717;
}

body.account .digibuds-bas-secondary-orders__toggle:hover,
body.account .digibuds-bas-secondary-orders__toggle:focus {
    border-color: rgba(208, 0, 0, .38);
    color: #d00000;
}

body.account .digibuds-bas-timeline,
body.account .digibuds-bas-support-box,
body.account .digibuds-bas-notice {
    background: #ffffff;
    border-color: #e4e4e4;
}

body.account .digibuds-bas-timeline__step--completed,
body.account .digibuds-bas-downloads-intro a,
body.account .digibuds-bas-downloads-intro a:visited {
    color: #d00000;
}

body.account .digibuds-bas-timeline__step--completed .digibuds-bas-timeline__marker {
    background: #d00000;
    border-color: #d00000;
}

body.account .digibuds-bas-timeline__step--current .digibuds-bas-timeline__marker {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

body.account .table-wrapper.orders-history .action.view,
body.account .table-wrapper.orders-history .action.track,
body.account .table-wrapper.orders-history .action.order,
body.account .table-wrapper.orders-history .action.help,
body.account .table-wrapper.orders-recent .action.view,
body.account .table-wrapper.orders-recent .action.order,
body.account .table-wrapper.orders-recent .action.help,
body.account .table-wrapper.orders-history .action.view:visited,
body.account .table-wrapper.orders-history .action.track:visited,
body.account .table-wrapper.orders-history .action.order:visited,
body.account .table-wrapper.orders-history .action.help:visited,
body.account .table-wrapper.orders-recent .action.view:visited,
body.account .table-wrapper.orders-recent .action.order:visited,
body.account .table-wrapper.orders-recent .action.help:visited {
    color: #d00000;
}

body.account .table-wrapper.orders-history .action.view:hover,
body.account .table-wrapper.orders-history .action.track:hover,
body.account .table-wrapper.orders-history .action.order:hover,
body.account .table-wrapper.orders-history .action.help:hover,
body.account .table-wrapper.orders-recent .action.view:hover,
body.account .table-wrapper.orders-recent .action.order:hover,
body.account .table-wrapper.orders-recent .action.help:hover,
body.account .table-wrapper.orders-history .action.view:focus,
body.account .table-wrapper.orders-history .action.track:focus,
body.account .table-wrapper.orders-history .action.order:focus,
body.account .table-wrapper.orders-history .action.help:focus,
body.account .table-wrapper.orders-recent .action.view:focus,
body.account .table-wrapper.orders-recent .action.order:focus,
body.account .table-wrapper.orders-recent .action.help:focus {
    color: #a90000;
    text-decoration: underline;
}
