/* Match the existing trust-bar typography, including inherited GM font sizes. */
.dgb-legal-guarantee-row,
.german-market-legal-guarantee-label-cart,
.german-market-legal-guarantee-label-checkout {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Wrapper Warenkorb/Kasse: kompakte Zeile statt Box */
.german-market-legal-guarantee-label-cart,
.german-market-legal-guarantee-label-checkout {
    margin: 16px 0 !important;
    padding: 12px 0;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.dgb-legal-guarantee-row {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}

/* Trigger als dezente Zeile im Stil der Trust-Bar */
.german-market-legal-guarantee-label-trigger,
.german-market-legal-guarantee-label-trigger:hover,
.german-market-legal-guarantee-label-trigger:focus,
.german-market-legal-guarantee-label-trigger:active {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
    font: inherit;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: 1.5;
    text-align: left;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.german-market-legal-guarantee-label-trigger::before {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--dgb-red-soft, rgba(177, 47, 56, 0.07));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b12f38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.german-market-legal-guarantee-label-trigger::after {
    content: "Details";
    margin-left: auto;
    text-decoration: underline;
    flex-shrink: 0;
    font-size: 12px;
    color: #6b6b6b;
    text-underline-offset: 3px;
}

.german-market-legal-guarantee-label-trigger:hover::after {
    color: var(--dgb-red, #b12f38);
}

.german-market-legal-guarantee-label-trigger:focus-visible {
    outline: 2px solid var(--dgb-red, #b32d2e) !important;
    outline-offset: 2px;
}

/* Popup — visibility and interactions remain owned by German Market. */
.german-market-legal-guarantee-label-modal {
    background: rgba(0, 0, 0, .6) !important;
}

.german-market-legal-guarantee-label-dialog {
    max-width: min(560px, 92vw) !important;
    max-height: 90vh;
    overflow: auto;
    padding: 48px 24px 24px !important;
    border-radius: 16px !important;
    background: #fff !important;
    font-family: inherit;
}

.german-market-legal-guarantee-label-dialog img {
    display: block;
    width: 100%;
    height: auto;
}

.german-market-legal-guarantee-label-figure {
    margin: 0 !important;
}

.german-market-guarantee-label-close,
.german-market-guarantee-label-close:hover,
.german-market-guarantee-label-close:focus,
.german-market-guarantee-label-close:active {
    position: absolute !important;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.german-market-guarantee-label-close:hover {
    opacity: .6;
}

.german-market-guarantee-label-close-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}