/**
 * OwnServe Delivery Boy + Delivery OTP styles.
 * Mobile-first. Large touch targets. Does not override existing layouts.
 */

/* ── Delivery Boy dashboard section ─────────────────────────────────────── */
.ro-delivery-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 0 40px;
}
.ro-delivery-topbar h1 {
    font-size: 22px;
    margin: 0 0 12px;
}
.ro-delivery-note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #6d4c00;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}
.ro-delivery-section {
    margin-bottom: 22px;
}
.ro-delivery-h2 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}
.ro-delivery-empty {
    color: #777;
    font-size: 14px;
    padding: 8px 0;
}

.ro-delivery-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.ro-delivery-available {
    border-left: 4px solid #2e7d32;
}
.ro-delivery-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ro-delivery-order-number {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.ro-delivery-total {
    font-weight: 700;
    font-size: 17px;
    color: #1b5e20;
}
.ro-delivery-time {
    color: #667085;
    font-size: 13px;
    margin: 2px 0 10px;
}
.ro-delivery-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #98a2b3;
    margin-bottom: 3px;
}
.ro-delivery-customer {
    margin-bottom: 10px;
    font-size: 15px;
}
.ro-delivery-call {
    display: inline-block;
    margin-left: 8px;
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
}
.ro-delivery-address-wrap {
    margin-bottom: 12px;
}
.ro-delivery-address-wrap .ro-addr-structured,
.ro-delivery-address-wrap .ro-addr-legacy {
    font-size: 15px;
    line-height: 1.5;
}

/* Prominent Google Maps action — full-width, large touch target. */
.ro-delivery-maps-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin: 4px 0 14px;
}
.ro-delivery-maps-btn:hover { background: #1666c1; }

.ro-delivery-items ul {
    margin: 4px 0 12px;
    padding-left: 18px;
    font-size: 14px;
    color: #344054;
}
.ro-delivery-items li { margin: 2px 0; }

.ro-delivery-status {
    font-size: 14px;
    color: #b26a00;
    margin-bottom: 12px;
}

/* OTP entry + verify (delivery boy). OTP is entered here, never shown. */
.ro-delivery-otp-verify {
    border-top: 1px dashed #e4e7ec;
    padding-top: 12px;
}
.ro-delivery-otp-verify label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.ro-delivery-otp-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    padding: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 10px;
}
.ro-delivery-otp-input:focus {
    outline: none;
    border-color: #1a73e8;
}
.ro-delivery-accept-btn,
.ro-delivery-verify-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}
.ro-delivery-accept-btn { background: #2e7d32; }
.ro-delivery-accept-btn:hover { background: #256628; }
.ro-delivery-verify-btn { background: #1b5e20; }
.ro-delivery-verify-btn:hover { background: #154a19; }
.ro-delivery-accept-btn:disabled,
.ro-delivery-verify-btn:disabled { opacity: 0.6; cursor: default; }

.ro-delivery-accept-msg,
.ro-delivery-verify-msg {
    margin-top: 8px;
    font-size: 14px;
    min-height: 18px;
}
.ro-delivery-accept-msg.is-error,
.ro-delivery-verify-msg.is-error { color: #c62828; }
.ro-delivery-accept-msg.is-success,
.ro-delivery-verify-msg.is-success { color: #2e7d32; }

/* ── Customer-facing OTP block (My Orders) ──────────────────────────────── */
.ro-delivery-otp-block {
    background: #f3f8ff;
    border: 1px solid #cfe1ff;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
}
.ro-delivery-otp-head {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.ro-delivery-otp-hint {
    font-size: 13px;
    color: #475467;
    margin: 0 0 10px;
}
.ro-delivery-otp-code {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ro-delivery-otp-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 10px;
    color: #0b3d91;
    background: #fff;
    border: 2px dashed #94b6f0;
    border-radius: 10px;
    padding: 8px 18px;
}
.ro-delivery-otp-state {
    font-size: 14px;
    color: #475467;
}
.ro-delivery-otp-locked,
.ro-delivery-otp-expired,
.ro-delivery-otp-error { color: #c62828; }
.ro-delivery-otp-loading { color: #475467; }
.ro-delivery-otp-verified {
    font-size: 18px;
    font-weight: 800;
    color: #1b5e20;
}
.ro-delivery-otp-regen-btn {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.ro-delivery-otp-regen-btn:hover { background: #1666c1; }
.ro-delivery-otp-regen-btn:disabled { opacity: 0.6; cursor: default; }
.ro-delivery-otp-btn {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.ro-delivery-otp-btn:hover { background: #1666c1; }
.ro-delivery-otp-btn:disabled { opacity: 0.6; cursor: default; }
.ro-delivery-otp-maxed {
    font-size: 13px;
    color: #b26a00;
}
.ro-delivery-otp-warn {
    font-size: 12px;
    color: #b26a00;
    margin: 10px 0 0;
}

/* ── Restaurant Orders dashboard: assignment info ───────────────────────── */
.ro-order-delivery-boy {
    margin-top: 6px;
    font-size: 14px;
}
.ro-order-delivery-boy-name {
    font-weight: 600;
}
.ro-order-delivery-otp-state {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #475467;
    background: #eef2f6;
    border-radius: 999px;
    padding: 2px 10px;
}
