:root {
    --mmm-wl-border: #d9d9d9;
    --mmm-wl-muted: #6b6b6b;
    --mmm-wl-bg-soft: #f7faf9;
    --mmm-wl-danger: #8d2424;
}

.mmm-wl-trigger-wrap {
    margin-top: 10px;
}

.mmm-wl-trigger-wrap--loop {
    width: 100%;
}

.mmm-wl-trigger {
    appearance: none;
    box-sizing: border-box;
    min-height: 40px;
    border: 1px solid var(--mmm-wl-border);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

.mmm-wl-trigger-wrap--loop .mmm-wl-trigger {
    width: 100%;
}

.mmm-wl-trigger:hover,
.mmm-wl-trigger:focus,
.mmm-wl-trigger:active {
    border-width: 1px;
    transform: none;
    box-shadow: none;
}

.mmm-wl-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mmm-wl-heart {
    font-size: 20px;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.mmm-wl-trigger.is-saved .mmm-wl-heart {
    font-size: 18px;
}

html.mmm-wl-modal-open,
html.mmm-wl-modal-open body {
    overflow: hidden;
}

.mmm-wl-modal[hidden] {
    display: none !important;
}

.mmm-wl-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mmm-wl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .46);
}

.mmm-wl-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
}

.mmm-wl-modal__dialog h2 {
    margin: 0 42px 8px 0;
}

.mmm-wl-modal__hint {
    margin: 0 42px 18px 0;
    color: var(--mmm-wl-muted);
    font-size: .94em;
    line-height: 1.45;
}

.mmm-wl-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mmm-wl-list-choices {
    border-top: 1px solid var(--mmm-wl-border);
}

.mmm-wl-list-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mmm-wl-border);
    cursor: pointer;
}

.mmm-wl-list-choice__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mmm-wl-list-choice__main input {
    margin: 0;
}

.mmm-wl-list-choice__count {
    color: var(--mmm-wl-muted);
    font-size: .92em;
}

.mmm-wl-modal-create {
    margin-top: 22px;
}

.mmm-wl-modal-create > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.mmm-wl-modal-create__row {
    display: flex;
    gap: 8px;
}

.mmm-wl-modal-create__row input {
    flex: 1 1 auto;
    min-width: 0;
}

.mmm-wl-modal__account-link {
    margin: 20px 0 0;
    text-align: right;
}

.mmm-wl-loading,
.mmm-wl-error {
    margin: 0;
}

.mmm-wl-error {
    color: var(--mmm-wl-danger);
}

.mmm-wl-account__header {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mmm-wl-account__header h2,
.mmm-wl-account__header p {
    margin-top: 0;
}

.mmm-wl-create-form {
    display: flex;
    gap: 8px;
    flex: 0 1 480px;
}

.mmm-wl-create-form input {
    flex: 1 1 auto;
    min-width: 0;
}

.mmm-wl-account-list {
    border: 1px solid var(--mmm-wl-border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.mmm-wl-account-list__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.mmm-wl-account-list__top h3 {
    margin: 0 0 3px;
}

.mmm-wl-account-list__count {
    margin: 0;
    color: var(--mmm-wl-muted);
}

.mmm-wl-account-list__actions summary {
    cursor: pointer;
}

.mmm-wl-account-list__manage {
    min-width: min(380px, calc(100vw - 70px));
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--mmm-wl-border);
    background: #fff;
}

.mmm-wl-account-list__manage form + form {
    margin-top: 12px;
}

.mmm-wl-account-list__manage label,
.mmm-wl-account-list__manage input {
    display: block;
    width: 100%;
}

.mmm-wl-account-list__manage input {
    margin: 5px 0 8px;
}

.mmm-wl-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mmm-wl-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--mmm-wl-border);
    background: #fff;
}

.mmm-wl-product-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--mmm-wl-bg-soft);
}

.mmm-wl-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.mmm-wl-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px;
}

.mmm-wl-product-card__body h4 {
    margin: 0 0 8px;
    font-size: 1em;
}

.mmm-wl-product-card__price {
    margin-bottom: 6px;
}

.mmm-wl-stock {
    margin: 0 0 12px;
    font-size: .9em;
}

.mmm-wl-stock.is-out-of-stock {
    color: var(--mmm-wl-muted);
}

.mmm-wl-product-card__buttons {
    margin-top: auto;
}

.mmm-wl-product-card__buttons .button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mmm-wl-remove-form {
    margin-top: 8px;
    text-align: center;
}

.mmm-wl-text-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
    font: inherit;
    font-size: .9em;
}

.mmm-wl-button-danger {
    color: var(--mmm-wl-danger) !important;
}

.mmm-wl-empty {
    margin: 0;
    padding: 18px;
    background: var(--mmm-wl-bg-soft);
}

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

    .mmm-wl-account__header {
        align-items: stretch;
        flex-direction: column;
    }

    .mmm-wl-create-form {
        flex-basis: auto;
    }
}

@media (max-width: 600px) {
    .mmm-wl-modal-create__row,
    .mmm-wl-create-form,
    .mmm-wl-account-list__top {
        flex-direction: column;
    }

    .mmm-wl-products {
        grid-template-columns: 1fr;
    }

    .mmm-wl-account-list__manage {
        min-width: 0;
        width: 100%;
    }
}

.mmm-wl-share-panel {
    margin: 0 0 20px;
    padding: 15px;
    border: 1px solid var(--mmm-wl-border);
    background: var(--mmm-wl-bg-soft);
    border-radius: 4px;
}

.mmm-wl-share-panel__intro strong {
    display: block;
    margin-bottom: 3px;
}

.mmm-wl-share-panel__intro p {
    margin: 0 0 12px;
    color: var(--mmm-wl-muted);
}

.mmm-wl-share-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mmm-wl-share-url-row input {
    width: 100%;
    min-width: 0;
}

.mmm-wl-copy-status {
    grid-column: 1 / -1;
    min-height: 1.2em;
    font-size: .88em;
    color: var(--mmm-wl-muted);
}

.mmm-wl-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mmm-wl-share-actions form {
    margin: 0;
}

.mmm-wl-shared-page {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 72px;
}

.mmm-wl-shared-page__header {
    max-width: 760px;
    margin-bottom: 30px;
}

.mmm-wl-shared-page__header h1 {
    margin-top: 0;
}

.mmm-wl-shared-page__eyebrow {
    margin: 0 0 6px;
    font-size: .9em;
    color: var(--mmm-wl-muted);
}

.mmm-wl-product-card__title {
    margin: 0 0 8px;
    font-size: 1em;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .mmm-wl-share-url-row {
        grid-template-columns: 1fr;
    }

    .mmm-wl-copy-status {
        grid-column: 1;
    }

    .mmm-wl-share-actions {
        flex-direction: column;
    }

    .mmm-wl-share-actions form,
    .mmm-wl-share-actions .button,
    .mmm-wl-share-url-row .button {
        width: 100%;
    }

    .mmm-wl-shared-page {
        width: min(100% - 28px, 1180px);
        margin-top: 30px;
    }
}

.mmm-wl-share-preview {
    margin: 3px 0 0;
    font-size: .92em;
}

/* Single-Product-Platzierung ------------------------------------------------ */
.single-product .mmm-wl-trigger-wrap--single {
    clear: both;
    display: block;
    position: static !important;
    inset: auto !important;
    float: none !important;
    z-index: auto;
    margin-top: 12px;
    margin-bottom: 0;
}

.single-product .mmm-wl-trigger-wrap--single.mmm-wl-awaiting-position {
    display: none !important;
}

.single-product .mmm-wl-trigger-wrap--single .mmm-wl-trigger {
    max-width: 100%;
}

.mmm-wl-share-live-status {
    margin: -6px 0 12px;
    color: #066600;
    font-size: .92em;
}

.mmm-wl-share-error {
    margin: 12px 0 0;
    color: var(--mmm-wl-danger);
    font-size: .92em;
}

.mmm-wl-share-form button[aria-busy="true"] {
    opacity: .65;
    cursor: wait;
}

/* Erfüllte Wünsche und Mengen ------------------------------------------------ */
.mmm-wl-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.mmm-wl-create-form__option {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 2px;
    font-size: .9em;
    line-height: 1.35;
    color: var(--mmm-wl-muted);
}

.mmm-wl-create-form__option input[type="checkbox"],
.mmm-wl-account-list__manage .mmm-wl-checkbox-label input[type="checkbox"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: .18em 0 0;
}

.mmm-wl-account-list__manage .mmm-wl-checkbox-label {
    display: flex;
    width: auto;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    line-height: 1.35;
}

.mmm-wl-help {
    margin: 7px 0 9px;
    color: var(--mmm-wl-muted);
    font-size: .88em;
    line-height: 1.4;
}

.mmm-wl-account-list__progress {
    margin: 3px 0 0;
    color: var(--mmm-wl-accent, #066600);
    font-size: .92em;
}

.mmm-wl-fulfillment {
    margin: 0 0 12px;
    padding: 10px;
    background: var(--mmm-wl-bg-soft);
    border-radius: 4px;
}

.mmm-wl-fulfillment.is-fulfilled {
    border-left: 3px solid var(--mmm-wl-accent, #066600);
}

.mmm-wl-fulfillment__status {
    margin: 0 0 8px;
    font-size: .9em;
}

.mmm-wl-quantity-form {
    display: flex;
    align-items: end;
    gap: 7px;
    margin: 0;
}

.mmm-wl-quantity-form label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    font-size: .82em;
    color: var(--mmm-wl-muted);
}

.mmm-wl-quantity-form input[type="number"] {
    width: 68px;
    min-height: 34px;
    margin: 0;
    padding: 4px 7px;
}

.mmm-wl-small-button {
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid var(--mmm-wl-border);
    border-radius: 3px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: .82em;
    cursor: pointer;
}

.mmm-wl-public-fulfillment {
    margin: -4px 0 12px;
    font-size: .9em;
    color: var(--mmm-wl-muted);
}

.mmm-wl-public-fulfillment.is-fulfilled,
.mmm-wl-shared-page__progress {
    color: var(--mmm-wl-accent, #066600);
}

.mmm-wl-shared-page__progress {
    margin-top: 10px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .mmm-wl-create-form {
        grid-template-columns: 1fr;
    }

    .mmm-wl-create-form > .button,
    .mmm-wl-create-form > input[type="text"] {
        width: 100%;
    }

    .mmm-wl-create-form__option {
        grid-column: 1;
    }
}

.mmm-wl-modal-create__option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    font-size: .88em;
    line-height: 1.35;
    color: var(--mmm-wl-muted);
}

.mmm-wl-modal-create__option input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin-top: .18em;
}

.mmm-wl-share-panel__purchase-mode {
    margin-top: -5px !important;
    font-weight: 600;
    color: var(--mmm-wl-accent, #066600) !important;
}
