/* =========================================================
   AOO Receipt (kassabon met perforatiegaatjes)
   assets/css/aoo/components/receipt.css
   — Conditioneel geladen via functions.php
     op pagina's met class .aoo-receipt in de content
   ========================================================= */

.aoo-receipt {
    --receipt-bg: #fffdf9;
    --receipt-border: #e7dfd2;
    --receipt-text: #2f2f2f;
    --receipt-muted: #6f6a63;
    --receipt-accent: #1f1f1f;
    --receipt-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --receipt-page-bg: #ffffff;

    position: relative;
    max-width: 620px;
    margin: 2rem auto;
    padding: 1.4rem 1.1rem 1.15rem;
    background: var(--receipt-bg);
    border: 1px solid var(--receipt-border);
    border-radius: 10px;
    box-shadow: var(--receipt-shadow);
    color: var(--receipt-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    line-height: 1.5;
    overflow: visible;
}

/* Ronde perforatiegaatjes boven en onder */
.aoo-receipt::before,
.aoo-receipt::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 10px;
    pointer-events: none;
    z-index: 2;
    background-image: radial-gradient(circle, var(--receipt-page-bg) 4px, transparent 4.2px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
}

.aoo-receipt::before { top: -5px; }
.aoo-receipt::after  { bottom: -5px; }

/* Stippellijnen */
.aoo-receipt__tearline-top,
.aoo-receipt__tearline-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 1px;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        to right,
        #d7cdbf 0,
        #d7cdbf 7px,
        transparent 7px,
        transparent 13px
    );
    opacity: 0.9;
}

.aoo-receipt__tearline-top    { top: 0; }
.aoo-receipt__tearline-bottom { bottom: 0; }

.aoo-receipt__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--receipt-muted);
    text-align: center;
}

.aoo-receipt__title {
    margin: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    line-height: 1.3;
    text-align: center;
    color: var(--receipt-accent);
}

.aoo-receipt__intro {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    color: var(--receipt-muted);
    text-align: center;
}

.aoo-receipt__divider {
    margin: 1rem 0 0.85rem;
    border: 0;
    border-top: 1px dashed #b8ada0;
}

.aoo-receipt__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aoo-receipt__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: start;
    padding: 0.42rem 0;
    font-size: 0.98rem;
}

.aoo-receipt__label {
    min-width: 0;
    word-break: break-word;
}

.aoo-receipt__value {
    white-space: nowrap;
    font-weight: 700;
    color: var(--receipt-accent);
}

.aoo-receipt__total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 2px dashed #9e9284;
    font-size: 1rem;
    font-weight: 700;
}

.aoo-receipt__note {
    margin: 0.9rem 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--receipt-muted);
    text-align: center;
}

.aoo-receipt__note strong {
    color: var(--receipt-text);
}

@media (max-width: 768px) {
    .aoo-receipt {
        margin: 1.5rem 0;
        padding: 1rem 0.9rem;
        border-radius: 8px;
    }

    .aoo-receipt__item,
    .aoo-receipt__total {
        gap: 0.7rem;
        font-size: 0.95rem;
    }

    .aoo-receipt__intro { font-size: 0.88rem; }
    .aoo-receipt__note  { font-size: 0.8rem; }

    .aoo-receipt::before,
    .aoo-receipt::after,
    .aoo-receipt__tearline-top,
    .aoo-receipt__tearline-bottom {
        left: 12px;
        right: 12px;
    }
}

@media (max-width: 420px) {
    .aoo-receipt__item,
    .aoo-receipt__total {
        grid-template-columns: 1fr auto;
    }

    .aoo-receipt__value { font-size: 0.95rem; }
}