.afw-front {
    background: var(--afw-bg, transparent);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--afw-shadow, none);
    max-width: 380px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

.afw-front,
.afw-front * {
    box-sizing: border-box;
}

.afw-front .afw-block {
    margin-bottom: 18px;
}

.afw-front label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 8px;
}

.afw-front select.afw-select,
.afw-front input[type="date"],
.afw-front input[type="text"],
.afw-front input.afw-date-picker {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: transparent;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.afw-front select:focus,
.afw-front input[type="date"]:focus,
.afw-front input[type="text"]:focus,
.afw-front input.afw-date-picker:focus {
    border-color: currentColor;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.afw-front .afw-date-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.afw-front .afw-date-inputs input {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 480px) {
    .afw-front .afw-date-inputs {
        flex-direction: column;
    }
    .afw-front .afw-date-inputs input {
        min-width: 100%;
    }
}

.afw-front .afw-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.afw-front .afw-inline > * {
    flex: 1;
    min-width: 0;
}

.afw-front .afw-checklist {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: transparent;
}

.afw-front .afw-checklist::-webkit-scrollbar {
    width: 6px;
}

.afw-front .afw-checklist::-webkit-scrollbar-thumb {
    background: currentColor;
    border-radius: 3px;
}

.afw-front .afw-check {
    display: flex;
    align-items: center;
    margin: 0 0 10px 0;
}

.afw-front .afw-check input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: currentColor;
}

.afw-front .afw-check span {
    font-size: 14px;
    color: inherit;
}

.afw-front .afw-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.afw-front .afw-submit {
    background: var(--afw-accent, currentColor);
    color: var(--afw-accent-contrast, #fff);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}

.afw-front .afw-submit:hover {
    filter: brightness(0.9);
}

.afw-front .afw-reset {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.afw-front .afw-reset:hover {
    text-decoration: underline;
}

.afw-front .afw-empty {
    color: #9ca3af;
    font-style: italic;
    padding: 10px;
}

@media (max-width: 600px) {
    .afw-front .afw-inline {
        flex-direction: column;
    }
}
