.gzw-wishlist {
    --gzw-blue: #0769aa;
    --gzw-green: #237a3b;
    --gzw-red: #a52a2a;
    margin: 2rem 0;
}

.gzw-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gzw-header h2,
.gzw-header p {
    margin: 0;
}

.gzw-storage-note {
    color: #5d6670;
    margin-top: .35rem !important;
}

.gzw-header-main {
    width: 100%;
}

.gzw-list-tools,
.gzw-create-list {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.gzw-list-tools {
    margin-top: 1rem;
}

.gzw-list-tools select {
    min-width: min(320px, 68vw);
    min-height: 50px;
    padding-right: 2.5rem;
    font-size: 1.12rem;
    font-weight: 600;
}

.gzw-create-list input {
    min-height: 42px;
}

.gzw-create-list {
    flex-basis: 100%;
    justify-content: flex-end;
}

.gzw-create-list label {
    display: grid;
    gap: .25rem;
}

.gzw-notice {
    border-left: 4px solid var(--gzw-blue);
    background: #eef7fd;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
}

.gzw-notice.is-error {
    border-color: var(--gzw-red);
    background: #fff0f0;
}

.gzw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.2rem;
}

.gzw-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 42, 62, .08);
}

.gzw-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f4f6f8;
}

.gzw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gzw-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .65rem;
    padding: 1rem;
}

.gzw-card h3,
.gzw-card p {
    margin: 0;
}

.gzw-sku {
    color: #66717b;
    font-size: .85rem;
}

.gzw-shop {
    display: grid;
    gap: .4rem;
    margin-top: auto;
}

.gzw-shop.is-stock span {
    color: var(--gzw-green);
}

.gzw-shop.is-out span,
.gzw-shop.is-error span {
    color: var(--gzw-red);
}

.gzw-price {
    font-size: 1.25rem;
}

.gzw-remove {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #56616a;
    cursor: pointer;
    text-decoration: underline;
}

.gzw-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .65rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.gzw-toggle.is-active,
.gzw-toggle[aria-pressed="true"] {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.gzw-heart {
    font-size: 1.15em;
    line-height: 1;
}

.gzw-toggle.is-active .gzw-heart,
.gzw-toggle[aria-pressed="true"] .gzw-heart {
    transform: scale(1.12);
}

.gzw-count {
    display: inline-grid;
    min-width: 1.5em;
    min-height: 1.5em;
    place-items: center;
    border-radius: 999px;
    background: var(--gzw-blue);
    color: #fff;
    font-size: .75em;
    line-height: 1;
}

.gzw-list-manager-wrap {
    width: 100%;
    margin-top: 1rem;
}

.gzw-list-manager {
    display: grid;
    gap: .8rem;
    width: min(100%, 620px);
    border-top: 1px solid rgba(69, 98, 134, .22);
    padding-top: 1rem;
}

.gzw-current-list-head {
    display: grid;
    gap: .25rem;
}

.gzw-current-list-head h2 {
    margin: 0;
    color: #344f70;
}

.gzw-current-list-head span {
    color: #697681;
    font-size: .9rem;
}

.gzw-list-actions,
.gzw-list-rename-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.gzw-list-delete-button {
    border-color: #b51f1f !important;
    background: #fff !important;
    color: #a51f1f !important;
}

.gzw-list-delete-button:hover,
.gzw-list-delete-button:focus-visible {
    background: #c62828 !important;
    color: #fff !important;
}

.gzw-list-delete-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.gzw-list-manager.is-renaming .gzw-current-list-head,
.gzw-list-manager.is-renaming .gzw-list-actions {
    display: none;
}

.gzw-list-rename-form[hidden] {
    display: none !important;
}

.gzw-list-rename-form {
    display: grid;
    gap: .7rem;
    width: min(100%, 480px);
}

.gzw-list-rename-form label {
    display: grid;
    gap: .35rem;
}

.gzw-list-rename-form label > span {
    font-size: 1.08rem;
    font-weight: 600;
}

.gzw-list-rename-form input {
    width: 100%;
    min-height: 50px;
    border: 2px solid var(--gzw-blue);
    border-radius: 3px;
    padding: .55rem .65rem;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.gzw-delete-dialog[hidden] {
    display: none !important;
}

.gzw-delete-dialog {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.gzw-delete-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 44, .62);
}

.gzw-delete-dialog-panel {
    position: relative;
    width: min(430px, 100%);
    border-radius: 8px;
    background: #fff;
    color: #252b31;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
    padding: 1.35rem;
    text-align: center;
}

.gzw-delete-dialog-panel h2 {
    margin: 0 0 .55rem;
}

.gzw-delete-dialog-panel p {
    margin: 0 0 1.15rem;
    font-weight: 700;
}

.gzw-delete-dialog-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
}

.gzw-delete-yes {
    border-color: #b51f1f !important;
    background: #c62828 !important;
    color: #fff !important;
}

.gzw-picker[hidden] {
    display: none !important;
}

.gzw-picker {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.gzw-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 44, .62);
}

.gzw-picker-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 2rem));
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    color: #252b31;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
    padding: 1.25rem;
}

.gzw-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gzw-picker-header h2 {
    margin: 0;
}

.gzw-picker-x {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gzw-picker-lists {
    display: grid;
    gap: .65rem;
}

.gzw-picker-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    padding: .8rem;
}

.gzw-picker-list > div {
    display: grid;
    gap: .15rem;
}

.gzw-picker-list span {
    color: #66717b;
    font-size: .88rem;
}

.gzw-picker-list.has-product {
    border-color: currentColor;
}

.gzw-picker-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d8dee4;
}

.gzw-picker-create label {
    display: grid;
    gap: .35rem;
}

.gzw-picker-create input {
    width: 100%;
}

.gzw-picker-cancel {
    margin-top: 1rem;
}

.gzw-picker-notice {
    margin-bottom: .75rem;
    border-radius: 4px;
    background: #edf7ed;
    padding: .65rem .8rem;
}

.gzw-picker-notice.is-error {
    background: #fff0f0;
    color: #8f1d1d;
}

.gzw-picker-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .gzw-header,
    .gzw-list-tools,
    .gzw-create-list {
        align-items: stretch;
        flex-direction: column;
    }

    .gzw-create-list {
        justify-content: flex-start;
    }

    .gzw-picker-list,
    .gzw-picker-create {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

}
