.ml-reviews {
    --ml-review-blue: #014782;
    --ml-review-ink: #142d42;
    --ml-review-muted: #4f6272;
    --ml-review-soft: #eff5fa;
    --ml-review-border: #d5e2ed;
    --ml-review-pink: #ad215f;
    color: var(--ml-review-ink);
    font-family: Manrope, Arial, sans-serif;
}

.ml-reviews [hidden] { display: none !important; }

.ml-reviews-summary,
.ml-review-write,
.ml-review-card {
    border: 1px solid var(--ml-review-border);
    border-radius: 14px;
}

.ml-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: var(--ml-review-soft);
}

.ml-reviews-summary h2 {
    margin: 0 0 6px;
    color: var(--ml-review-blue);
    font: 800 clamp(20px, 4.5vw, 27px)/1.2 Manrope, Arial, sans-serif;
}

.ml-reviews-empty { margin: 0; color: var(--ml-review-muted); }
.ml-reviews-score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ml-review-muted); }
.ml-reviews-score strong { color: var(--ml-review-blue); font-size: 23px; line-height: 1.2; }
.ml-reviews-score strong small { color: var(--ml-review-muted); font-size: 14px; }

.ml-review-score-stars {
    display: inline-block;
    font: 18px/1.25 Arial, sans-serif;
    letter-spacing: 1px;
    color: #ad215f;
    background: linear-gradient(90deg, #ad215f var(--ml-score-fill), #a1b4c5 var(--ml-score-fill));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ml-reviews .ml-review-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--ml-review-blue);
    border-radius: 9px;
    background: var(--ml-review-blue);
    color: #fff;
    text-align: center;
    font: 800 14px/1.3 Manrope, Arial, sans-serif;
}

.ml-reviews .ml-review-action:hover { background: #06355c; color: #fff; }
.ml-reviews .ml-review-action:disabled { opacity: .7; }

.ml-reviews :is(.ml-review-action, summary, .pagination a):focus-visible,
.ml-review-rating-options input:focus-visible + label {
    outline: 2px solid var(--ml-review-pink);
    outline-offset: 2px;
}

.ml-reviews #review { margin-top: 14px; scroll-margin-top: 16px; }
.ml-review-feed { display: grid; gap: 10px; }
.ml-review-card { min-width: 0; padding: 14px 16px; background: #fff; }
.ml-review-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.ml-review-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ml-review-author h3 { margin: 0 0 3px; color: #153b5c; font: 800 15px/1.25 Manrope, Arial, sans-serif; overflow-wrap: anywhere; }
.ml-review-author time { color: #4f6272; font-size: 12px; }
.ml-review-avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #eaf2f8; color: #014782; font-size: 16px; font-weight: 800; }
.ml-review-body { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }

.ml-review-pages { margin-top: 12px; }
.ml-review-pages .pagination { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.ml-review-pages .pagination > li > :is(a, span) {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    place-items: center;
    border-radius: 8px;
    border-color: #d5e2ed;
    color: #014782;
}
.ml-review-pages .pagination > li.active > span { border-color: #014782; background: #014782; color: #fff; }

.ml-review-write { margin-top: 14px; background: #fff; scroll-margin-top: 16px; }
.ml-review-write summary {
    display: flex;
    min-height: 48px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    list-style: none;
    color: var(--ml-review-blue);
    font-weight: 800;
    cursor: pointer;
}
.ml-review-write summary::-webkit-details-marker { display: none; }
.ml-review-write summary::after { content: '+'; font-size: 21px; line-height: 1; }
.ml-review-write[open] summary { border-bottom: 1px solid var(--ml-review-border); border-radius: 14px 14px 0 0; }
.ml-review-write[open] summary::after { content: '−'; }
.ml-review-write form { display: grid; gap: 12px; max-width: 690px; padding: 14px 16px 16px; }
.ml-review-login { margin: 0; padding: 14px 16px; }
.ml-review-login a { color: var(--ml-review-blue); text-decoration: underline; }

.ml-review-rating { margin: 0; padding: 0; border: 0; min-width: 0; }
.ml-review-rating legend,
.ml-review-field > label {
    width: auto;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    color: var(--ml-review-ink);
    font: 800 14px/1.3 Manrope, Arial, sans-serif;
}
.ml-review-rating-options { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.ml-review-rating-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.ml-review-rating-options label {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    place-items: center;
    border: 1px solid var(--ml-review-border);
    border-radius: 8px;
    color: #657d91;
    font: 23px/1 Arial, sans-serif;
    cursor: pointer;
}
.ml-review-rating-options label:hover,
.ml-review-rating-options input:checked + label,
.ml-review-rating-options label:has(~ input:checked) {
    border-color: #dba5be;
    background: #fcf1f6;
    color: var(--ml-review-pink);
}
.ml-review-rating-options input[aria-invalid="true"] + label { border-color: var(--ml-review-pink); }
.ml-review-field p { margin: 0 0 5px; color: var(--ml-review-muted); font-size: 13px; }
.ml-review-field .form-control {
    min-height: 44px;
    border: 1px solid var(--ml-review-border);
    border-radius: 8px;
    color: var(--ml-review-ink);
    font-size: 16px;
}
.ml-review-field .form-control[aria-invalid="true"] { border-color: var(--ml-review-pink); }
.ml-review-field textarea { resize: vertical; }
.ml-review-field small, .ml-review-submit small { color: var(--ml-review-muted); font-size: 12px; }
.ml-review-text-meta, .ml-review-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ml-review-text-meta { justify-content: space-between; margin-top: 3px; }
.ml-review-captcha { max-width: 100%; overflow-x: auto; }
.ml-review-captcha .form-group { margin: 0; }
.ml-review-feedback, .ml-review-load-error { margin: 0; padding: 9px 12px; border-radius: 8px; }
.ml-review-feedback.is-error, .ml-review-load-error { background: #fcf1f6; color: #8e1c4b; }
.ml-review-feedback.is-success { margin: 12px 16px 16px; background: #eaf5ee; color: #1d603c; }
.ml-review-loading { color: var(--ml-review-muted); }

@media (max-width: 575px) {
    .ml-reviews-summary { padding: 14px; }
    .ml-reviews-summary .ml-review-action, .ml-review-submit .ml-review-action { width: 100%; }
    .ml-review-card { padding: 12px; }
}
