:root {
    --store-black: #242424;
    --store-border: #eceef2;
    --store-shadow: 0 14px 34px rgba(20, 24, 32, .09);
}

html,
body.store-page {
    background: #fff !important;
}

body.store-page {
    color: #20232a;
}

.navbar-acg {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--store-black) !important;
    border: 0 !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18) !important;
    backdrop-filter: none !important;
}

.navbar-acg .navbar-brand,
.navbar-acg .navbar-brand span,
.navbar-acg .nav-link,
.navbar-acg .btn-link,
.navbar-acg .text-dark,
.navbar-acg .text-muted {
    color: #f5f5f5 !important;
}

.navbar-acg .nav-link:hover,
.navbar-acg .nav-link.active {
    color: #fff !important;
}

.navbar-acg .brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

body.store-page .panel {
    background: #fff !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--store-shadow) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

body.store-page .panel-body img {
    max-width: 100%;
    height: auto;
}

.item-summary-body {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.item-page-main {
    padding-top: 8px !important;
}

.item-summary-body > .row {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.item-summary-body .col-12 {
    display: flex;
    align-items: center;
}

.item-summary-body .d-flex.mb-3 {
    width: 100%;
    margin-bottom: 0 !important;
}

@media (hover: hover) {
    body.store-page .panel:hover {
        transform: translateY(-3px);
        box-shadow: 0 19px 42px rgba(20, 24, 32, .13) !important;
    }
}

body.store-page .new-dock {
    color: #fff !important;
    background: var(--store-black) !important;
    background-image: none !important;
    box-shadow: 0 -8px 26px rgba(0, 0, 0, .20) !important;
}

body.store-page .new-dock:active {
    background: #111 !important;
}

.customer-service-button {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    color: #fff;
    background: var(--store-black);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.customer-service-label {
    font-weight: 700;
}

.customer-service-hours {
    color: #cfcfcf;
    font-size: 12px;
}

.customer-service-panel {
    position: fixed;
    right: 22px;
    bottom: 146px;
    z-index: 1081;
    width: min(380px, calc(100vw - 28px));
    height: min(520px, 70vh);
    display: none;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.customer-service-panel.is-open {
    display: grid;
}

.customer-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    color: #fff;
    background: var(--store-black);
}

.customer-service-header small {
    display: block;
    color: #bbb;
    font-size: 11px;
}

.customer-service-header button {
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 24px;
}

.customer-service-messages {
    padding: 16px;
    overflow: auto;
    background: #f7f8fa;
}

.customer-message {
    max-width: 86%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    white-space: pre-wrap;
    line-height: 1.55;
}

.customer-message.bot {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.customer-message.user {
    margin-left: auto;
    color: #fff;
    background: var(--store-black);
}

.customer-service-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
}

.customer-service-form textarea {
    resize: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
}

.customer-service-form button {
    padding: 0 16px;
    color: #fff;
    background: var(--store-black);
    border: 0;
    border-radius: 12px;
}

@media (max-width: 767px) {
    body.store-page .panel {
        max-width: 100% !important;
    }

    .customer-service-button {
        right: 12px;
        bottom: 82px;
        min-width: 54px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 9px 10px 8px;
        border-radius: 16px;
    }

    .customer-service-button .customer-service-label {
        display: block;
        font-size: 12px;
        line-height: 1;
    }

    .customer-service-button .customer-service-hours {
        display: none;
    }

    .customer-service-panel {
        right: 14px;
        bottom: 136px;
    }
}
