.neetly-pickup-app,
.neetly-customer-qr-box {
    font-family: inherit;
}

.neetly-pickup-app {
    max-width: 760px;
    margin: 28px auto;
    padding: 0 16px;
}

.neetly-pickup-app h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    color: #1d2327;
}

.neetly-pickup-card,
.neetly-customer-qr-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.neetly-customer-qr-box {
    margin: 24px 0;
    text-align: center;
}

.neetly-customer-qr-box h2,
.neetly-pickup-card h2 {
    margin-top: 0;
    color: #1d2327;
}

.neetly-customer-qr {
    display: block;
    margin: 14px auto;
    max-width: 220px;
    width: 100%;
    height: auto;
    border: 10px solid #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.neetly-scanner-box {
    position: relative;
    overflow: hidden;
    background: #111827;
    border-radius: 16px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
}

#neetlyPickupVideo {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.neetly-scanner-status {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(255,255,255,.94);
    color: #1d2327;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
}

.neetly-pickup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.neetly-pickup-btn {
    appearance: none;
    border: 0;
    background: #c70000;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.neetly-pickup-btn:hover,
.neetly-pickup-btn:focus {
    filter: brightness(.94);
}

.neetly-pickup-btn-secondary {
    background: #1d2327;
}

.neetly-confirm-btn {
    width: 100%;
    font-size: 17px;
    margin-top: 10px;
}

.neetly-manual-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.neetly-manual-form label {
    font-weight: 700;
    color: #1d2327;
}

.neetly-manual-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
}

.neetly-pickup-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 16px 0;
    font-weight: 600;
}

.neetly-pickup-alert-error {
    background: #fff1f1;
    color: #8a0000;
    border: 1px solid #ffc7c7;
}

.neetly-pickup-alert-info {
    background: #f2f6ff;
    color: #1d3b73;
    border: 1px solid #d9e5ff;
}

.neetly-pickup-alert-ok {
    background: #eafff2;
    color: #006a2c;
    border: 1px solid #bdeccc;
}

.neetly-order-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.neetly-order-badge.is-pending {
    background: #fff4d6;
    color: #835600;
}

.neetly-order-badge.is-completed {
    background: #eafff2;
    color: #006a2c;
}

.neetly-product-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
}

.neetly-product-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eeeeee;
}

.neetly-product-list li:last-child {
    border-bottom: 0;
}

.neetly-small-note {
    font-size: 13px;
    color: #646970;
}

.neetly-pickup-link {
    font-weight: 700;
    color: #c70000;
}

@media (max-width: 600px) {
    .neetly-pickup-card,
    .neetly-customer-qr-box {
        padding: 16px;
        border-radius: 16px;
    }

    .neetly-pickup-actions {
        display: grid;
    }

    .neetly-pickup-btn {
        width: 100%;
    }
}


/* =========================================================
   NEETLY QR SCANNER SHORTCODE
   Shortcode: [neetly_qr_scanner]
   Tutte le classi sono modificabili senza !important.
   ========================================================= */

.neetly-scanner-shortcode-wrap {
    width: 100%;
    margin: 0 0 24px;
}

.neetly-scanner-shortcode-note {
    margin: 12px 0 0;
    font-size: 14px;
    color: #646970;
}

.neetly-scanner-login-link {
    margin-top: 8px;
}

.neetly-qr-scanner {
    width: 100%;
    margin: 0 0 24px;
    font-family: inherit;
}

.neetly-qr-scanner-accordion {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.neetly-qr-scanner-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #ffffff;
    color: #1d2327;
    user-select: none;
}

.neetly-qr-scanner-summary::-webkit-details-marker {
    display: none;
}

.neetly-qr-scanner-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.neetly-qr-scanner-summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c70000;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transition: transform 180ms ease;
}

.neetly-qr-scanner-accordion[open] .neetly-qr-scanner-summary-icon {
    transform: rotate(45deg);
}

.neetly-qr-scanner-panel {
    padding: 0 22px 22px;
}

.neetly-qr-scanner-header {
    padding: 4px 0 14px;
}

.neetly-qr-scanner-title {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.1;
    color: #1d2327;
}

.neetly-qr-scanner-description {
    margin: 0;
    color: #646970;
    font-size: 15px;
    line-height: 1.45;
}

.neetly-qr-scanner-camera-card {
    margin: 16px 0 18px;
}

.neetly-qr-scanner-video-frame {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neetly-qr-scanner-video {
    width: 100%;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
    display: block;
    background: #111827;
}

.neetly-qr-scanner-corners {
    position: absolute;
    width: min(58vw, 260px);
    height: min(58vw, 260px);
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    pointer-events: none;
}

.neetly-qr-scanner-status {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #1d2327;
    border-radius: 16px;
    padding: 11px 13px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.neetly-qr-scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.neetly-qr-scanner-manual-form {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
}

.neetly-qr-scanner-label {
    font-size: 14px;
    font-weight: 800;
    color: #1d2327;
}

.neetly-qr-scanner-manual-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.neetly-qr-scanner-input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 16px;
    background: #ffffff;
    color: #1d2327;
}

.neetly-qr-scanner-input:focus {
    border-color: #c70000;
    outline: 2px solid rgba(199, 0, 0, 0.12);
    outline-offset: 2px;
}

.neetly-qr-scanner-submit {
    flex: 0 0 auto;
}

.neetly-qr-scanner-help {
    margin: 0;
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
}

.neetly-qr-scanner-is-active .neetly-qr-scanner-video-frame {
    box-shadow: inset 0 0 0 2px rgba(199, 0, 0, 0.32);
}

@media (max-width: 700px) {
    .neetly-qr-scanner-summary {
        padding: 16px;
    }

    .neetly-qr-scanner-panel {
        padding: 0 16px 16px;
    }

    .neetly-qr-scanner-manual-row {
        flex-direction: column;
    }

    .neetly-qr-scanner-submit,
    .neetly-qr-scanner-actions .neetly-pickup-btn {
        width: 100%;
    }

    .neetly-qr-scanner-video-frame,
    .neetly-qr-scanner-video {
        min-height: 240px;
    }
}
