.optimo-form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.recipe-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 22px;
}

.recipe-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.recipe-box-header h3 {
    margin: 0;
}

.optimo-btn.small {
    padding: 10px 14px;
    font-size: 13px;
}

.recipe-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
}

.recipe-row select,
.recipe-row input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
}

.remove-row {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.remove-row:hover {
    background: #fecaca;
}

@media (max-width: 900px) {
    .optimo-form-grid.two,
    .recipe-row {
        grid-template-columns: 1fr;
    }

    .recipe-box-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .remove-row {
        padding: 12px;
    }
}

.optimo-form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.optimo-form-grid.two > div {
    min-width: 0;
}

.optimo-form-grid.two input {
    box-sizing: border-box;
}

.optimo-btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
}

.optimo-action {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-right: 6px;
}

.optimo-action.edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.optimo-action.delete {
    background: #fee2e2;
    color: #991b1b;
}