/* Service pages: 404, order received, password recovery. */

.ml-state {
    max-width: 760px;
    margin: 24px auto;
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.ml-state--auth {
    max-width: 520px;
}

.ml-state__code {
    font-size: clamp(88px, 14vw, 140px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--accent);
}

.ml-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    background: var(--surface-2);
    color: var(--accent);
}

.ml-state--success .ml-state__icon {
    background: var(--surface-2);
    color: var(--mg-success);
}

.ml-state__eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ml-state .ml-state__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.ml-state__text {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.ml-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.ml-state__link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.ml-state__link:hover {
    color: var(--accent);
}

.ml-state__search {
    width: 100%;
    max-width: 520px;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.ml-state__search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 14px;
    background: var(--surface-2);
    outline: 0;
}

.ml-state__search input:focus,
.ml-state__form input:focus {
    border-color: rgba(130, 1, 0, .45);
    box-shadow: 0 0 0 3px rgba(130, 1, 0, .08);
}

/* Password forms */
.ml-state__form {
    width: 100%;
    display: grid;
    gap: 14px;
    margin-top: 8px;
    text-align: left;
}

.ml-state__form .form-row {
    margin: 0;
}

.ml-state__form label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ml-state__form .required {
    color: var(--accent);
}

.ml-state__form input[type="text"],
.ml-state__form input[type="password"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    outline: 0;
}

.ml-state__form .btn {
    width: 100%;
    height: 46px;
    cursor: pointer;
}

/* Order received */
.ml-order-received {
    display: grid;
    gap: 16px;
}

.ml-order-received .ml-state {
    max-width: none;
    margin: 0;
}

.ml-order-overview {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    text-align: left;
}

.ml-order-overview li {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
    padding: 12px 14px;
    display: grid;
    gap: 4px;
}

.ml-order-overview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ml-order-overview b {
    font-size: 16px;
    overflow-wrap: anywhere;
}

.ml-order-overview b * {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.ml-order-received__details:empty {
    display: none;
}

.ml-order-received__details > section,
.ml-order-received__details > .woocommerce-bacs-bank-details {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    padding: 24px;
    margin: 0 0 16px;
}

.ml-order-received__details h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.ml-order-received__details table {
    width: 100%;
    border-collapse: collapse;
}

.ml-order-received__details th,
.ml-order-received__details td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.ml-order-received__details thead th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ml-order-received__details tfoot th {
    color: var(--muted);
    font-weight: 700;
}

.ml-order-received__details tfoot tr:last-child th,
.ml-order-received__details tfoot tr:last-child td {
    border-bottom: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.ml-order-received__details td:last-child,
.ml-order-received__details th:last-child {
    text-align: right;
}

.ml-order-received__details a {
    color: var(--text);
    font-weight: 700;
}

.ml-order-received__details a:hover {
    color: var(--accent);
}

.ml-order-received__details .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ml-order-received__details .woocommerce-column {
    width: auto;
    float: none;
}

.ml-order-received__details address {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
    padding: 14px;
    font-style: normal;
    line-height: 1.6;
}

.ml-order-received__details address p {
    margin: 6px 0 0;
}

@media (max-width: 760px) {
    .ml-state {
        padding: 28px 18px;
        margin: 8px auto;
    }

    .ml-state__search {
        flex-direction: column;
    }

    .ml-state__actions .btn {
        flex: 1 1 100%;
    }

    .ml-order-received__details > section {
        padding: 16px;
    }
}
