/* =========================================
   Malíři online – cenové nabídky
   ========================================= */

.rm-offer-form-wrap,
.rm-offers-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

/* Rozbalovací formulář */

.rm-offer-form-wrap summary {
    cursor: pointer;
    color: #ffffff;
    background: #2563eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    list-style-position: inside;
}

.rm-offer-form-wrap summary:hover {
    background: #1d4ed8;
}

.rm-offer-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.rm-offer-form label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.rm-offer-form input:not([type=checkbox]):not([type=hidden]),
.rm-offer-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
}

.rm-offer-form textarea {
    resize: vertical;
    min-height: 100px;
}

.rm-offer-form input:focus-visible,
.rm-offer-form textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.rm-offer-form small {
    font-size: 12px;
    color: #64748b;
}

/* Potvrzení přijetí nabídky */

.rm-offer-form .rm-offer-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
}

.rm-offer-confirm input {
    flex: none;
    margin: 3px 0 0;
}

/* Přehled nabídek */

.rm-offers-section h4 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 18px;
}

.rm-offer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 14px 0;
    padding: 18px;
    overflow-wrap: anywhere;
}

.rm-offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rm-offer-top h3 {
    margin: 0;
    font-size: 20px;
}

.rm-offer-price {
    font-size: 26px;
    font-weight: 700;
    color: #1e40af;
    margin: 12px 0;
}

.rm-offer-card p {
    color: #475569;
    margin: 10px 0;
    line-height: 1.6;
}

/* Mobilní zařízení */

@media (max-width: 480px) {

    .rm-offer-card {
        padding: 14px;
    }

    .rm-offer-price {
        font-size: 23px;
    }

}
.rm-offer-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
    gap: 10px;
    margin: 12px 0;
}

.rm-offer-comparison > div {
    padding: 12px;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f6f8fb;
    overflow-wrap: anywhere;
}

.rm-offer-comparison dt,
.rm-offer-order {
    color: #475569;
    font-size: .875rem;
}

.rm-offer-comparison dd {
    margin: 3px 0 0;
    font-weight: 700;
}

.rm-review-form {
    margin-block: 12px;
}

.rm-rating-summary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem .85rem;
    padding: .65rem .85rem;
    margin-block: .65rem;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    background: #f6f8fb;
    color: #182538;
    font-size: .9rem;
}

.rm-rating-summary small,
.rm-rating-hint {
    color: #475569;
}

.rm-rating-value {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .5rem;
}

.rm-rating-stars {
    display: inline-block;
    position: relative;
    color: #66758a;
    white-space: nowrap;
}

.rm-rating-stars span {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #92500b;
}

.rm-job-ratings {
    padding: .85rem;
    margin-block: .8rem;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
}

.rm-job-ratings h4 {
    margin: 0 0 .55rem;
}

.rm-rating-comment {
    overflow-wrap: anywhere;
}

.rm-rating-texts {
    margin: .5rem 0 1rem;
    padding: .65rem .85rem;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
}

.rm-rating-texts summary {
    cursor: pointer;
    font-weight: 600;
}

.rm-rating-texts ul {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
}

.rm-rating-texts li + li {
    border-top: 1px solid #dbe5f2;
    padding-top: .55rem;
}

.rm-rating-share {
    display: block;
    margin-block: .55rem;
}

.rm-review-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 .5rem;
}

.rm-rating-choices {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-block: .45rem;
}

.rm-rating-choice {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #c7d2e2;
    border-radius: .4rem;
    color: #66758a;
    font-size: 1.45rem;
    cursor: pointer;
}

.rm-rating-choice input {
    position: absolute;
    opacity: 0;
}

.rm-rating-choice:focus-within {
    outline: 2px solid #2457ac;
    outline-offset: 2px;
}

.rm-rating-choice:has(input:checked),
.rm-rating-choice:has(~ .rm-rating-choice input:checked) {
    background: #fff4db;
    color: #92500b;
}

.rm-rating-comment-label textarea {
    display: block;
    width: 100%;
    max-width: 44rem;
    margin-top: .3rem;
}
