:root {
    --store-action-red: #c81d25;
    --store-action-ink: #1b1d21;
    --store-action-border: #dedfe3;
}

body.store-action-dock-enabled {
    padding-bottom: 88px;
}

.store-action-dock {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    width: min(720px, calc(100% - 24px));
    min-height: 64px;
    overflow: hidden;
    transform: translateX(-50%);
    border: 1px solid var(--store-action-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 32px rgba(18, 22, 31, 0.16);
    backdrop-filter: blur(12px);
}

.store-action-dock__item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-right: 1px solid #ececef;
    background: transparent;
    color: var(--store-action-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
}

.store-action-dock__item:last-child {
    border-right: 0;
}

.store-action-dock__item:hover,
.store-action-dock__item:focus-visible {
    background: #f5f6f8;
    color: #000;
    outline: none;
}

.store-action-dock__item--primary,
.store-action-dock__item--primary:hover,
.store-action-dock__item--primary:focus-visible {
    background: var(--store-action-red);
    color: #fff;
}

.store-action-dock__item svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.store-action-dialog {
    width: min(480px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid var(--store-action-border);
    border-radius: 8px;
    padding: 0;
    color: var(--store-action-ink);
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 13, 19, 0.24);
}

.store-action-dialog::backdrop {
    background: rgba(15, 18, 24, 0.56);
}

.store-action-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #ececef;
}

.store-action-dialog__eyebrow {
    margin: 0 0 5px;
    color: var(--store-action-red);
    font-size: 12px;
    font-weight: 700;
}

.store-action-dialog h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 720;
}

.store-action-dialog__close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--store-action-border);
    border-radius: 6px;
    background: #fff;
    color: #555b65;
    cursor: pointer;
}

.store-action-dialog__close svg {
    width: 18px;
    height: 18px;
}

.store-action-dialog__wechat {
    margin: 22px;
    padding: 16px;
    border-left: 3px solid var(--store-action-red);
    background: #f7f7f8;
}

.store-action-dialog__wechat span,
.store-action-dialog__wechat strong {
    display: block;
}

.store-action-dialog__wechat span {
    color: #6b7079;
    font-size: 12px;
}

.store-action-dialog__wechat strong {
    margin-top: 5px;
    font-size: 22px;
}

.store-action-dialog__primary {
    display: flex;
    width: calc(100% - 44px);
    min-height: 44px;
    margin: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--store-action-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.store-action-dialog__primary svg {
    width: 17px;
    height: 17px;
}

.store-action-dialog__address {
    margin: 14px 22px 22px;
    color: #666b74;
    font-size: 13px;
    line-height: 1.7;
}

.store-action-dialog__services {
    display: grid;
    gap: 0;
    padding: 8px 0;
}

.store-action-dialog__service {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 22px;
    color: var(--store-action-ink);
}

.store-action-dialog__service:hover,
.store-action-dialog__service:focus-visible {
    background: #f5f6f8;
    outline: none;
}

.store-action-dialog__service > svg:first-child {
    width: 22px;
    height: 22px;
    color: var(--store-action-red);
}

.store-action-dialog__service > svg:last-child {
    width: 17px;
    height: 17px;
    color: #8b9098;
}

.store-action-dialog__service strong,
.store-action-dialog__service small {
    display: block;
}

.store-action-dialog__service strong {
    font-size: 15px;
}

.store-action-dialog__service small {
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #6b7079;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    body.store-action-dock-enabled {
        padding-bottom: 78px;
    }

    .store-action-dock {
        bottom: max(6px, env(safe-area-inset-bottom));
        width: calc(100% - 12px);
        min-height: 60px;
    }

    .store-action-dock__item {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .store-action-dock__item svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-action-dock,
    .store-action-dialog {
        scroll-behavior: auto;
    }
}
