.share-basket-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.share-basket-block__title {
    margin: 0 0 0.375rem;
    color: #111;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.share-basket-block__copy {
    margin: 0 0 1rem;
    color: #6b6b6b;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.share-basket-block__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.share-basket-block__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.share-basket-block__btn i {
    font-size: 1.05em;
    line-height: 1;
}

.share-basket-block__btn--secondary {
    border: 1px solid #cfc8bf;
    background-color: #fff;
    color: #333;
}

.share-basket-block__btn--secondary:hover,
.share-basket-block__btn--secondary:active {
    border-color: var(--brand-primary, #ff6a00);
    background-color: var(--brand-primary-tint, rgba(255, 106, 0, 0.06));
    color: var(--brand-primary, #ff6a00);
}

.share-basket-block__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.875rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: #444;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(17, 17, 17, 0.25);
    text-underline-offset: 3px;
    cursor: pointer;
}

.share-basket-block__more:hover {
    color: var(--brand-primary, #ff6a00);
    text-decoration-color: currentColor;
}

.share-basket-block [data-copy-link].is-copied {
    border-color: #111;
    background-color: #111;
    color: #fff;
}

#shareBasketModal .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(17, 17, 17, 0.18);
}

#shareBasketModal .modal-header {
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee9e2;
}

#shareBasketModal .modal-title {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

#shareBasketModal .modal-body {
    padding: 1.5rem;
}

#shareBasketModal .share-basket-modal__intro {
    margin: 0 0 1rem;
    color: #6b6b6b;
    font-size: 0.875rem;
    line-height: 1.55;
}

#shareBasketModal .share-basket-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

#shareBasketModal .share-basket-modal__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid #cfc8bf;
    border-radius: 6px;
    background-color: #fff;
    color: #222;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#shareBasketModal .share-basket-modal__action:hover {
    border-color: var(--brand-primary, #ff6a00);
    background-color: var(--brand-primary-tint, rgba(255, 106, 0, 0.06));
    color: var(--brand-primary, #ff6a00);
}

#shareBasketModal .share-basket-modal__action i {
    font-size: 1.125rem;
    line-height: 1;
}

#shareBasketModal .form-label {
    margin-bottom: 0.375rem;
    color: #333;
    font-size: 0.8125rem;
    font-weight: 600;
}

#shareBasketModal .share-basket-modal__url-row {
    display: flex;
    gap: 0.5rem;
}

#shareBasketModal .share-basket-modal__url-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #ded8d0;
    background-color: #f8f6f2;
    color: #555;
    font-size: 0.8125rem;
}

#shareBasketModal .share-basket-modal__copy {
    flex: 0 0 auto;
    margin: 0;
    min-width: 84px;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border: 1px solid #111;
    border-radius: 6px;
    background-color: #111;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

#shareBasketModal .share-basket-modal__copy:hover {
    border-color: var(--brand-primary, #ff6a00);
    background-color: var(--brand-primary, #ff6a00);
    color: #fff;
}

#shareBasketModal [data-copy-link].is-copied {
    border-color: var(--brand-primary, #ff6a00);
    background-color: var(--brand-primary, #ff6a00);
    color: #fff;
}

.shared-basket-page {
    padding: 3.5rem 0 4rem;
}

.shared-basket-page__inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.shared-basket-header {
    margin-bottom: 2rem;
}

.shared-basket-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--brand-primary, #ff6a00);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shared-basket-title {
    margin: 0 0 0.875rem;
    color: #111;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.shared-basket-lede {
    max-width: 54ch;
    margin: 0;
    color: #6b6b6b;
    font-size: 1rem;
    line-height: 1.65;
}

.shared-basket-card {
    overflow: hidden;
    border: 1px solid #ece7e0;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.shared-basket-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shared-basket-line {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1ede7;
}

.shared-basket-line:last-child {
    border-bottom: 0;
}

.shared-basket-line__media {
    flex: 0 0 auto;
}

.shared-basket-line__image {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: #f3f0eb;
    object-fit: cover;
}

.shared-basket-line__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.shared-basket-line__name {
    color: #161616;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

a.shared-basket-line__name {
    text-decoration: none;
}

a.shared-basket-line__name:hover {
    color: var(--brand-primary, #ff6a00);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shared-basket-line__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.shared-basket-line__qty {
    color: #777;
    font-size: 0.8125rem;
}

.shared-basket-line__badge {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background-color: #ececec;
    color: #5f5f5f;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shared-basket-line__price {
    color: #161616;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.shared-basket-line__not-counted {
    color: #9a9a9a;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 400;
}

.shared-basket-line--unavailable {
    background-color: #fbfaf8;
}

.shared-basket-line--unavailable .shared-basket-line__image {
    filter: grayscale(1);
    opacity: 0.5;
}

.shared-basket-line--unavailable .shared-basket-line__name {
    color: #8c8c8c;
    font-weight: 400;
}

.shared-basket-total {
    margin: 1rem 0 0;
    color: #4a4a4a;
    font-size: 0.9375rem;
    text-align: right;
}

.shared-basket-cta-form {
    margin-top: 1.5rem;
}

.shared-basket-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 8px;
    background-color: var(--brand-primary, #ff6a00);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
}

.shared-basket-cta:hover {
    color: #fff;
}

.shared-basket-cta.htmx-request {
    pointer-events: none;
    cursor: wait;
}

.shared-basket-cta .btn-loading {
    align-items: center;
    gap: 0.5rem;
}

.shared-basket-cta .btn-loading::before {
    content: "";
    width: 0.9em;
    height: 0.9em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: share-basket-spin 0.7s linear infinite;
}

@keyframes share-basket-spin {
    to {
        transform: rotate(360deg);
    }
}

.shared-basket-panel {
    padding: 2.5rem 2rem;
    border: 1px solid #ece7e0;
    border-radius: 16px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.shared-basket-panel .shared-basket-lede {
    margin-right: auto;
    margin-left: auto;
}

.shared-basket-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.shared-basket-panel__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.shared-basket-panel__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #cfc8bf;
    border-radius: 4px;
    color: #222;
    font-size: 0.9375rem;
    text-decoration: none;
}

.shared-basket-panel__secondary:hover {
    border-color: var(--brand-primary, #ff6a00);
    background-color: var(--brand-primary-tint, rgba(255, 106, 0, 0.06));
    color: var(--brand-primary, #ff6a00);
}

.share-basket-block a:focus-visible,
.share-basket-block button:focus-visible,
#shareBasketModal a:focus-visible,
#shareBasketModal button:focus-visible,
#shareBasketModal input:focus-visible,
.shared-basket-page a:focus-visible,
.shared-basket-page button:focus-visible {
    outline: 2px solid var(--brand-primary, #ff6a00);
    outline-offset: 2px;
}

@media (min-width: 576px) {
    .share-basket-block__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .share-basket-block__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .share-basket-block__actions {
        grid-template-columns: 1fr;
    }

    #shareBasketModal .share-basket-modal__actions {
        grid-template-columns: 1fr;
    }

    #shareBasketModal .share-basket-modal__url-row {
        flex-wrap: wrap;
    }

    #shareBasketModal .share-basket-modal__copy {
        width: 100%;
    }

    .shared-basket-page {
        padding: 2.25rem 0 3rem;
    }

    .shared-basket-title {
        font-size: 1.875rem;
    }

    .shared-basket-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .shared-basket-line__image {
        width: 72px;
        height: 72px;
    }

    .shared-basket-line__price {
        grid-column: 2;
        margin-top: 0.125rem;
        text-align: left;
    }

    .shared-basket-total {
        text-align: left;
    }

    .shared-basket-panel {
        padding: 2rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shared-basket-cta .btn-loading::before {
        animation: none;
    }
}
