/* Branded Shopify Orders hero and export controls. */
.shopify-orders-page {
    display: grid;
    gap: 16px;
}

.shopify-orders-page .shopify-orders-panel {
    margin-top: 0 !important;
}

.shopify-orders-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 136px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid #262a30;
    border-bottom: 4px solid var(--dream-red, #e30613);
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(227, 6, 19, .18), transparent 28%),
        linear-gradient(135deg, #0b0d10 0%, #15191f 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.shopify-orders-hero::after {
    position: absolute;
    z-index: -1;
    inset: auto -90px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(227, 6, 19, .08);
    content: '';
}

.shopify-hero-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #fff;
    background: rgba(227, 6, 19, .16);
}

.shopify-hero-icon .nav-icon,
.shopify-hero-action-icon .nav-icon,
.shopify-hero-export .nav-icon {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent !important;
}

.shopify-hero-icon .nav-icon svg {
    width: 31px;
    height: 31px;
}

.shopify-hero-copy {
    min-width: 0;
}

.shopify-hero-kicker {
    display: block;
    margin-bottom: 5px;
    color: #ff9aa3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.shopify-hero-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.08;
}

.shopify-hero-copy p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #cfd5dd;
    font-size: 14px;
}

.shopify-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #b8c0ca;
    font-size: 13px;
    font-weight: 600;
}

.shopify-connection-status > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7a8492;
    box-shadow: 0 0 0 4px rgba(122, 132, 146, .12);
}

.shopify-connection-status.is-connected {
    color: #c8f6df;
}

.shopify-connection-status.is-connected > span {
    background: #47d890;
    box-shadow: 0 0 0 4px rgba(71, 216, 144, .12);
}

.shopify-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.shopify-hero-store-filter,
.shopify-hero-export {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
}

.shopify-hero-store-filter {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(126px, auto) auto;
    align-items: center;
    min-width: 205px;
    padding: 0 14px;
}

.shopify-hero-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.shopify-hero-action-icon svg,
.shopify-hero-export .nav-icon svg {
    width: 20px;
    height: 20px;
}

.shopify-hero-store-filter select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 28px 0 10px;
    border: 0;
    outline: 0;
    appearance: none;
    color: #fff;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.shopify-hero-store-filter select:focus {
    box-shadow: none;
}

.shopify-hero-store-filter select option {
    color: #111827;
    background: #fff;
}

.shopify-store-chevron {
    position: absolute;
    right: 14px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.shopify-hero-export {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 126px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 750;
    box-shadow: none;
}

.shopify-hero-export:hover,
.shopify-hero-export:focus-visible {
    border-color: #fff;
    color: #111317;
    background: #fff;
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .shopify-orders-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .shopify-hero-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 90px;
    }
}

@media (max-width: 700px) {
    .shopify-orders-hero {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 19px;
    }

    .shopify-hero-icon {
        width: 54px;
        height: 54px;
    }

    .shopify-hero-icon .nav-icon svg {
        width: 25px;
        height: 25px;
    }

    .shopify-hero-copy h2 {
        font-size: 24px;
    }

    .shopify-hero-copy p {
        font-size: 13px;
    }

    .shopify-hero-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        padding-left: 0;
    }

    .shopify-hero-store-filter {
        min-width: 0;
    }
}

@media (max-width: 500px) {
    .shopify-orders-hero {
        grid-template-columns: 1fr;
    }

    .shopify-hero-icon {
        width: 50px;
        height: 50px;
    }

    .shopify-hero-actions {
        grid-template-columns: 1fr;
    }

    .shopify-hero-store-filter,
    .shopify-hero-export {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shopify-hero-export {
        transition: none;
    }
}
