/* ─────────────────────────────────────────────────────────────
   Mailrunner Tracking — stile integrato per il tema
   Online Courier Services
   ───────────────────────────────────────────────────────────── */

/* Contenitore principale */
.mr-tracking-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: inherit;          /* eredita il font del tema */
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
        0 4px 6px rgba(0,0,0,0.1),
        0 10px 20px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Titolo */
.mr-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mr-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

/* Alert */
.mr-alert {
    padding: .85rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: .92rem;
    text-align: center;
}
.mr-alert-info    { background: #e8f4fd; color: #1565c0; border: 1px solid #90caf9; }
.mr-alert-danger  { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

/* Form ricerca */
.mr-search-form {
    display: flex;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.mr-pw-form {
    display: flex;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

/* Input */
.mr-input {
    padding: .55rem 1rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: .95rem;
    min-width: 220px;
    transition: border-color .2s;
    outline: none;
}
.mr-input:focus {
    border-color: #55A4AA;
    box-shadow: 0 0 0 3px rgba(85,164,170,.15);
}

/* Bottoni */
.mr-btn {
    display: inline-block;
    padding: .55rem 1.3rem;
    border: none;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
    line-height: 1.4;
}
.mr-btn:active { transform: scale(.97); }

.mr-btn-primary  { background: #55A4AA; color: #fff; }
.mr-btn-primary:hover  { background: #3d8a90; }

.mr-btn-secondary { background: #6c757d; color: #fff; }
.mr-btn-secondary:hover { background: #545b62; }

.mr-btn-outline {
    background: transparent;
    color: #55A4AA;
    border: 2px solid #55A4AA;
}
.mr-btn-outline:hover { background: #55A4AA; color: #fff; }

/* Nuova ricerca */
.mr-new-search { margin-bottom: 1.25rem; }

/* Tabella */
.mr-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 2rem;
}

.mr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.mr-table thead tr {
    background: #55A4AA;
    color: #fff;
}

.mr-table th,
.mr-table td {
    padding: .65rem .9rem;
    border: 1px solid #dde;
    vertical-align: middle;
    white-space: nowrap;
}

.mr-table tbody tr:nth-child(even) { background: #f4fbfc; }
.mr-table tbody tr:hover           { background: #e3f4f5; }

/* Box ricevuta */
.mr-ricevuta-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow:
        0 3px 5px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.mr-ricevuta-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.mr-ricevuta-img {
    max-height: 400px;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    display: block;
    margin: 0 auto 1rem;
}

.mr-ricevuta-download { margin-top: .5rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .mr-table th,
    .mr-table td { font-size: .78rem; padding: .5rem .55rem; }

    .mr-heading { font-size: 1.35rem; }

    .mr-search-form,
    .mr-pw-form { flex-direction: column; align-items: center; }

    .mr-input { min-width: 90%; }
}
