
.docc-global-summary-mount {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.docc-global-summary-button,
.docc-global-summary-drawer,
.docc-global-mobile-trigger,
.docc-global-summary-backdrop {
    --docc-global-orange: #e47b02;
    --docc-global-orange-dark: #c95f00;
    --docc-global-dark: #1f2933;
    --docc-global-cream: #fff7ed;
    --docc-global-border: rgba(31,41,51,.08);
    box-sizing: border-box;
    font-family: inherit;
}

.docc-global-summary-button *,
.docc-global-summary-drawer *,
.docc-global-mobile-trigger * {
    box-sizing: border-box;
}

.docc-global-summary-button {
    min-height: 42px;
    padding: 8px 9px 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(31,41,51,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--docc-global-dark);
    box-shadow: 0 8px 22px rgba(31,41,51,.08), inset 0 1px 0 rgba(255,255,255,.8);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.docc-global-summary-button:hover {
    transform: translateY(-2px);
    border-color: rgba(228,123,2,.24);
    background: #fff;
    box-shadow: 0 12px 28px rgba(31,41,51,.12), inset 0 1px 0 rgba(255,255,255,.9);
}

.docc-global-summary-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(228,123,2,.16), 0 12px 28px rgba(31,41,51,.10);
}

.docc-global-summary-button__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--docc-global-orange);
}

.docc-global-summary-button__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.docc-global-summary-button__count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--docc-global-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.docc-global-summary-backdrop {
    position: fixed;
    z-index: 99996;
    inset: 0;
    background: rgba(31,41,51,.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: opacity 200ms ease, visibility 200ms ease;
}

.docc-global-summary-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.docc-global-summary-drawer {
    position: fixed;
    z-index: 99997;
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: min(430px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31,41,51,.08);
    border-radius: 28px;
    background: #fff;
    color: var(--docc-global-dark);
    box-shadow: 0 30px 90px rgba(31,41,51,.24), inset 0 1px 0 rgba(255,255,255,.9);
    transform: translateX(calc(100% + 28px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 240ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease, visibility 240ms ease;
}

.docc-global-summary-drawer.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.docc-global-summary-drawer__top {
    position: relative;
    flex: 0 0 auto;
    padding: 26px 70px 20px 24px;
    border-bottom: 1px solid var(--docc-global-border);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,236,210,.38));
}

.docc-global-summary-drawer__eyebrow {
    display: block;
    margin: 0 0 7px;
    color: var(--docc-global-orange);
    font-family: "Pacifico", cursive;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.05;
    text-transform: none;
}

.docc-global-summary-drawer h3 {
    margin: 0;
    color: var(--docc-global-dark);
    font-family: "Bebas Neue", sans-serif;
    font-size: 39px;
    font-weight: 400;
    line-height: .98;
}

.docc-global-summary-drawer__top p {
    margin: 10px 0 0;
    color: rgba(31,41,51,.56);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.docc-global-summary-drawer__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31,41,51,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.82);
    color: var(--docc-global-dark);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.docc-global-summary-drawer__close:hover {
    transform: translateY(-2px);
    border-color: rgba(228,123,2,.28);
    background: var(--docc-global-orange);
    color: #fff;
}

.docc-global-summary-drawer__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.docc-global-summary-drawer__items {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.docc-global-summary-drawer__empty {
    padding: 22px 12px;
    color: rgba(31,41,51,.50);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.docc-global-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
    margin-bottom: 9px;
    border: 1px solid rgba(31,41,51,.06);
    border-radius: 18px;
    background: var(--docc-global-cream);
}

.docc-global-summary-item:last-child {
    margin-bottom: 0;
}

.docc-global-summary-item__content {
    min-width: 0;
}

.docc-global-summary-item__content strong {
    display: block;
    overflow: hidden;
    color: var(--docc-global-dark);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docc-global-summary-item__content span {
    display: block;
    margin-top: 5px;
    color: rgba(31,41,51,.55);
    font-size: 11px;
    line-height: 1.35;
}

.docc-global-summary-item b {
    color: var(--docc-global-orange);
    font-size: 13px;
    white-space: nowrap;
}

.docc-global-summary-drawer__footer {
    flex: 0 0 auto;
    padding: 20px 22px 24px;
    border-top: 1px solid var(--docc-global-border);
    background: #fff;
}

.docc-global-summary-drawer__total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.docc-global-summary-drawer__total-row span {
    color: rgba(31,41,51,.58);
    font-size: 13px;
    font-weight: 800;
}

.docc-global-summary-drawer__total-row strong {
    color: var(--docc-global-dark);
    font-family: "Bebas Neue", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .02em;
}

.docc-global-summary-drawer__minimum {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    margin-top: 17px;
    border: 1px solid rgba(228,123,2,.18);
    border-radius: 18px;
    background: rgba(228,123,2,.075);
}

.docc-global-summary-drawer__minimum[hidden] {
    display: none;
}

.docc-global-summary-drawer__minimum.is-reached {
    border-color: rgba(34,197,94,.2);
    background: rgba(34,197,94,.08);
}

.docc-global-summary-drawer__minimum-icon {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--docc-global-orange);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.docc-global-summary-drawer__minimum.is-reached .docc-global-summary-drawer__minimum-icon {
    background: #1f9d55;
    font-family: "Epilogue", sans-serif;
    font-size: 14px;
}

.docc-global-summary-drawer__minimum strong,
.docc-global-summary-drawer__minimum span:not(.docc-global-summary-drawer__minimum-icon) {
    display: block;
}

.docc-global-summary-drawer__minimum strong {
    color: var(--docc-global-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.docc-global-summary-drawer__minimum div > span {
    margin-top: 4px;
    color: rgba(31,41,51,.62);
    font-size: 11px;
    line-height: 1.5;
}

.docc-global-summary-drawer__cta {
    min-height: 46px;
    margin-top: 16px;
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(228,123,2,.28);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--docc-global-orange), var(--docc-global-orange-dark));
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(228,123,2,.20), inset 0 1px 0 rgba(255,255,255,.24);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.docc-global-summary-drawer__cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgb(238,134,12), var(--docc-global-orange));
    box-shadow: 0 14px 30px rgba(228,123,2,.26), inset 0 1px 0 rgba(255,255,255,.28);
    color: #fff !important;
}

.docc-global-mobile-trigger {
    display: none;
}

html.docc-global-summary-open,
body.docc-global-summary-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .docc-global-summary-drawer {
        top: 12px;
        right: 10px;
        bottom: 12px;
        width: min(390px, calc(100% - 24px));
        border-radius: 25px;
    }

    .docc-global-summary-drawer__top {
        padding: 24px 62px 18px 20px;
    }

    .docc-global-summary-drawer h3 {
        font-size: 34px;
    }

    .docc-global-summary-drawer__footer {
        padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
    }

    .docc-global-mobile-trigger {
        position: fixed;
        z-index: 99990;
        right: 0;
        bottom: 20%;
        width: 92px;
        min-height: 76px;
        padding: 11px 10px 11px 12px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        border: 1px solid rgba(255,255,255,.44);
        border-right: 0;
        border-radius: 21px 0 0 21px;
        background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055));
        color: var(--docc-global-dark);
        box-shadow: 0 14px 34px rgba(31,41,51,.12), inset 0 1px 0 rgba(255,255,255,.62), inset 0 -1px 0 rgba(255,255,255,.10);
        cursor: pointer;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-backdrop-filter: blur(4px) saturate(1.18);
        backdrop-filter: blur(4px) saturate(1.18);
        touch-action: manipulation;
        transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
    }

    .docc-global-mobile-trigger:not([hidden]) {
        display: flex;
    }

    .docc-global-mobile-trigger__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .docc-global-mobile-trigger__icon {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--docc-global-orange);
    }

    .docc-global-mobile-trigger__icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .docc-global-mobile-trigger__count {
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--docc-global-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    .docc-global-mobile-trigger strong {
        display: block;
        overflow: hidden;
        color: var(--docc-global-dark);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.15;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .docc-global-mobile-trigger:focus-visible {
        border-color: rgba(31,41,51,.28);
        box-shadow: 0 16px 38px rgba(31,41,51,.14), 0 0 0 3px rgba(255,255,255,.62), inset 0 1px 0 rgba(255,255,255,.78);
    }

    .docc-global-mobile-trigger.is-drawer-open {
        opacity: 0;
        pointer-events: none;
        transform: translateX(12px);
    }
}

.admin-bar .docc-global-summary-drawer {
    top: 44px;
}

@media (max-width: 782px) {
    .admin-bar .docc-global-summary-drawer {
        top: 58px;
    }
}
