:root {
    --store-primary: #038157;
    --store-primary-hover: #049c69;
    --store-page: #100f10;
    --store-surface: #1b1b1b;
    --store-surface-2: #242424;
    --store-border: rgba(255, 255, 255, 0.08);
    --store-text: rgba(255, 255, 255, 0.78);
    --store-muted: rgba(255, 255, 255, 0.52);
    --store-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html,
body {
    background: var(--store-page) !important;
    color: var(--store-text) !important;
    font-family: Montserrat, Lato, "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

.lithium-pusher,
.lithium-wrapper,
.lithium-main {
    background: var(--store-page) !important;
}

.lithium-header {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    background-color: var(--store-primary);
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.lithium-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(transparent, rgba(0, 0, 0, 0.22)), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(16, 15, 16, 0.18) 35%, var(--store-page) 100%);
    pointer-events: none;
}

.lithium-userbar,
.lithium-navbar,
.lithium-hero {
    position: relative;
    z-index: 1;
}

.lithium-userbar {
    background: #181818;
    min-height: 44px;
}

.lithium-userbar-inner,
.lithium-navbar-inner {
    display: flex !important;
    align-items: center;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.lithium-userbar-inner {
    min-height: 44px;
    justify-content: flex-end;
}

.lithium-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-left: auto;
}

.lithium-user-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.lithium-user-action img,
.lithium-user-avatar img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.lithium-navbar {
    background: var(--store-primary);
    min-height: 64px;
}

.lithium-navbar-inner {
    min-height: 64px;
    justify-content: flex-start;
}

.lithium-brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.lithium-navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    gap: 0.25rem;
    margin-left: 2rem;
}

.lithium-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.lithium-nav-link.active,
.lithium-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lithium-nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
}

.lithium-nav-toggle {
    display: none !important;
    margin-left: auto !important;
    color: #fff !important;
    font-size: 1.35rem;
}

.lithium-hero {
    display: flex !important;
    align-items: center;
    justify-content: center;
    max-width: 1160px !important;
    min-height: 300px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 2rem 1rem 2.5rem !important;
}

.lithium-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lithium-header-logo img {
    display: block;
    max-width: min(100%, 320px) !important;
    max-height: 230px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.lithium-header-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 0;
    color: #fff;
}

.lithium-header-status-icon {
    color: rgba(255, 255, 255, 0.76);
    font-size: 3rem;
}

.lithium-header-status-content {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.lithium-header-status-title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lithium-header-status-description {
    color: rgba(255, 255, 255, 0.84);
}

@media (min-width: 992px) {
    .lithium-header-status {
        position: absolute;
        top: 50%;
        max-width: 290px;
        transform: translateY(-50%);
    }

    .lithium-header-status-left {
        left: 1rem;
        text-align: left;
    }

    .lithium-header-status-right {
        right: 1rem;
        flex-direction: row-reverse;
        text-align: right;
    }
}

.stripe-store {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.stripe-store-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stripe-store-heading h1,
.stripe-store-message h1 {
    margin: 0;
    color: var(--store-text);
    font-size: 2rem;
    font-weight: 800;
}

.stripe-store-heading p,
.stripe-store-message p {
    margin: 0.35rem 0 0;
    color: var(--store-muted);
}

.stripe-store-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.5rem;
    align-items: start;
}

.stripe-player-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 8px;
    box-shadow: var(--store-shadow);
}

.stripe-player-card h2 {
    margin: 0;
    color: var(--store-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.stripe-player-card p {
    margin: 0.25rem 0 0;
    color: var(--store-muted);
}

.stripe-player-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.stripe-player-controls input {
    min-width: 0;
    background: var(--store-surface-2) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 8px !important;
    color: var(--store-text) !important;
    padding: 0.75rem 0.85rem !important;
}

.stripe-store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stripe-store-category {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 8px;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    color: var(--store-muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.stripe-store-category:hover,
.stripe-store-category.active {
    background: var(--store-primary);
    color: #fff;
}

.stripe-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stripe-product-card,
.stripe-cart-card,
.stripe-store-message .ui.segment {
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--store-shadow) !important;
    color: var(--store-text) !important;
}

.stripe-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stripe-product-media {
    aspect-ratio: 16 / 10;
    background: var(--store-surface-2);
    overflow: hidden;
}

.stripe-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stripe-product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--store-muted);
    font-size: 2.2rem;
}

.stripe-product-body {
    flex: 1;
    padding: 1rem;
}

.stripe-product-category {
    margin-bottom: 0.45rem;
    color: var(--store-primary-hover);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stripe-product-body h2 {
    margin: 0;
    color: var(--store-text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.stripe-product-body p {
    margin: 0.65rem 0 0;
    color: var(--store-muted);
    line-height: 1.55;
}

.stripe-product-footer {
    display: grid;
    grid-template-columns: 1fr 64px auto;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--store-border);
}

.stripe-product-footer strong,
.stripe-cart-item strong,
.stripe-cart-total strong,
.stripe-cart-header h2 {
    color: var(--store-text);
}

.stripe-product-footer input,
.stripe-cart-item input {
    width: 64px !important;
    text-align: center;
    background: var(--store-surface-2) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 8px !important;
    color: var(--store-text) !important;
}

.stripe-cart-card {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.stripe-cart-header,
.stripe-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stripe-cart-header {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--store-border);
}

.stripe-username-form {
    margin: 1rem 0;
}

.stripe-username-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--store-muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stripe-username-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.stripe-username-row input {
    min-width: 0;
    background: var(--store-surface-2) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 8px !important;
    color: var(--store-text) !important;
    padding: 0.7rem 0.8rem !important;
}

.stripe-cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.stripe-cart-header span,
.stripe-cart-item span,
.stripe-cart-total span,
.stripe-cart-empty {
    color: var(--store-muted);
}

.stripe-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0;
}

.stripe-cart-item {
    display: grid;
    gap: 0.55rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--store-border);
}

.stripe-cart-item form {
    display: flex;
    gap: 0.5rem;
}

.stripe-cart-total {
    margin: 1rem 0;
}

.stripe-cart-card form + form {
    margin-top: 0.5rem;
}

.stripe-store .ui.button,
.stripe-store-message .ui.button {
    border-radius: 8px !important;
    font-weight: 800 !important;
}

.stripe-store .ui.primary.button,
.stripe-store-message .ui.primary.button {
    background: var(--store-primary) !important;
    color: #fff !important;
}

.stripe-store .ui.primary.button:hover,
.stripe-store-message .ui.primary.button:hover {
    background: var(--store-primary-hover) !important;
}

.stripe-store-message {
    max-width: 720px;
}

.stripe-store-message .ui.segment {
    padding: 2rem !important;
}

#ie-message {
    display: none !important;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #ie-message {
        display: flex !important;
    }
}

/* Store pages can render through NamelessMC's module bootstrap without the
   theme override stylesheet, so keep the shared Lithium footer constrained here. */
.lithium-footer {
    width: 100%;
    margin-top: 2rem;
    background: #181818;
    color: var(--store-muted);
}

.lithium-footer-main .ui.container,
.lithium-footer-extra .ui.container {
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.lithium-footer-main .ui.container {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
}

.lithium-footer-grid {
    display: grid;
    grid-template-columns: minmax(100px, 0.6fr) minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(220px, 1fr);
    gap: 2rem;
    align-items: start;
}

.lithium-footer-logo {
    text-align: center;
}

.lithium-footer-logo img {
    display: inline-block;
    max-width: 140px !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.78;
}

.lithium-footer-section:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.045);
    padding-left: 1.5rem;
}

.lithium-footer-section h4 {
    margin: 0 0 1rem;
    color: var(--store-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.lithium-footer-section p,
.lithium-footer-info,
.lithium-footer-info a,
.lithium-footer-links a {
    color: var(--store-muted);
}

.lithium-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lithium-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lithium-footer-extra {
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.lithium-footer-extra-inner {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.lithium-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.lithium-footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.lithium-footer-credit {
    margin-left: 0.5rem;
}

.lithium-footer-credit img {
    display: inline-block;
    max-width: 90px !important;
    max-height: 30px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.35;
}

@media (max-width: 991px) {
    .stripe-store-layout {
        grid-template-columns: 1fr;
    }

    .stripe-cart-card {
        position: static;
    }

    .stripe-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stripe-player-card,
    .stripe-player-controls {
        grid-template-columns: 1fr;
    }

    .lithium-footer-grid {
        grid-template-columns: 1fr;
    }

    .lithium-footer-logo {
        display: none;
    }

    .lithium-footer-section {
        border-left: 0 !important;
        padding-left: 0 !important;
    }

    .lithium-footer-extra-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .lithium-footer-buttons {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .stripe-store-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stripe-store-grid {
        grid-template-columns: 1fr;
    }

    .stripe-product-footer {
        grid-template-columns: 1fr;
    }

    .stripe-product-footer input,
    .stripe-cart-item input {
        width: 100% !important;
    }
}
