/* ── Wrapper ─────────────────────────────────────────────────────────────── */
#mor-wrap {
    max-width: 560px;
    font-family: inherit;
    font-size: 1em;
}

/* Force all child elements to inherit the theme font — !important overrides
   any browser default or theme rule that targets these elements directly. */
#mor-wrap *,
#mor-wrap input,
#mor-wrap button,
#mor-wrap a {
    font-family: inherit !important;
    font-size: inherit !important;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.mor-field {
    margin-bottom: 1.2em;
}

.mor-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35em;
    font-size: 0.95em;
}

.mor-field label span {
    color: #c0392b;
    margin-left: 2px;
}

.mor-field input[type="text"] {
    width: 100%;
    padding: 0.65em 0.9em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.mor-field input[type="text"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.mor-btn {
    display: inline-block;
    padding: 0.75em 1.75em;
    background: #1a1a1a;
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    line-height: 1.4;
}

.mor-btn:hover,
.mor-btn:focus {
    background: #3a3a3a;
    color: #fff !important;
    text-decoration: none;
}

.mor-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mor-btn--cancel {
    background: #c0392b;
}

.mor-btn--cancel:hover,
.mor-btn--cancel:focus {
    background: #922b21;
}

.mor-btn--secondary {
    background: transparent;
    color: #1a1a1a !important;
    border-color: #ccc;
}

.mor-btn--secondary:hover,
.mor-btn--secondary:focus {
    background: #f5f5f5;
    color: #1a1a1a !important;
}

/* ── Notice boxes ────────────────────────────────────────────────────────── */
.mor-notice {
    margin: 1.2em 0;
    padding: 1em 1.2em;
    border-radius: 3px;
    font-size: 0.95em;
    line-height: 1.55;
}

.mor-notice p:first-child { margin-top: 0; }
.mor-notice p:last-child  { margin-bottom: 0; }

.mor-notice--error {
    background: #fdf0f0;
    border-left: 4px solid #c0392b;
    color: #7b241c;
}

.mor-notice--info {
    background: #eaf3fb;
    border-left: 4px solid #2980b9;
    color: #1a5276;
}

.mor-notice--warning {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    color: #784212;
}

.mor-notice--success {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    color: #1e8449;
}

/* ── Order card ──────────────────────────────────────────────────────────── */
.mor-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.4em;
    margin-bottom: 1.5em;
}

.mor-order-card h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.1em;
}

.mor-order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2em;
    font-size: 0.95em;
}

.mor-order-details th,
.mor-order-details td {
    text-align: left;
    padding: 0.45em 0.8em 0.45em 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.mor-order-details th {
    width: 110px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* ── Confirmation box ────────────────────────────────────────────────────── */
.mor-confirm-box {
    margin-top: 1.2em;
    padding: 1.2em;
    background: #fff8f8;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.95em;
}

.mor-confirm-box p:first-child { margin-top: 0; }
.mor-confirm-box p:last-child  { margin-bottom: 0.8em; }
