.wishlistelements-product-actions {
    margin-top: 0.75rem;
}

.wishlistelements-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

/* Self-contained button: avoids PS8 .btn-outline-secondary { color: transparent } */
.wishlistelements-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #363a41;
    background-color: #fff;
    background-image: none;
    border: 2px solid #363a41;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wishlistelements-btn-add:hover,
.wishlistelements-btn-add:focus {
    color: #fff;
    background-color: #363a41;
    border-color: #363a41;
    outline: none;
}

.wishlistelements-btn-add .material-icons {
    font-size: 1.25rem;
    line-height: 1;
}

.wishlistelements-btn-add__icon--saved {
    display: none;
}

.wishlistelements-btn-add--in-list {
    color: #fff;
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.wishlistelements-btn-add--in-list:hover,
.wishlistelements-btn-add--in-list:focus {
    color: #fff;
    background-color: #256628;
    border-color: #256628;
}

.wishlistelements-btn-add--in-list .wishlistelements-btn-add__icon--add {
    display: none;
}

.wishlistelements-btn-add--in-list .wishlistelements-btn-add__icon--saved {
    display: inline-flex;
}

.wishlistelements-btn-add--loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.wishlistelements-btn-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #363a41;
    background-color: #fff;
    background-image: none;
    border: 2px solid #363a41;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wishlistelements-btn-direct:hover,
.wishlistelements-btn-direct:focus {
    color: #fff;
    background-color: #363a41;
    border-color: #363a41;
    outline: none;
}

.wishlistelements-btn-direct .material-icons {
    font-size: 1.25rem;
    line-height: 1;
}

.wishlistelements-btn-direct__icon--saved {
    display: none;
}

.wishlistelements-btn-direct--in-list {
    color: #fff;
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.wishlistelements-btn-direct--in-list:hover,
.wishlistelements-btn-direct--in-list:focus {
    color: #fff;
    background-color: #256628;
    border-color: #256628;
}

.wishlistelements-btn-direct--in-list .wishlistelements-btn-direct__icon--add {
    display: none;
}

.wishlistelements-btn-direct--in-list .wishlistelements-btn-direct__icon--saved {
    display: inline-flex;
}

.wishlistelements-btn-direct--loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

body.wishlistelements-modal-open {
    overflow: hidden;
}

.wishlistelements-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.wishlistelements-modal[hidden] {
    display: none !important;
}

.wishlistelements-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.wishlistelements-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    max-height: min(32rem, 85vh);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wishlistelements-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.wishlistelements-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #363a41;
}

.wishlistelements-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wishlistelements-modal__close:hover,
.wishlistelements-modal__close:focus {
    color: #363a41;
    background-color: #f1f3f5;
    outline: none;
}

.wishlistelements-modal__close .material-icons {
    font-size: 1.375rem;
    line-height: 1;
}

.wishlistelements-modal__body {
    flex: 1;
    min-height: 0;
    padding: 0.5rem;
    overflow-y: auto;
}

.wishlistelements-panel__lists {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wishlistelements-panel__item {
    margin: 0;
    padding: 0;
}

.wishlistelements-panel__option {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 5px 0;
    border-radius: 6px;
    background: transparent;
    transition: background-color 0.15s ease;
}

.wishlistelements-panel__option:hover:not(.wishlistelements-panel__option--disabled):not(.wishlistelements-panel__option--loading) {
    background-color: #f5f5f5;
}

.wishlistelements-panel__option:focus-within:not(.wishlistelements-panel__option--disabled) {
    background-color: #eef3f5;
    outline: none;
}

.wishlistelements-panel__option--disabled {
    opacity: 0.55;
}

.wishlistelements-panel__option--selected {
    background-color: #e8f5e9;
}

.wishlistelements-panel__option--selected:hover:not(.wishlistelements-panel__option--disabled):not(.wishlistelements-panel__option--loading) {
    background-color: #dff1e0;
}

.wishlistelements-panel__option--loading {
    opacity: 0.6;
    pointer-events: none;
}

.wishlistelements-panel__toggle {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.75rem 0 0.75rem 0.875rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    color: #363a41;
    background: transparent;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

.wishlistelements-panel__toggle:focus {
    outline: none;
}

.wishlistelements-panel__toggle:disabled {
    cursor: not-allowed;
}

.wishlistelements-panel__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #c9d0d6;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wishlistelements-panel__icon .material-icons {
    font-size: 1.125rem;
    line-height: 1;
}

.wishlistelements-panel__icon-check {
    display: none;
    color: #fff;
}

.wishlistelements-panel__option--selected .wishlistelements-panel__icon {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.wishlistelements-panel__option--selected .wishlistelements-panel__icon-add {
    display: none;
}

.wishlistelements-panel__option--selected .wishlistelements-panel__icon-check {
    display: inline-flex;
}

.wishlistelements-panel__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wishlistelements-panel__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.wishlistelements-panel__count {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    color: #6c757d;
}

.wishlistelements-panel__view-link {
    flex-shrink: 0;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #363a41;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
    transition: color 0.15s ease;
}

.wishlistelements-panel__view-link:hover,
.wishlistelements-panel__view-link:focus {
    color: #2e7d32;
    text-decoration: underline;
    outline: none;
}

.wishlistelements-panel__empty {
    margin: 0;
    padding: 1rem 0.875rem;
    font-size: 0.9375rem;
    color: #6c757d;
}

.wishlistelements-toasts {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10060;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: min(22rem, calc(100vw - 2.5rem));
    pointer-events: none;
}

.wishlistelements-toast {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background-color: #c62828;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wishlistelements-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 576px) {
    .wishlistelements-btn-add {
        width: auto;
        min-width: 12rem;
        flex: 1 1 auto;
    }

    .wishlistelements-btn-direct {
        flex: 0 1 auto;
    }

    .wishlistelements-modal__dialog {
        max-width: 32rem;
        max-height: min(36rem, 85vh);
    }
}
