/* CartAddMate Widget CSS */

/* ═══ EIGENES POPUP / OVERLAY ═══════════════════════════════════════════════ */

.caw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cawFadeIn 0.2s ease;
}

@keyframes cawFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.caw-popup {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: cawSlideUp 0.25s ease;
    /* Isoliert vom Theme – eigene Schriftgröße */
    font-size: 16px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #111;
    box-sizing: border-box;
}

@keyframes cawSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.caw-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.caw-popup__close:hover { background: #f0f0f0; color: #333; }

.caw-popup__heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 36px 6px 0;
    color: #111;
}

.caw-popup__sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* Produktkarte im Popup */
.caw-popup__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.caw-popup__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.caw-popup__info { flex: 1; min-width: 0; }

.caw-popup__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caw-popup__variant {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.caw-popup__price {
    display: block;
    font-size: 14px;
    color: #444;
}

.caw-popup__badge--free {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #e6f4ea;
    color: #2a7a3b;
}

/* Buttons im Popup */
.caw-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caw-popup__btn-add {
    padding: 14px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.15s;
    width: 100%;
}
.caw-popup__btn-add:hover    { opacity: 0.85; }
.caw-popup__btn-add:disabled { opacity: 0.5; cursor: default; }

.caw-popup__btn-skip {
    padding: 10px 16px;
    background: transparent;
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: color 0.15s;
}
.caw-popup__btn-skip:hover { color: #333; }

/* ═══ /CART-SEITE: WIDGET ════════════════════════════════════════════════════ */

.caw {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    /* Isoliert vom Theme */
    font-size: 16px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #111;
    box-sizing: border-box;
}

.caw__heading {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
}

.caw__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.caw__card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.caw__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.caw__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.caw__title {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caw__variant { font-size: 13px; color: #777; }
.caw__price   { font-size: 14px; color: #555; }

.caw__badge--free {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #e6f4ea;
    color: #2a7a3b;
}

.caw__btn {
    padding: 10px 18px;
    border: 2px solid currentColor;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
    color: #111;
}
.caw__btn:hover   { opacity: 0.7; }
.caw__btn:disabled { opacity: 0.5; cursor: default; }
