.knowhouse-offerte-cart {
    margin-bottom: 30px;
}

.knowhouse-offerte-button-wrapper {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.knowhouse-offerte-action-message {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(0, 128, 0, 0.08);
    color: #1f7a1f;
    font-weight: 600;
    border: 1px solid rgba(0, 128, 0, 0.18);
}

.knowhouse-offerte-action-message.is-visible {
    display: block;
}

.knowhouse-offerte-action-message a {
    color: inherit;
    text-decoration: underline;
}

.knowhouse-offerte-cart__summary-note {
    margin-bottom: 12px;
    font-weight: 600;
    color: #0060a9;
}

.knowhouse-offerte-cart__summary-note.is-highlight {
    padding: 16px 18px;
    border: 1px solid rgba(0, 128, 0, 0.18);
    border-radius: 8px;
    background: rgba(0, 128, 0, 0.06);
    color: #1f7a1f;
}

.knowhouse-offerte-cart__summary-note__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.knowhouse-offerte-cart__summary-note__content strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.knowhouse-offerte-cart__summary-note__content strong::before {
    content: '\f00c';
    font-family: 'fontawesome';
    font-weight: 900;
    color: #fff;
    background: #1f7a1f;
    border-radius: 999px;
    width: 18px;
    height: 18px;
    font-size: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.knowhouse-offerte-cart__summary-note__content p {
    margin: 0;
    font-weight: 500;
}

.knowhouse-offerte-cart__items {
    display: grid;
    gap: 12px;
}

.knowhouse-offerte-cart__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--color-content-border);
    border-radius: 8px;
    background: var(--color-content-bg);
}

.knowhouse-offerte-cart__content {
    min-width: 0;
}

.knowhouse-offerte-cart__content strong {
    display: inline-block;
    margin-bottom: 4px;
}

.knowhouse-offerte-cart__content a {
    color: inherit;
    text-decoration: none;
}

.knowhouse-offerte-cart__content a:hover {
    text-decoration: underline;
}

.knowhouse-offerte-cart__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.knowhouse-remove-offerte-item {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.knowhouse-offerte-cart__empty,
.knowhouse-offerte-cart__notice {
    padding: 20px;
    border: 1px dashed var(--color-content-border);
    border-radius: 8px;
}

.knowhouse-offerte-cart__shared-notice {
    padding: 16px 18px;
    border: 1px solid rgba(0, 90, 180, 0.18);
    border-radius: 8px;
    background: rgba(0, 96, 169, 0.06);
    color: #0060a9;
}

.knowhouse-offerte-cart__shared-notice strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.knowhouse-offerte-cart__shared-notice strong::before {
    font-family: 'fontawesome';
    font-weight: 900;
    content: '\f05a';
}

.knowhouse-offerte-cart__share {
    margin-top: 24px;
}

.knowhouse-offerte-cart__share.is-hidden,
.knowhouse-share-offerte-cart.is-hidden {
    display: none !important;
}

.knowhouse-offerte-cart__share-result {
    margin-top: 12px;
}

.knowhouse-offerte-cart__share-box,
.knowhouse-offerte-cart__share-error {
    padding: 16px 18px;
    border-radius: 8px;
}

.knowhouse-offerte-cart__share-box {
    border: 1px solid var(--color-content-border);
    background: var(--color-content-bg);
}

.knowhouse-offerte-cart__share-error {
    border: 1px solid rgba(180, 0, 0, 0.2);
    background: rgba(180, 0, 0, 0.06);
}

.knowhouse-offerte-cart__share-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.knowhouse-offerte-cart__share-field .knowhouse-copy-offerte-cart-link {
    flex-shrink: 0;
    white-space: nowrap;
}

.knowhouse-offerte-cart__share-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-content-border) !important;
    background: var(--color-content-bg) !important;
    padding: 0 1rem !important;
    border-radius: 8px !important;
}

.knowhouse-offerte-cart__shared-notice-container {
    margin-bottom: 20px !important;
}

.knowhouse-offerte-cart__status {
    margin-top: 24px;
    margin-bottom: 24px;
}

.knowhouse-offerte-cart__status.is-empty-state {
    margin-bottom: 24px;
}

.knowhouse-offerte-message {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(0, 128, 0, 0.08);
    color: #1f7a1f;
    font-weight: 600;
}

.knowhouse-offerte-message.is-visible {
    display: block;
}

.knowhouse-view-offerte-cart-link {
    display: none !important;
    margin-top: 12px;
}

.knowhouse-view-offerte-cart-link.is-visible {
    display: inline-block !important;
}

.knowhouse-add-selected-offerte.is-hidden {
    display: none !important;
}

.selected-offerte-field.gf-hidden {
    display: none !important;
}

.single-aanbod .knowhouse-open-offerte-popup {
    width: 100%;
}

.single-aanbod #offerte-aanvragen {
    display: none;
}

.leerpad-knop {
    position: relative;
    padding-right: 42px;
}

.knowhouse-offerte-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 6px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: #009525;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    position: absolute;
    top: -0.8em;
    right: -0.8em;
}

.knowhouse-offerte-count-badge:empty {
    display: none;
}

@media (max-width: 767px) {
    .knowhouse-offerte-cart__item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .knowhouse-offerte-cart__actions {
        width: 100%;
        justify-content: space-between;
    }

    .knowhouse-offerte-cart__share-field {
        align-items: stretch;
        flex-direction: column;
    }
}


.knowhouse-offerte-panel {
    position: fixed;
    z-index: 1000000000;
    top: 0;
    right: 0;

    width: min(510px, 100%);
    height: 100dvh;

    background: #fff;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;

    padding: 30px;
}
@media screen and (max-width: 600px) {
    .knowhouse-offerte-panel {
        padding: 1rem !important;
    }
}

.knowhouse-offerte-panel.is-open {
    transform: translateX(0);
}


/* Overlay */

.knowhouse-offerte-panel-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.knowhouse-offerte-panel-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* Header */

.knowhouse-offerte-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.knowhouse-offerte-panel__header h3 {
    margin: 0;
}

.knowhouse-offerte-panel__close {
    border: 0;
    background: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}


/* Items */

.knowhouse-offerte-panel__items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.knowhouse-offerte-panel__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--color-content-border);
    border-radius: 8px;
    background: var(--color-content-bg);
    margin-bottom: 12px;
}

.knowhouse-offerte-panel__item-content { flex: 1; }
.knowhouse-offerte-panel__item-content a { font-weight: 600; }
.knowhouse-offerte-panel__item .knowhouse-remove-offerte-item { flex-shrink: 0; }

/* Footer */
.knowhouse-offerte-panel__footer .w-btn { width: 100%; }
.knowhouse-offerte-panel__footer {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.knowhouse-offerte-panel__summary-note:empty {
    display: none;
}

.knowhouse-offerte-panel__summary-note.is-highlight {
    padding: 16px 18px;
    border: 1px solid #b8dfbd;
    background: #f1faf2;
    border-radius: 8px;
    color: #198b28;
}

.knowhouse-offerte-panel__summary-note p {
    margin: 5px 0 0;
}

.knowhouse-offerte-panel__shared-notice:empty {
    display: none;
}

.knowhouse-offerte-panel__shared-notice {
    margin-bottom: 20px;
}