﻿.fw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
}

.fw-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    width: min(420px, 90%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: system-ui, Arial, sans-serif;
}

.fw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fw-modal-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.fw-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid;
    font-size: 0.875rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background-color: #fee;
    border-color: #fcc;
    color: #c33;
}

.alert-error::before {
    content: "⚠";
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #efe;
    border-color: #cfc;
    color: #3a3;
}

.alert-success::before {
    content: "✓";
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rating-minimal {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-family: system-ui, Arial, sans-serif;
}

.rating-minimal > div {
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
    justify-content: flex-start;
    overflow-x: auto;
}

.rating-plain-button {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s,border-color .15s;
    padding: 0;
}

.rating-plain-button:hover {
    background: #e0e0ff;
    border-color: #4E46E5;
}

.rating-plain-selected {
    background: #74767b !important;
}

.rating-minimal textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .5rem;
    font-family: inherit;
    font-size: .85rem;
}

.rating-minimal button[type=button] {
    background: #4E46E5;
    color: #fff;
    border: none;
    padding: .5rem .75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
}

.rating-minimal button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.display-flex.flex-direction-column.align-items-end.gap-large.margin-top-large > .display-flex.flex-direction-column.gap-medium {
    align-self: flex-start;
}
