.lcg-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    width: min(100%, 960px);
    margin: 32px auto;
}

.lcg-service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    color: var(--text);
    font-family: Poppins, sans-serif;
}

.lcg-service-title {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.lcg-service-description {
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.lcg-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.lcg-add-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text-inverse);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lcg-add-button:hover {
    background: var(--accent-hover);
    color: var(--text-inverse);
    transform: translateY(-1px);
}

.lcg-add-button:active {
    transform: translateY(0);
}

.lcg-add-button:focus-visible {
    outline: 2px solid var(--secondary-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.lcg-add-button.is-added,
.lcg-add-button[aria-pressed="true"] {
    background: var(--secondary-accent);
    color: var(--text-inverse);
}

.lcg-add-button.is-added:hover,
.lcg-add-button[aria-pressed="true"]:hover {
    background: var(--secondary-hover);
}

.lcg-service-price {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.lcg-service-cart {
    position: fixed;
    right: 18px;
    bottom: 132px;
    z-index: 95;
    width: 56px;
    color: var(--text);
    font-family: Poppins, sans-serif;
}

.lcg-service-cart.is-open {
    width: min(360px, calc(100vw - 32px));
}

.lcg-service-cart-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lcg-service-cart.is-open .lcg-service-cart-toggle {
    gap: 10px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
}

.lcg-service-cart-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lcg-service-cart.is-open .lcg-service-cart-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.lcg-service-cart-toggle:hover,
.lcg-service-cart-toggle:focus-visible {
    background: var(--accent-hover);
    color: var(--text-inverse);
}

.lcg-service-cart-toggle:focus-visible,
.lcg-service-cart-close:focus-visible,
.lcg-service-cart-remove:focus-visible,
.lcg-service-cart-clear:focus-visible,
.lcg-service-cart-checkout:focus-visible {
    outline: 2px solid var(--secondary-accent);
    outline-offset: 3px;
}

.lcg-service-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--text-inverse);
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
}

.lcg-service-cart-panel {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.lcg-service-cart-header,
.lcg-service-cart-footer {
    padding: 14px;
    background: var(--panel-2);
}

.lcg-service-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lcg-service-cart-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
    text-transform: none;
}

.lcg-service-cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.lcg-service-cart-list {
    display: grid;
    gap: 0;
    max-height: min(42vh, 340px);
    overflow-y: auto;
}

.lcg-service-cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.lcg-service-cart-item__details {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.lcg-service-cart-item strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.lcg-service-cart-item span,
.lcg-service-cart-empty {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.lcg-service-cart-empty {
    margin: 0;
    padding: 14px;
}

.lcg-service-cart-remove,
.lcg-service-cart-clear {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.lcg-service-cart-remove:hover,
.lcg-service-cart-clear:hover {
    color: var(--accent-hover);
}

.lcg-service-cart-footer {
    display: grid;
    gap: 10px;
}

.lcg-service-cart-footer p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.lcg-service-cart-footer strong {
    color: var(--text);
    font-size: 14px;
}

.lcg-service-cart-checkout,
.lcg-service-cart-checkout:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    background: var(--secondary-accent);
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.lcg-service-cart-checkout:hover {
    background: var(--secondary-hover);
    color: var(--text-inverse);
}

@media (max-width: 900px) {
    .lcg-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .lcg-service-grid {
        grid-template-columns: 1fr;
    }

    .lcg-service-cart {
        right: 16px;
        bottom: 118px;
    }

    .lcg-service-cart.is-open {
        left: 16px;
        width: auto;
    }
}

@media (max-width: 380px) {
    .lcg-service-footer {
        align-items: flex-start;
        flex-direction: column-reverse;
    }
}
