/**
 * Mawi Warenkorb-Hinweis
 * Farbwerte aus mawi-ci/references/farbkonzept.md:
 *   Mawi-Blau #1668af (Marke)  |  CTA-Orange #ef7d00 (Handlung)
 *   Tinte #26343f (Text)       |  Grau #64717c (Sekundaer)
 * Eckenregel: oben rechts immer spitz.
 */

.mawi-hinweis-locked {
    overflow: hidden;
}

.mawi-hinweis-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(38, 52, 63, 0.55);
    animation: mawi-hinweis-fade 0.15s ease-out;
}

@keyframes mawi-hinweis-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mawi-hinweis-box {
    width: 100%;
    max-width: 32rem;
    max-height: 85vh;
    overflow-y: auto;
    background: #f5f9fc;
    border: 1px solid #c3d7e8;
    border-radius: 12px 0 12px 12px;
    box-shadow: 0 12px 32px rgba(38, 52, 63, 0.25);
    color: #26343f;
    font-family: inherit;
}

.mawi-hinweis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid #d5e4f0;
}

.mawi-hinweis-titel {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1668af;
}

.mawi-hinweis-close {
    flex: 0 0 auto;
    margin: -0.25rem -0.5rem 0 0;
    padding: 0 0.5rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #64717c;
    cursor: pointer;
}

.mawi-hinweis-close:hover {
    color: #26343f;
}

.mawi-hinweis-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
}

.mawi-hinweis-body > *:first-child { margin-top: 0; }
.mawi-hinweis-body > *:last-child  { margin-bottom: 0; }

.mawi-hinweis-body a {
    color: #1668af;
}

.mawi-hinweis-foot {
    padding: 0 1.5rem 1.5rem;
    text-align: right;
}

.mawi-hinweis-btn {
    padding: 0.6rem 1.5rem;
    border: 0;
    border-radius: 8px 0 8px 8px;
    background: #ef7d00;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.mawi-hinweis-btn:hover,
.mawi-hinweis-btn:focus {
    background: #d97100;
}

@media (max-width: 480px) {
    .mawi-hinweis-head { padding: 1rem 1rem 0.75rem; }
    .mawi-hinweis-body { padding: 1rem; }
    .mawi-hinweis-foot { padding: 0 1rem 1rem; }
}

/* ---------- Produktkacheln im Dialog ---------- */

.mawi-hinweis-box {
    max-width: 44rem;
}

.mawi-hinweis-produkte-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d5e4f0;
}

.mawi-hinweis-produkte-wrap .card,
.mawi-hinweis-produkte-wrap .product-box {
    background: #fff;
}

/* Der Dialog ist schmaler als das Listing - Kacheln etwas kompakter. */
.mawi-hinweis-produkte-wrap .product-image-wrapper {
    height: auto;
}

/* ---------- Hinweis-Link auf der Produktdetailseite ---------- */

.mawi-hinweis-seitenlink {
    margin-top: 0.75rem;
}

.mawi-hinweis-seitenlink-btn {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1668af;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.mawi-hinweis-seitenlink-btn:hover,
.mawi-hinweis-seitenlink-btn:focus {
    color: #ef7d00;
}

.mawi-hinweis-seitenlink-btn::before {
    content: "→ ";
    text-decoration: none;
    display: inline-block;
}
