.w2c-cart-link {
    white-space: nowrap;
}

.social-icons .w2c-social-cart {
    position: relative;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.social-icons .w2c-social-cart img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

.social-icons .w2c-social-cart span {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

.w2c-add-link-cart {
    width: auto;
    min-width: 128px;
    margin: 12px 12px 14px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 9px 12px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.w2c-add-link-cart:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

.w2c-cart-product-card {
    scroll-margin-top: calc(var(--site-top-offset, 0px) + 80px);
}

.w2c-detail-add {
    width: 100%;
    margin: 14px 0 10px;
    justify-content: center;
}

.w2c-cart-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .28);
    text-decoration: none;
    font-weight: 800;
}

.w2c-cart-float span {
    margin-left: 6px;
}

.w2c-cart-toast {
    position: fixed;
    right: 18px;
    bottom: 86px;
    z-index: 10000;
    width: min(360px, calc(100vw - 36px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .16);
    padding: 14px;
    color: #111827;
}

.w2c-cart-toast-title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 14px;
}

.w2c-cart-toast-actions {
    display: flex;
    gap: 10px;
}

.w2c-cart-toast a,
.w2c-cart-toast button {
    flex: 1;
    border: 0;
    border-radius: 7px;
    padding: 10px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.w2c-cart-toast a {
    background: #ef4444;
    color: #fff;
}

.w2c-cart-toast button {
    background: #f3f4f6;
    color: #111827;
}

.w2c-cart-confirm {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, .48);
}

.w2c-cart-confirm-panel {
    width: min(440px, 100%);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .24);
    padding: 22px;
    color: #111827;
}

.w2c-cart-confirm-panel p {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.w2c-cart-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.w2c-cart-confirm-actions button {
    min-width: 96px;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.w2c-cart-confirm-actions .secondary {
    background: #f3f4f6;
    color: #111827;
}

.w2c-cart-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 16px 56px;
    color: #111827;
}

.w2c-cart-category-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.w2c-cart-category-arrow {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.w2c-cart-category-arrow:hover {
    color: #ef4444;
    border-color: #fecaca;
}

.w2c-cart-categories {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 2px 0 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.w2c-cart-categories a {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.w2c-cart-categories a:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fff;
}

.w2c-cart-hero {
    margin-bottom: 14px;
}

.w2c-cart-hero h1 {
    margin: 0 0 5px;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: 0;
}

.w2c-cart-hero p {
    margin: 0;
    max-width: 720px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.w2c-cart-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.w2c-cart-controls {
    display: grid;
    grid-template-columns: minmax(190px, 280px) 1fr;
    gap: 14px;
    align-items: end;
}

.w2c-cart-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.w2c-agent-picker {
    position: relative;
}

.w2c-agent-select-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: contain;
    background: #fff;
}

.w2c-agent-picker-button {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    cursor: pointer;
}

.w2c-agent-picker-button span {
    flex: 1;
    text-align: left;
}

.w2c-agent-picker-button i {
    font-size: 12px;
}

.w2c-agent-picker-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    display: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(17, 24, 39, .14);
    padding: 4px;
}

.w2c-agent-picker.is-open .w2c-agent-picker-list {
    display: block;
}

.w2c-agent-picker-list button {
    width: 100%;
    border: 0;
    background: #fff;
    color: #111827;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.w2c-agent-picker-list button:hover,
.w2c-agent-picker-list button.is-active {
    background: #f3f4f6;
}

.w2c-agent-picker-list img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    object-fit: contain;
    background: #fff;
}

.w2c-cart-select {
    display: none;
}

.w2c-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.w2c-cart-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 13px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    background: #111827;
    color: #fff;
}

.w2c-cart-btn.secondary {
    background: #f3f4f6;
    color: #111827;
}

.w2c-cart-btn.danger {
    background: #fee2e2;
    color: #991b1b;
}

.w2c-cart-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.w2c-cart-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 800;
}

.w2c-cart-message {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 13px;
}

@media (min-width: 769px) {
    .w2c-cart-category-arrow {
        display: none !important;
    }
}

.w2c-cart-list {
    display: grid;
    gap: 14px;
}

.w2c-cart-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.w2c-cart-item img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.w2c-cart-item h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.w2c-cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 13px;
}

.w2c-cart-status {
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 800;
    background: #f3f4f6;
    color: #374151;
}

.w2c-cart-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.w2c-cart-status.opened {
    background: #dbeafe;
    color: #1d4ed8;
}

.w2c-cart-status.parsed {
    background: #dcfce7;
    color: #166534;
}

.w2c-cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.w2c-cart-item-actions a,
.w2c-cart-item-actions button {
    border: 0;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.w2c-cart-item-actions a {
    background: #f3f4f6;
    color: #111827;
}

.w2c-cart-empty {
    text-align: center;
    padding: 52px 16px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #4b5563;
}

.w2c-cart-disclaimer {
    margin-top: 20px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .w2c-cart-float {
        display: flex;
    }

    .w2c-cart-category-arrow {
        display: inline-flex;
    }

    .w2c-cart-categories {
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .w2c-cart-categories::-webkit-scrollbar {
        display: none;
    }

    .w2c-cart-hero {
        display: block;
    }

    .w2c-cart-controls {
        grid-template-columns: 1fr;
    }

    .w2c-cart-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .w2c-cart-item {
        grid-template-columns: 86px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .w2c-cart-item img {
        width: 86px;
        height: 86px;
    }

    .w2c-cart-item-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
